@@ -82,11 +82,11 @@ def METADATA_OUT_PATH = "$projectDir/src/main/assets/metadata"
82
82
def pluginsJarLibraries = new LinkedList<String > ()
83
83
def allJarLibraries = new LinkedList<String > ()
84
84
85
- def computeKotlinVersion = { -> project. hasProperty(" kotlinVersion" ) ? kotlinVersion : " ${ kotlin_version } " }
86
- def computeCompileSdkVersion = { -> project. hasProperty(" compileSdk" ) ? compileSdk : COMPILE_SDK_VERSION as int }
87
- def computeTargetSdkVersion = { -> project. hasProperty(" targetSdk" ) ? targetSdk : COMPILE_SDK_VERSION as int }
85
+ def computeKotlinVersion = { -> project. hasProperty(" kotlinVersion" ) ? kotlinVersion : " ${ ns_default_kotlin_version } " }
86
+ def computeCompileSdkVersion = { -> project. hasProperty(" compileSdk" ) ? compileSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
87
+ def computeTargetSdkVersion = { -> project. hasProperty(" targetSdk" ) ? targetSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
88
88
def computeBuildToolsVersion = { ->
89
- project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : BUILD_TOOLS_VERSION as String
89
+ project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : NS_DEFAULT_BUILD_TOOLS_VERSION as String
90
90
}
91
91
92
92
def enableAnalytics = (project. hasProperty(" gatherAnalyticsData" ) && project. gatherAnalyticsData == " true" )
@@ -198,7 +198,7 @@ android {
198
198
199
199
defaultConfig {
200
200
def manifest = new XmlSlurper (). parse(file(android. sourceSets. main. manifest. srcFile))
201
- def minSdkVer = manifest. " uses-sdk" . " @android:minSdkVersion" . text() ?: MIN_SDK_VERSION
201
+ def minSdkVer = manifest. " uses-sdk" . " @android:minSdkVersion" . text() ?: NS_DEFAULT_MIN_SDK_VERSION
202
202
minSdkVersion minSdkVer
203
203
targetSdkVersion computeTargetSdkVersion()
204
204
ndk {
@@ -303,45 +303,45 @@ repositories {
303
303
}
304
304
305
305
dependencies {
306
- // println "\t ~ [DEBUG][app] build.gradle - android_x_app_compat_version = ${android_x_app_compat_version }..."
306
+ // println "\t ~ [DEBUG][app] build.gradle - ns_default_androidx_appcompat_version = ${ns_default_androidx_appcompat_version }..."
307
307
308
- def androidXAppCompatVersion = " ${ android_x_app_compat_version } "
308
+ def androidXAppCompatVersion = " ${ ns_default_androidx_appcompat_version } "
309
309
if (project. hasProperty(" androidXAppCompat" )) {
310
310
androidXAppCompatVersion = androidXAppCompat
311
311
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.appcompat:appcompat:$androidXAppCompatVersion "
312
312
}
313
313
314
- def androidXMaterialVersion = " ${ android_x_material_version } "
314
+ def androidXMaterialVersion = " ${ ns_default_androidx_material_version } "
315
315
if (project. hasProperty(" androidXMaterial" )) {
316
316
androidXMaterialVersion = androidXMaterial
317
317
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library com.google.android.material:material:$androidXMaterialVersion "
318
318
}
319
319
320
- def androidXExifInterfaceVersion = " ${ android_x_exif_interface_version } "
320
+ def androidXExifInterfaceVersion = " ${ ns_default_androidx_exifinterface_version } "
321
321
if (project. hasProperty(" androidXExifInterface" )) {
322
322
androidXExifInterfaceVersion = androidXExifInterface
323
323
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion "
324
324
}
325
325
326
- def androidXViewPagerVersion = " ${ android_x_view_pager_version } "
326
+ def androidXViewPagerVersion = " ${ ns_default_androidx_viewpager_version } "
327
327
if (project. hasProperty(" androidXViewPager" )) {
328
328
androidXViewPagerVersion = androidXViewPager
329
329
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.viewpager2:viewpager2:$androidXViewPagerVersion "
330
330
}
331
331
332
- def androidXFragmentVersion = " ${ android_x_fragment_version } "
332
+ def androidXFragmentVersion = " ${ ns_default_androidx_fragment_version } "
333
333
if (project. hasProperty(" androidXFragment" )) {
334
334
androidXFragmentVersion = androidXFragment
335
335
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.fragment:fragment:$androidXFragmentVersion "
336
336
}
337
337
338
- def androidXTransitionVersion = " ${ android_x_transition_version } "
338
+ def androidXTransitionVersion = " ${ ns_default_androidx_transition_version } "
339
339
if (project. hasProperty(" androidXTransition" )) {
340
340
androidXTransitionVersion = androidXTransition
341
341
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.transition:transition:$androidXTransitionVersion "
342
342
}
343
343
344
- def androidXMultidexVersion = " ${ android_x_multidex_version } "
344
+ def androidXMultidexVersion = " ${ ns_default_androidx_multidex_version } "
345
345
if (project. hasProperty(" androidXMultidex" )) {
346
346
androidXMultidexVersion = androidXMultidex
347
347
outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.multidex:multidex:$androidXMultidexVersion "
0 commit comments