Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not finished and crashes because of an ongoing Koin bug InsertKoinIO/koin#847
- Loading branch information
alan.schneider
committed
Aug 25, 2020
1 parent
8524126
commit 296c1bd
Showing
39 changed files
with
282 additions
and
473 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
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
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
2 changes: 1 addition & 1 deletion
2
...skeleton/android/widget/AutoCompletion.kt → ...r/skeleton/android/view/AutoCompletion.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
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
2 changes: 1 addition & 1 deletion
2
...roid/widget/FloatingActionButtonCompat.kt → ...ndroid/view/FloatingActionButtonCompat.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
2 changes: 1 addition & 1 deletion
2
...eider/skeleton/android/widget/Inflater.kt → ...hneider/skeleton/android/view/Inflater.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
2 changes: 1 addition & 1 deletion
2
...hneider/skeleton/android/widget/Notify.kt → ...schneider/skeleton/android/view/Notify.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
2 changes: 1 addition & 1 deletion
2
.../skeleton/android/widget/OverlayLoader.kt → ...er/skeleton/android/view/OverlayLoader.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
2 changes: 1 addition & 1 deletion
2
...eider/skeleton/android/widget/Tooltips.kt → ...hneider/skeleton/android/view/Tooltips.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
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
android { | ||
compileSdkVersion versions.android.sdk.target | ||
buildToolsVersion versions.android.buildTools | ||
|
||
defaultConfig { | ||
minSdkVersion versions.android.sdk.min | ||
targetSdkVersion versions.android.sdk.target | ||
versionCode versionCode() | ||
versionName versions.skeleton | ||
vectorDrawables.useSupportLibrary = true | ||
} | ||
|
||
signingConfigs { | ||
debug { | ||
storeFile file('../debug.keystore') | ||
storePassword 'android' | ||
keyAlias 'androiddebugkey' | ||
keyPassword 'android' | ||
} | ||
release { | ||
// keytool -genkey -v -keystore release.jks -keyalg RSA -keysize 2048 -validity 10000 -alias androidkey | ||
storeFile file('../release.keystore') | ||
storePassword 'android' | ||
keyAlias 'androidkey' | ||
keyPassword 'android' | ||
} | ||
} | ||
sourceSets { | ||
debug.java.srcDirs += 'src/debug/kotlin' | ||
main.java.srcDirs += 'src/main/kotlin' | ||
release.java.srcDirs += 'src/release/kotlin' | ||
test.java.srcDirs += 'src/test/kotlin' | ||
androidTest.java.srcDirs += 'src/androidTest/kotlin' | ||
} | ||
buildTypes { | ||
debug { | ||
// applicationIdSuffix '.debug' | ||
// versionNameSuffix '-DEBUG' | ||
signingConfig signingConfigs.debug | ||
} | ||
release { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility versions.java | ||
targetCompatibility versions.java | ||
} | ||
kotlinOptions { | ||
jvmTarget = versions.java.toString() | ||
} | ||
bundle { | ||
/** | ||
* If the user changes their device configuration at any time (such as adding another choice of language), | ||
* then the play store will recognize this and attempt to download the new configuration splits | ||
* for all applications that use split APKs on their device. | ||
*/ | ||
language.enableSplit = true | ||
density.enableSplit = true | ||
abi.enableSplit = true | ||
} | ||
packagingOptions { | ||
exclude 'META-INF/DEPENDENCIES.txt' | ||
exclude 'META-INF/DEPENDENCIES' | ||
exclude 'META-INF/dependencies.txt' | ||
exclude 'META-INF/LICENSE.txt' | ||
exclude 'META-INF/LICENSE' | ||
exclude 'META-INF/license.txt' | ||
exclude 'META-INF/NOTICE.txt' | ||
exclude 'META-INF/NOTICE' | ||
exclude 'META-INF/notice.txt' | ||
} | ||
|
||
} |
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,49 @@ | ||
dependencies { | ||
// implementation "com.github.shkschneider.android_Skeleton:android:${version}" | ||
implementation project(':android') | ||
|
||
version = '1.2.0' // https://developer.android.com/jetpack/androidx/releases/appcompat | ||
implementation "androidx.appcompat:appcompat:${version}" | ||
version = '1.3.1' // https://developer.android.com/jetpack/androidx/releases/core | ||
implementation "androidx.core:core:${version}" | ||
implementation "androidx.core:core-ktx:${version}" | ||
version = '2.2.0' // https://developer.android.com/jetpack/androidx/releases/lifecycle | ||
implementation "androidx.lifecycle:lifecycle-viewmodel:${version}" | ||
implementation "androidx.lifecycle:lifecycle-livedata:${version}" | ||
implementation "androidx.lifecycle:lifecycle-extensions:${version}" | ||
// version = '1.0.0' // https://developer.android.com/jetpack/androidx/releases/palette | ||
// implementation "androidx.palette:palette:${version}" | ||
version = '1.1.1' // https://developer.android.com/jetpack/androidx/releases/preference | ||
implementation "androidx.preference:preference:${version}" | ||
// version = '1.1.0' // https://developer.android.com/jetpack/androidx/releases/recyclerview | ||
// implementation "androidx.recyclerview:recyclerview:${version}" | ||
// version = '1.1.0' // https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout | ||
// implementation "androidx.swiperefreshlayout:swiperefreshlayout:${version}" | ||
|
||
version = '1.2.0' // https://maven.google.com/web/index.html#com.google.android.material:material | ||
implementation "com.google.android.material:material:${version}" | ||
version = '2.8.6' // https://github.com/google/gson | ||
implementation "com.google.code.gson:gson:${version}" | ||
|
||
version = '2.1.6' // https://github.com/InsertKoinIO/koin | ||
implementation "org.koin:koin-core:${version}" | ||
implementation "org.koin:koin-android:${version}" | ||
implementation "org.koin:koin-androidx-scope:${version}" | ||
implementation "org.koin:koin-androidx-viewmodel:${version}" | ||
|
||
version = '2.2.3' // https://github.com/kittinunf/Fuel | ||
implementation "com.github.kittinunf.fuel:fuel:${version}" | ||
implementation "com.github.kittinunf.fuel:fuel-android:${version}" | ||
implementation "com.github.kittinunf.fuel:fuel-gson:${version}" | ||
implementation "com.github.kittinunf.fuel:fuel-livedata:${version}" | ||
implementation "com.github.kittinunf.fuel:fuel-kotlinx-serialization:${version}" | ||
|
||
version = '2.2.5' // https://developer.android.com/jetpack/androidx/releases/room | ||
implementation "androidx.room:room-runtime:${version}" | ||
kapt "androidx.room:room-compiler:${version}" | ||
|
||
version = '2.71828' // https://github.com/square/picasso | ||
implementation "com.squareup.picasso:picasso:${version}" | ||
|
||
// TODO https://github.com/facebook/flipper | ||
} |
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
40 changes: 11 additions & 29 deletions
40
demo/src/debug/kotlin/me/shkschneider/skeleton/demo/DebugApplication.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 |
---|---|---|
@@ -1,39 +1,21 @@ | ||
package me.shkschneider.skeleton.demo | ||
|
||
import com.facebook.flipper.android.AndroidFlipperClient | ||
import com.facebook.flipper.android.utils.FlipperUtils | ||
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin | ||
import com.facebook.flipper.plugins.inspector.DescriptorMapping | ||
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin | ||
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin | ||
import com.facebook.soloader.SoLoader | ||
import me.shkschneider.skeleton.demo.data.DataManager | ||
import me.shkschneider.skeleton.kotlinx.Coroutines | ||
|
||
class DebugApplication : MainApplication() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
flipper() | ||
|
||
Coroutines.io { | ||
DataManager.dummy() | ||
} | ||
} | ||
|
||
private fun flipper() { | ||
SoLoader.init(this, false); | ||
if (FlipperUtils.shouldEnableFlipper(this)) { | ||
AndroidFlipperClient.getInstance(this).also { | ||
// Layout Inscpector | ||
it.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults())) | ||
// Crash Reporter | ||
it.addPlugin(CrashReporterPlugin.getInstance()) | ||
// Network (OkHttp: addNetworkInterceptor(FlipperOkhttpInterceptor(NetworkFlipperPlugin()))) | ||
it.addPlugin(NetworkFlipperPlugin()); | ||
}.start() | ||
} | ||
// SoLoader.init(this, false); | ||
// if (FlipperUtils.shouldEnableFlipper(this)) { | ||
// AndroidFlipperClient.getInstance(this).also { | ||
// // Layout Inscpector | ||
// it.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults())) | ||
// // Crash Reporter | ||
// it.addPlugin(CrashReporterPlugin.getInstance()) | ||
// // Network (OkHttp: addNetworkInterceptor(FlipperOkhttpInterceptor(NetworkFlipperPlugin()))) | ||
// it.addPlugin(NetworkFlipperPlugin()); | ||
// }.start() | ||
// } | ||
} | ||
|
||
} |
Oops, something went wrong.