aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-03 00:22:10 -0700
committerAllan Wang <me@allanwang.ca>2017-06-03 00:22:10 -0700
commit5796566137995c8d244720f87ba85bce0e0d2f00 (patch)
tree1736e12182c7cf2769ad953029dc6a645b803802 /app/src/main/kotlin/com/pitchedapps/frost/utils
parentbc197ad5769ee792d930ac5b634e1e9000230689 (diff)
downloadfrost-5796566137995c8d244720f87ba85bce0e0d2f00.tar.gz
frost-5796566137995c8d244720f87ba85bce0e0d2f00.tar.bz2
frost-5796566137995c8d244720f87ba85bce0e0d2f00.zip
css updates and beginning login migration
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/GlideUtils.kt26
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt2
2 files changed, 2 insertions, 26 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/GlideUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/GlideUtils.kt
deleted file mode 100644
index 6fbcced1..00000000
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/GlideUtils.kt
+++ /dev/null
@@ -1,26 +0,0 @@
-package com.pitchedapps.frost.utils
-
-import android.content.Context
-import com.bumptech.glide.Glide
-
-/**
- * Created by Allan Wang on 2017-05-31.
- */
-object GlideUtils {
-
- lateinit var applicationContext: Context
-
- operator fun invoke(applicationContext: Context) {
- this.applicationContext = applicationContext
- }
-
- fun downloadForLater(url: String) {
- Glide.with(applicationContext).download(url)
- }
-
- fun downloadProfile(id: Long) {
- L.d("Downloading profile photo")
- downloadForLater("http://graph.facebook.com/$id/picture?type=large")
- }
-
-} \ No newline at end of file
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
index 49cc2f9b..2465980d 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/L.kt
@@ -11,6 +11,8 @@ object L {
const val TAG = "Frost: %s"
fun e(s: String) = Timber.e(TAG, s)
fun d(s: String) = Timber.d(TAG, s)
+ fun i(s: String) = Timber.i(TAG, s)
+ fun v(s: String) = Timber.v(TAG, s)
}
internal class CrashReportingTree : Timber.Tree() {