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
fun ExampleViewBinding.bind( | |
resources: Resources, | |
onAction: (Any) -> Unit | |
) { | |
this.title = resources.getString(R.string.title) | |
this.setSaveClickListener { | |
this.subtitle = when (someData) { | |
true -> R.string.subtitle1 | |
false -> R.string.subtitle2 | |
} |
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
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
<background android:drawable="@mipmap/ic_launcher_background"/> | |
<foreground android:drawable="@drawable/ic_launcher_foreground"/> | |
<monochrome android:drawable="@drawable/ic_launcher_monochrome"/> | |
</adaptive-icon> |
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
<application | |
... | |
android:name=".app.MainApplication" | |
android:label="@string/app_name" | |
android:icon="@mipmap/ic_launcher" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
...> | |
</application> |
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
<application | |
... | |
android:name=".app.MainApplication" | |
android:label="@string/app_name" | |
android:icon="@mipmap/ic_launcher" | |
...> | |
</application> |
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
android { | |
... | |
} | |
tasks.whenTaskAdded { task -> | |
if (task.name.startsWith('assemble') && task.name != "assembleReleaseAndroidTest" && task.name != "assembleDebugAndroidTest") { | |
task.finalizedBy "uploadCrashlyticsSymbolFile" + task.name.substring('assemble'.length()) | |
} | |
} |
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
>./gradlew app:assembleBUILD_VARIANT\ | |
app:uploadCrashlyticsSymbolFileBUILD_VARIANT |
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
dependencies { | |
// ... | |
// Declare the dependency for the Firebase Crashlytics NDK library. | |
// If you previously declared Firebase Crashlytics dependency, replace it. | |
implementation 'com.google.firebase:firebase-crashlytics-ndk:VERSION_NUMBER' | |
} | |
android { | |
// ... | |
buildTypes { | |
release { |
NewerOlder