-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move build-konfig into another module
- Loading branch information
1 parent
feb4eb0
commit 6e829c5
Showing
6 changed files
with
38 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@file:Suppress("UnusedPrivateMember") | ||
|
||
import ru.astrainteractive.gradleplugin.util.GradleProperty.Companion.gradleProperty | ||
import ru.astrainteractive.gradleplugin.util.ProjectProperties.projectInfo | ||
|
||
plugins { | ||
id("com.android.library") | ||
kotlin("multiplatform") | ||
id("ru.astrainteractive.gradleplugin.java.core") | ||
id("com.github.gmazzo.buildconfig") | ||
id("ru.astrainteractive.gradleplugin.android.core") | ||
} | ||
|
||
buildConfig { | ||
className("BuildKonfig") // forces the class name. Defaults to 'BuildConfig' | ||
packageName("${projectInfo.group}.buildkonfig") // forces the package. Defaults to '${project.group}' | ||
buildConfigField( | ||
"String", | ||
"VERSION_CODE", | ||
"\"${gradleProperty("project.version.code").integer}\"" | ||
) | ||
buildConfigField("String", "VERSION_NAME", "\"${projectInfo.versionString}\"") | ||
} | ||
|
||
kotlin { | ||
android() | ||
ios() | ||
iosSimulatorArm64() | ||
} | ||
|
||
android { | ||
namespace = "${projectInfo.group}.buildkonfig" | ||
} |
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