-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # README.md
- Loading branch information
Showing
8 changed files
with
34 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
330 changes: 0 additions & 330 deletions
330
InstaPopSave-Android-Lib/src/main/java/devx/insta/popsave/ArcUtils.java
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
InstaPopSave-Android-Lib/src/main/java/devx/insta/popsave/CircleProgressBarDrawable.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
InstaPopSave-Android-Lib/src/main/java/devx/insta/popsave/PopSaveSetup.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package devx.insta.popsave | ||
|
||
import android.content.Context | ||
import com.facebook.drawee.backends.pipeline.Fresco | ||
|
||
object PopSaveSetup { | ||
|
||
init { | ||
println("Singleton class PopSaveSetup init.") | ||
} | ||
|
||
var isSetupDone = false | ||
|
||
fun setup(context: Context){ | ||
isSetupDone=true | ||
Fresco.initialize(context) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
package dev.testapp | ||
|
||
import android.app.Application | ||
import com.facebook.common.logging.FLog | ||
import com.facebook.drawee.backends.pipeline.Fresco | ||
import com.facebook.imagepipeline.core.ImagePipelineConfig | ||
import com.facebook.imagepipeline.listener.RequestListener | ||
import com.facebook.imagepipeline.listener.RequestLoggingListener | ||
import devx.insta.popsave.PopSaveSetup | ||
|
||
class MyApplication : Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
// var requestListeners = HashSet<RequestListener>(); | ||
// requestListeners.add( RequestLoggingListener()); | ||
// var config = ImagePipelineConfig.newBuilder(applicationContext) | ||
// .setRequestListeners(requestListeners) | ||
// .build(); | ||
|
||
Fresco.initialize(applicationContext) | ||
PopSaveSetup.setup(this) | ||
} | ||
|
||
} |