Commit 69231cf1 by Paktalin

Changed log imports for release

parent be8a3afa
...@@ -2,7 +2,6 @@ package com.paktalin.vocabularynotebook.ui.activities ...@@ -2,7 +2,6 @@ package com.paktalin.vocabularynotebook.ui.activities
import android.support.v7.app.AppCompatActivity import android.support.v7.app.AppCompatActivity
import android.os.Bundle import android.os.Bundle
import android.util.Log
import com.paktalin.vocabularynotebook.* import com.paktalin.vocabularynotebook.*
import com.paktalin.vocabularynotebook.utils.* import com.paktalin.vocabularynotebook.utils.*
......
...@@ -2,11 +2,9 @@ package com.paktalin.vocabularynotebook.ui.fragments ...@@ -2,11 +2,9 @@ package com.paktalin.vocabularynotebook.ui.fragments
import android.os.Bundle import android.os.Bundle
import android.support.v4.app.Fragment import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import com.google.firebase.Timestamp
import com.google.firebase.firestore.DocumentSnapshot import com.google.firebase.firestore.DocumentSnapshot
import com.paktalin.vocabularynotebook.* import com.paktalin.vocabularynotebook.*
import com.paktalin.vocabularynotebook.Vocabulary import com.paktalin.vocabularynotebook.Vocabulary
...@@ -14,6 +12,7 @@ import com.paktalin.vocabularynotebook.firestoreitems.WordItem ...@@ -14,6 +12,7 @@ import com.paktalin.vocabularynotebook.firestoreitems.WordItem
import com.paktalin.vocabularynotebook.ui.activities.MainActivity import com.paktalin.vocabularynotebook.ui.activities.MainActivity
import com.paktalin.vocabularynotebook.ui.views.LockableLayoutManager import com.paktalin.vocabularynotebook.ui.views.LockableLayoutManager
import com.paktalin.vocabularynotebook.utils.FirestoreManager import com.paktalin.vocabularynotebook.utils.FirestoreManager
import com.paktalin.vocabularynotebook.utils.Log
import kotlinx.android.synthetic.main.fragment_vocabulary.* import kotlinx.android.synthetic.main.fragment_vocabulary.*
class VocabularyFragment : Fragment() { class VocabularyFragment : Fragment() {
......
package com.paktalin.vocabularynotebook.utils package com.paktalin.vocabularynotebook.utils
import android.content.Context import android.content.Context
import android.util.Log
import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser import com.google.firebase.auth.FirebaseUser
import com.google.firebase.firestore.DocumentReference import com.google.firebase.firestore.DocumentReference
......
package com.paktalin.vocabularynotebook.utils
import com.paktalin.vocabularynotebook.BuildConfig
object Log {
private val LOG = BuildConfig.DEBUG
fun i(tag: String, string: String) {
if (LOG) android.util.Log.i(tag, string)
}
fun e(tag: String, string: String) {
if (LOG) android.util.Log.e(tag, string)
}
fun d(tag: String, string: String) {
if (LOG) android.util.Log.d(tag, string)
}
fun v(tag: String, string: String) {
if (LOG) android.util.Log.v(tag, string)
}
fun w(tag: String, string: String) {
if (LOG) android.util.Log.w(tag, string)
}
fun w(tag: String, string: String, exception: Throwable?) {
if (LOG) android.util.Log.w(tag, string, exception)
}
fun i(tag: String, string: String, exception: Throwable?) {
if (LOG) android.util.Log.i(tag, string, exception)
}
fun d(tag: String, string: String, exception: Throwable?) {
if (LOG) android.util.Log.d(tag, string, exception)
}
}
package com.paktalin.vocabularynotebook.utils package com.paktalin.vocabularynotebook.utils
import android.util.Log
import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser import com.google.firebase.auth.FirebaseUser
import com.paktalin.vocabularynotebook.R import com.paktalin.vocabularynotebook.R
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment