-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
val kotlin_version by extra("1.4.32") | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath(Libs.gradleAndroid) | ||
classpath(Libs.kotlin) | ||
classpath(Libs.googleService) | ||
classpath(Libs.firebaseCrashlyticsService) | ||
classpath(Libs.dagger) | ||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle.kts files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
maven("https://jitpack.io") | ||
} | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(rootProject.buildDir) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build | ||
.gradle |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
val kotlinVersion = "1.4.32" | ||
|
||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
implementation("com.android.tools.build:gradle:4.1.1") | ||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import com.android.build.gradle.internal.dsl.BaseFlavor | ||
import com.android.build.gradle.internal.dsl.BuildType | ||
|
||
/* | ||
* BuildType Ext | ||
*/ | ||
fun BuildType.buildConfigInt(name: String, value: Int) = buildConfigField("int", name, "$value") | ||
|
||
fun BuildType.buildConfigDouble(name: String, value: Double) = | ||
buildConfigField("double", name, "$value") | ||
|
||
fun BuildType.buildConfigFloat(name: String, value: Float) = | ||
buildConfigField("float", name, "$value") | ||
|
||
fun BuildType.buildConfigLong(name: String, value: Long) = | ||
buildConfigField("long", name, "$value") | ||
|
||
fun BuildType.buildConfigString(name: String, value: String) = | ||
buildConfigField("String", name, "\"${value}\"") | ||
|
||
fun BuildType.buildConfigBoolean(name: String, value: Boolean) = | ||
buildConfigField("boolean", name, "$value") | ||
|
||
fun BuildType.buildConfigByteArray(name: String, value: String) = | ||
buildConfigField("Byte[]", name, value) | ||
|
||
/* | ||
* BaseFlavor Ext | ||
*/ | ||
|
||
fun BaseFlavor.buildConfigInt(name: String, value: Int) = buildConfigField("int", name, "$value") | ||
|
||
fun BaseFlavor.buildConfigDouble(name: String, value: Double) = | ||
buildConfigField("double", name, "$value") | ||
|
||
fun BaseFlavor.buildConfigFloat(name: String, value: Float) = | ||
buildConfigField("float", name, "$value") | ||
|
||
fun BaseFlavor.buildConfigLong(name: String, value: Long) = | ||
buildConfigField("long", name, "$value") | ||
|
||
fun BaseFlavor.buildConfigString(name: String, value: String) = | ||
buildConfigField("String", name, "\"${value}\"") | ||
|
||
fun BaseFlavor.buildConfigBoolean(name: String, value: Boolean) = | ||
buildConfigField("boolean", name, "$value") | ||
|
||
fun BaseFlavor.buildConfigByteArray(name: String, value: String) = | ||
buildConfigField("Byte[]", name, value) |