@nativescript/android 8.8.0-alpha.8 → 8.8.0-alpha.9

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.
@@ -79,6 +79,7 @@ def allJarLibraries = new LinkedList<String>()
79
79
 
80
80
  def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
81
81
  def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
82
+ def computeMinSdkVersion = { -> project.hasProperty("minSdk") ? targetSdk : NS_DEFAULT_COMPILE_SDK_VERSION as int }
82
83
  def computeBuildToolsVersion = { ->
83
84
  project.hasProperty("buildToolsVersion") ? buildToolsVersion : NS_DEFAULT_BUILD_TOOLS_VERSION as String
84
85
  }
@@ -217,7 +218,7 @@ android {
217
218
 
218
219
  defaultConfig {
219
220
  def manifest = new XmlSlurper().parse(file(android.sourceSets.main.manifest.srcFile))
220
- def minSdkVer = manifest."uses-sdk"."@android:minSdkVersion".text() ?: NS_DEFAULT_MIN_SDK_VERSION
221
+ def minSdkVer = manifest."uses-sdk"."@android:minSdkVersion".text() ?: computeMinSdkVersion()
221
222
  minSdkVersion minSdkVer
222
223
  targetSdkVersion computeTargetSdkVersion()
223
224
  ndk {
@@ -809,6 +810,76 @@ task buildMetadata(type: BuildToolTask) {
809
810
  if (syncLibJarsTask) {
810
811
  dependsOn syncLibJarsTask
811
812
  }
813
+
814
+ def mergeJavaResourceTaskName = "merge${buildTypeName}JavaResource"
815
+ def mergeJavaResourceTask = tasks.findByName(mergeJavaResourceTaskName)
816
+
817
+ if (mergeJavaResourceTask) {
818
+ dependsOn mergeJavaResourceTask
819
+ }
820
+
821
+ def mergeJniLibFoldersTaskName = "merge${buildTypeName}JniLibFolders"
822
+ def mergeJniLibFoldersTask = tasks.findByName(mergeJniLibFoldersTaskName)
823
+
824
+ if (mergeJniLibFoldersTask) {
825
+ dependsOn mergeJniLibFoldersTask
826
+ }
827
+
828
+ def mergeNativeLibsTaskName = "merge${buildTypeName}NativeLibs"
829
+ def mergeNativeLibsTask = tasks.findByName(mergeNativeLibsTaskName)
830
+
831
+ if (mergeNativeLibsTask) {
832
+ dependsOn mergeNativeLibsTask
833
+ }
834
+
835
+ def stripDebugSymbolsTaskName = "strip${buildTypeName}DebugSymbols"
836
+ def stripDebugSymbolsTask = tasks.findByName(stripDebugSymbolsTaskName)
837
+
838
+ if (stripDebugSymbolsTask) {
839
+ dependsOn stripDebugSymbolsTask
840
+ }
841
+
842
+ def validateSigningTaskName = "validateSigning${buildTypeName}"
843
+ def validateSigningTask = tasks.findByName(validateSigningTaskName)
844
+
845
+ if (validateSigningTask) {
846
+ dependsOn validateSigningTask
847
+ }
848
+
849
+
850
+ def extractProguardFilesTaskName = "extractProguardFiles"
851
+ def extractProguardFilesTask = tasks.findByName(extractProguardFilesTaskName)
852
+
853
+ if (extractProguardFilesTask) {
854
+ dependsOn extractProguardFilesTask
855
+ }
856
+
857
+
858
+ def compileArtProfileTaskName = "compile${buildTypeName}ArtProfile"
859
+ def compileArtProfileTask = tasks.findByName(compileArtProfileTaskName)
860
+
861
+ if (compileArtProfileTask) {
862
+ dependsOn compileArtProfileTask
863
+ }
864
+
865
+
866
+ def extractNativeSymbolTablesTaskName = "extract${buildTypeName}NativeSymbolTables"
867
+ def extractNativeSymbolTablesTask = tasks.findByName(extractNativeSymbolTablesTaskName)
868
+
869
+ if (extractNativeSymbolTablesTask) {
870
+ dependsOn extractNativeSymbolTablesTask
871
+ }
872
+
873
+
874
+ def optimizeResourcesTaskName = "optimize${buildTypeName}Resources"
875
+ def optimizeResourcesTask = tasks.findByName(optimizeResourcesTaskName)
876
+
877
+ if (optimizeResourcesTask) {
878
+ dependsOn optimizeResourcesTask
879
+ }
880
+
881
+
882
+
812
883
  }
813
884
 
814
885
  dependsOn copyMetadataFilters
@@ -1079,131 +1150,131 @@ tasks.configureEach({ DefaultTask currentTask ->
1079
1150
  cleanupAllJars.dependsOn(currentTask)
1080
1151
  }
1081
1152
 
1082
- if (currentTask.name == "extractProguardFiles") {
1083
- currentTask.finalizedBy(buildMetadata)
1084
- }
1085
-
1153
+ // if (currentTask.name == "extractProguardFiles") {
1154
+ // currentTask.finalizedBy(buildMetadata)
1155
+ // }
1156
+ //
1086
1157
  if (currentTask =~ /generate.+LintVitalReportModel/) {
1087
- currentTask.finalizedBy(buildMetadata)
1158
+ currentTask.dependsOn(buildMetadata)
1088
1159
  }
1089
1160
 
1090
1161
  if (currentTask =~ /lintVitalAnalyze.+/) {
1091
- currentTask.mustRunAfter(buildMetadata)
1092
- }
1093
-
1094
- if (currentTask =~ /merge.+GlobalSynthetics/) {
1095
- currentTask.finalizedBy(buildMetadata)
1096
- }
1097
-
1098
- if (currentTask =~ /optimize.+Resources/) {
1099
- currentTask.finalizedBy(buildMetadata)
1100
- }
1101
-
1102
- if (currentTask =~ /buildCMake.*/) {
1103
- currentTask.finalizedBy(buildMetadata)
1104
- }
1105
-
1106
- if (currentTask =~ /configureCMake.*/) {
1107
- currentTask.finalizedBy(buildMetadata)
1108
- }
1109
-
1110
- if (currentTask =~ /validateSigning.*/) {
1111
- currentTask.finalizedBy(buildMetadata)
1112
- }
1113
-
1114
- if (currentTask =~ /generate.*LintReportModel/) {
1115
- currentTask.finalizedBy(buildMetadata)
1116
- }
1117
-
1118
- if (currentTask =~ /generate.*AndroidTestResValues/) {
1119
- // buildMetadata.dependsOn(currentTask)
1120
- currentTask.finalizedBy(buildMetadata)
1121
- }
1122
-
1123
- if (currentTask =~ /generate.*AndroidTestLintModel/) {
1124
- currentTask.finalizedBy(buildMetadata)
1125
- }
1126
-
1127
- if (currentTask =~ /generate.*UnitTestLintModel/) {
1128
- buildMetadata.mustRunAfter(currentTask)
1129
- }
1130
-
1131
- if (currentTask =~ /generate.*UnitTestLintModel/) {
1132
- currentTask.finalizedBy(buildMetadata)
1133
- }
1134
-
1135
-
1136
- if (currentTask =~ /lintAnalyze.*UnitTest/) {
1137
- currentTask.finalizedBy(buildMetadata)
1138
- }
1139
-
1140
- if (currentTask =~ /process.*JavaRes/) {
1141
- currentTask.finalizedBy(buildMetadata)
1142
- }
1143
-
1144
- if (currentTask =~ /strip.*DebugSymbols/) {
1145
- currentTask.finalizedBy(buildMetadata)
1146
- }
1147
-
1148
- if (currentTask =~ /merge.*JavaResource/) {
1149
- currentTask.finalizedBy(buildMetadata)
1150
- }
1151
-
1152
- if (currentTask =~ /lintAnalyze.*/) {
1153
- currentTask.finalizedBy(buildMetadata)
1154
- }
1155
-
1156
- if (currentTask =~ /lintAnalyze.*AndroidTest/) {
1157
- currentTask.finalizedBy(buildMetadata)
1158
- }
1159
-
1160
- if (currentTask =~ /bundle.*Resources/) {
1161
- currentTask.finalizedBy(buildMetadata)
1162
- }
1163
-
1164
- if (currentTask =~ /compile.*ArtProfile/) {
1165
- currentTask.mustRunAfter(buildMetadata)
1166
- }
1167
-
1168
- if (currentTask =~ /check.*DuplicateClasses/) {
1169
- currentTask.finalizedBy(buildMetadata)
1170
- }
1171
-
1172
- if (currentTask =~ /check.*AarMetadata/) {
1173
- currentTask.finalizedBy(buildMetadata)
1174
- }
1175
-
1176
- if (currentTask =~ /create.*CompatibleScreenManifests/) {
1177
- currentTask.finalizedBy(buildMetadata)
1178
- }
1179
-
1180
- if (currentTask =~ /process.*Manifest/) {
1181
- currentTask.finalizedBy(buildMetadata)
1182
- }
1183
-
1184
- if (currentTask =~ /generate.*ResValues/) {
1185
- currentTask.finalizedBy(buildMetadata)
1186
- }
1187
-
1188
- if (currentTask =~ /merge.*Resources/) {
1189
- currentTask.finalizedBy(buildMetadata)
1190
- }
1191
-
1192
- if (currentTask =~ /package.*Resources/) {
1193
- currentTask.finalizedBy(buildMetadata)
1194
- }
1195
-
1196
- if (currentTask =~ /process.*Resources/) {
1197
- currentTask.finalizedBy(buildMetadata)
1198
- }
1199
-
1200
- if (currentTask =~ /desugar.*Dependencies/) {
1201
- currentTask.finalizedBy(buildMetadata)
1202
- }
1203
-
1204
- if (currentTask =~ /merge.*JniLibFolders/) {
1205
- currentTask.finalizedBy(buildMetadata)
1162
+ currentTask.dependsOn(buildMetadata)
1206
1163
  }
1164
+ //
1165
+ // if (currentTask =~ /merge.+GlobalSynthetics/) {
1166
+ // currentTask.finalizedBy(buildMetadata)
1167
+ // }
1168
+ //
1169
+ // if (currentTask =~ /optimize.+Resources/) {
1170
+ // currentTask.finalizedBy(buildMetadata)
1171
+ // }
1172
+ //
1173
+ // if (currentTask =~ /buildCMake.*/) {
1174
+ // currentTask.finalizedBy(buildMetadata)
1175
+ // }
1176
+ //
1177
+ // if (currentTask =~ /configureCMake.*/) {
1178
+ // currentTask.finalizedBy(buildMetadata)
1179
+ // }
1180
+ //
1181
+ // if (currentTask =~ /validateSigning.*/) {
1182
+ // currentTask.finalizedBy(buildMetadata)
1183
+ // }
1184
+ //
1185
+ // if (currentTask =~ /generate.*LintReportModel/) {
1186
+ // currentTask.finalizedBy(buildMetadata)
1187
+ // }
1188
+ //
1189
+ // if (currentTask =~ /generate.*AndroidTestResValues/) {
1190
+ // // buildMetadata.dependsOn(currentTask)
1191
+ // currentTask.finalizedBy(buildMetadata)
1192
+ // }
1193
+ //
1194
+ // if (currentTask =~ /generate.*AndroidTestLintModel/) {
1195
+ // currentTask.finalizedBy(buildMetadata)
1196
+ // }
1197
+ //
1198
+ // if (currentTask =~ /generate.*UnitTestLintModel/) {
1199
+ // buildMetadata.mustRunAfter(currentTask)
1200
+ // }
1201
+ //
1202
+ // if (currentTask =~ /generate.*UnitTestLintModel/) {
1203
+ // currentTask.finalizedBy(buildMetadata)
1204
+ // }
1205
+ //
1206
+ //
1207
+ // if (currentTask =~ /lintAnalyze.*UnitTest/) {
1208
+ // currentTask.finalizedBy(buildMetadata)
1209
+ // }
1210
+ //
1211
+ // if (currentTask =~ /process.*JavaRes/) {
1212
+ // currentTask.finalizedBy(buildMetadata)
1213
+ // }
1214
+ //
1215
+ // if (currentTask =~ /strip.*DebugSymbols/) {
1216
+ // currentTask.finalizedBy(buildMetadata)
1217
+ // }
1218
+ //
1219
+ // if (currentTask =~ /merge.*JavaResource/) {
1220
+ // currentTask.finalizedBy(buildMetadata)
1221
+ // }
1222
+ //
1223
+ // if (currentTask =~ /lintAnalyze.*/) {
1224
+ // currentTask.finalizedBy(buildMetadata)
1225
+ // }
1226
+ //
1227
+ // if (currentTask =~ /lintAnalyze.*AndroidTest/) {
1228
+ // currentTask.finalizedBy(buildMetadata)
1229
+ // }
1230
+ //
1231
+ // if (currentTask =~ /bundle.*Resources/) {
1232
+ // currentTask.finalizedBy(buildMetadata)
1233
+ // }
1234
+ //
1235
+ // if (currentTask =~ /compile.*ArtProfile/) {
1236
+ // currentTask.mustRunAfter(buildMetadata)
1237
+ // }
1238
+ //
1239
+ // if (currentTask =~ /check.*DuplicateClasses/) {
1240
+ // currentTask.finalizedBy(buildMetadata)
1241
+ // }
1242
+ //
1243
+ // if (currentTask =~ /check.*AarMetadata/) {
1244
+ // currentTask.finalizedBy(buildMetadata)
1245
+ // }
1246
+ //
1247
+ // if (currentTask =~ /create.*CompatibleScreenManifests/) {
1248
+ // currentTask.finalizedBy(buildMetadata)
1249
+ // }
1250
+ //
1251
+ // if (currentTask =~ /process.*Manifest/) {
1252
+ // currentTask.finalizedBy(buildMetadata)
1253
+ // }
1254
+ //
1255
+ // if (currentTask =~ /generate.*ResValues/) {
1256
+ // currentTask.finalizedBy(buildMetadata)
1257
+ // }
1258
+ //
1259
+ // if (currentTask =~ /merge.*Resources/) {
1260
+ // currentTask.finalizedBy(buildMetadata)
1261
+ // }
1262
+ //
1263
+ // if (currentTask =~ /package.*Resources/) {
1264
+ // currentTask.finalizedBy(buildMetadata)
1265
+ // }
1266
+ //
1267
+ // if (currentTask =~ /process.*Resources/) {
1268
+ // currentTask.finalizedBy(buildMetadata)
1269
+ // }
1270
+ //
1271
+ // if (currentTask =~ /desugar.*Dependencies/) {
1272
+ // currentTask.finalizedBy(buildMetadata)
1273
+ // }
1274
+ //
1275
+ // if (currentTask =~ /merge.*JniLibFolders/) {
1276
+ // currentTask.finalizedBy(buildMetadata)
1277
+ // }
1207
1278
 
1208
1279
  })
1209
1280
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/android",
3
3
  "description": "NativeScript for Android using v8",
4
- "version": "8.8.0-alpha.8",
4
+ "version": "8.8.0-alpha.9",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NativeScript/android.git"