@@ -82,11 +82,11 @@ def METADATA_OUT_PATH = "$projectDir/src/main/assets/metadata"
8282def pluginsJarLibraries = new LinkedList<String > ()
8383def allJarLibraries = new LinkedList<String > ()
8484
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 }
8888def computeBuildToolsVersion = { ->
89- project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : BUILD_TOOLS_VERSION as String
89+ project. hasProperty(" buildToolsVersion" ) ? buildToolsVersion : NS_DEFAULT_BUILD_TOOLS_VERSION as String
9090}
9191
9292def enableAnalytics = (project. hasProperty(" gatherAnalyticsData" ) && project. gatherAnalyticsData == " true" )
@@ -198,7 +198,7 @@ android {
198198
199199 defaultConfig {
200200 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
202202 minSdkVersion minSdkVer
203203 targetSdkVersion computeTargetSdkVersion()
204204 ndk {
@@ -303,45 +303,45 @@ repositories {
303303}
304304
305305dependencies {
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 }..."
307307
308- def androidXAppCompatVersion = " ${ android_x_app_compat_version } "
308+ def androidXAppCompatVersion = " ${ ns_default_androidx_appcompat_version } "
309309 if (project. hasProperty(" androidXAppCompat" )) {
310310 androidXAppCompatVersion = androidXAppCompat
311311 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.appcompat:appcompat:$androidXAppCompatVersion "
312312 }
313313
314- def androidXMaterialVersion = " ${ android_x_material_version } "
314+ def androidXMaterialVersion = " ${ ns_default_androidx_material_version } "
315315 if (project. hasProperty(" androidXMaterial" )) {
316316 androidXMaterialVersion = androidXMaterial
317317 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library com.google.android.material:material:$androidXMaterialVersion "
318318 }
319319
320- def androidXExifInterfaceVersion = " ${ android_x_exif_interface_version } "
320+ def androidXExifInterfaceVersion = " ${ ns_default_androidx_exifinterface_version } "
321321 if (project. hasProperty(" androidXExifInterface" )) {
322322 androidXExifInterfaceVersion = androidXExifInterface
323323 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion "
324324 }
325325
326- def androidXViewPagerVersion = " ${ android_x_view_pager_version } "
326+ def androidXViewPagerVersion = " ${ ns_default_androidx_viewpager_version } "
327327 if (project. hasProperty(" androidXViewPager" )) {
328328 androidXViewPagerVersion = androidXViewPager
329329 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.viewpager2:viewpager2:$androidXViewPagerVersion "
330330 }
331331
332- def androidXFragmentVersion = " ${ android_x_fragment_version } "
332+ def androidXFragmentVersion = " ${ ns_default_androidx_fragment_version } "
333333 if (project. hasProperty(" androidXFragment" )) {
334334 androidXFragmentVersion = androidXFragment
335335 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.fragment:fragment:$androidXFragmentVersion "
336336 }
337337
338- def androidXTransitionVersion = " ${ android_x_transition_version } "
338+ def androidXTransitionVersion = " ${ ns_default_androidx_transition_version } "
339339 if (project. hasProperty(" androidXTransition" )) {
340340 androidXTransitionVersion = androidXTransition
341341 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.transition:transition:$androidXTransitionVersion "
342342 }
343343
344- def androidXMultidexVersion = " ${ android_x_multidex_version } "
344+ def androidXMultidexVersion = " ${ ns_default_androidx_multidex_version } "
345345 if (project. hasProperty(" androidXMultidex" )) {
346346 androidXMultidexVersion = androidXMultidex
347347 outLogger. withStyle(Style.SuccessHeader ). println " \t + using android X library androidx.multidex:multidex:$androidXMultidexVersion "
0 commit comments