aboutsummaryrefslogtreecommitdiff
path: root/android-lib.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'android-lib.gradle')
-rw-r--r--android-lib.gradle13
1 files changed, 12 insertions, 1 deletions
diff --git a/android-lib.gradle b/android-lib.gradle
index 7eb6a79..78526e5 100644
--- a/android-lib.gradle
+++ b/android-lib.gradle
@@ -14,8 +14,18 @@ android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
buildToolsVersion project.BUILD_TOOLS
+ def kauMinSdk = project.MIN_SDK
+ if (project.hasProperty('kauSubModuleMinSdk'))
+ kauMinSdk = kauSubModuleMinSdk
+
+ def kauResourcePrefix = "kau_"
+ if (project.hasProperty('kauSubModuleResourcePrefix'))
+ kauResourcePrefix = kauSubModuleResourcePrefix
+
+ resourcePrefix kauResourcePrefix
+
defaultConfig {
- minSdkVersion Integer.parseInt(project.MIN_SDK)
+ minSdkVersion Integer.parseInt(kauMinSdk)
targetSdkVersion Integer.parseInt(project.TARGET_SDK)
consumerProguardFiles 'progress-proguard.txt'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -42,5 +52,6 @@ android {
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
+ main.res.srcDirs += 'src/main/res-public'
}
} \ No newline at end of file