@nativescript/android 8.2.0-alpha.9 → 8.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/framework/app/build.gradle +19 -13
- package/framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-optimized.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-regular.aar +0 -0
- package/framework/app/src/debug/java/com/tns/ErrorReport.java +1 -2
- package/framework/app/src/main/AndroidManifest.xml +1 -0
- package/framework/app/src/main/res/values/colors.xml +1 -1
- package/framework/app/src/main/res/values-v21/colors.xml +1 -1
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/dts-generator.jar +0 -0
- package/framework/build-tools/jsparser/js_parser.js +1 -1
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/framework/build.gradle +18 -8
- package/framework/gradle/wrapper/gradle-wrapper.properties +2 -2
- package/framework/gradle-helpers/user_properties_reader.gradle +27 -1
- package/framework/gradle.properties +25 -25
- package/framework/settings.json +2 -2
- package/package.json +8 -8
|
@@ -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 : "${
|
|
86
|
-
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk :
|
|
87
|
-
def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk :
|
|
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 :
|
|
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() ?:
|
|
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 {
|
|
@@ -298,48 +298,50 @@ repositories {
|
|
|
298
298
|
dirs pluginDependencies
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
+
|
|
301
302
|
mavenCentral()
|
|
302
303
|
}
|
|
303
304
|
|
|
304
305
|
dependencies {
|
|
306
|
+
// println "\t ~ [DEBUG][app] build.gradle - ns_default_androidx_appcompat_version = ${ns_default_androidx_appcompat_version}..."
|
|
305
307
|
|
|
306
|
-
def androidXAppCompatVersion = "${
|
|
308
|
+
def androidXAppCompatVersion = "${ns_default_androidx_appcompat_version}"
|
|
307
309
|
if (project.hasProperty("androidXAppCompat")) {
|
|
308
310
|
androidXAppCompatVersion = androidXAppCompat
|
|
309
311
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.appcompat:appcompat:$androidXAppCompatVersion"
|
|
310
312
|
}
|
|
311
313
|
|
|
312
|
-
def androidXMaterialVersion = "${
|
|
314
|
+
def androidXMaterialVersion = "${ns_default_androidx_material_version}"
|
|
313
315
|
if (project.hasProperty("androidXMaterial")) {
|
|
314
316
|
androidXMaterialVersion = androidXMaterial
|
|
315
317
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library com.google.android.material:material:$androidXMaterialVersion"
|
|
316
318
|
}
|
|
317
319
|
|
|
318
|
-
def androidXExifInterfaceVersion = "${
|
|
320
|
+
def androidXExifInterfaceVersion = "${ns_default_androidx_exifinterface_version}"
|
|
319
321
|
if (project.hasProperty("androidXExifInterface")) {
|
|
320
322
|
androidXExifInterfaceVersion = androidXExifInterface
|
|
321
323
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion"
|
|
322
324
|
}
|
|
323
325
|
|
|
324
|
-
def androidXViewPagerVersion = "${
|
|
326
|
+
def androidXViewPagerVersion = "${ns_default_androidx_viewpager_version}"
|
|
325
327
|
if (project.hasProperty("androidXViewPager")) {
|
|
326
328
|
androidXViewPagerVersion = androidXViewPager
|
|
327
329
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.viewpager2:viewpager2:$androidXViewPagerVersion"
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
def androidXFragmentVersion = "${
|
|
332
|
+
def androidXFragmentVersion = "${ns_default_androidx_fragment_version}"
|
|
331
333
|
if (project.hasProperty("androidXFragment")) {
|
|
332
334
|
androidXFragmentVersion = androidXFragment
|
|
333
335
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.fragment:fragment:$androidXFragmentVersion"
|
|
334
336
|
}
|
|
335
337
|
|
|
336
|
-
def androidXTransitionVersion = "${
|
|
338
|
+
def androidXTransitionVersion = "${ns_default_androidx_transition_version}"
|
|
337
339
|
if (project.hasProperty("androidXTransition")) {
|
|
338
340
|
androidXTransitionVersion = androidXTransition
|
|
339
341
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.transition:transition:$androidXTransitionVersion"
|
|
340
342
|
}
|
|
341
343
|
|
|
342
|
-
def androidXMultidexVersion = "${
|
|
344
|
+
def androidXMultidexVersion = "${ns_default_androidx_multidex_version}"
|
|
343
345
|
if (project.hasProperty("androidXMultidex")) {
|
|
344
346
|
androidXMultidexVersion = androidXMultidex
|
|
345
347
|
outLogger.withStyle(Style.SuccessHeader).println "\t + using android X library androidx.multidex:multidex:$androidXMultidexVersion"
|
|
@@ -347,7 +349,7 @@ dependencies {
|
|
|
347
349
|
|
|
348
350
|
implementation "androidx.multidex:multidex:$androidXMultidexVersion"
|
|
349
351
|
implementation "androidx.appcompat:appcompat:$androidXAppCompatVersion"
|
|
350
|
-
|
|
352
|
+
debugImplementation "com.google.android.material:material:$androidXMaterialVersion"
|
|
351
353
|
implementation "androidx.exifinterface:exifinterface:$androidXExifInterfaceVersion"
|
|
352
354
|
implementation "androidx.viewpager2:viewpager2:$androidXViewPagerVersion"
|
|
353
355
|
//noinspection KtxExtensionAvailable
|
|
@@ -462,6 +464,10 @@ tasks.whenTaskAdded({ DefaultTask currentTask ->
|
|
|
462
464
|
if (currentTask =~ /merge.*Assets/) {
|
|
463
465
|
currentTask.dependsOn(buildMetadata)
|
|
464
466
|
}
|
|
467
|
+
// ensure buildMetadata is done before R8 to allow custom proguard from metadata
|
|
468
|
+
if (currentTask =~ /minify.*WithR8/) {
|
|
469
|
+
currentTask.dependsOn(buildMetadata)
|
|
470
|
+
}
|
|
465
471
|
if (currentTask =~ /assemble.*Debug/ || currentTask =~ /assemble.*Release/) {
|
|
466
472
|
currentTask.finalizedBy("validateAppIdMatch")
|
|
467
473
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -156,8 +156,7 @@ class ErrorReport implements TabLayout.OnTabSelectedListener {
|
|
|
156
156
|
static void startPendingErrorActivity(Context context, Intent intent) throws CanceledException {
|
|
157
157
|
int flags = PendingIntent.FLAG_CANCEL_CURRENT;
|
|
158
158
|
if (Build.VERSION.SDK_INT >= 31) {
|
|
159
|
-
|
|
160
|
-
flags = PendingIntent.FLAG_CANCEL_CURRENT | FLAG_MUTABLE;
|
|
159
|
+
flags = PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE;
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, flags);
|
|
Binary file
|
|
Binary file
|