@nativescript/android 8.4.0-alpha.4 → 8.4.0-alpha.6

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.
@@ -302,7 +302,7 @@ repositories {
302
302
  dirs pluginDependencies
303
303
  }
304
304
  }
305
-
305
+
306
306
  mavenCentral()
307
307
  }
308
308
 
@@ -583,7 +583,7 @@ allprojects {
583
583
  def artifactType = Attribute.of('artifactType', String)
584
584
  android.applicationVariants.all { variant ->
585
585
  if (variant.buildType.name == buildType) {
586
- variant.getCompileClasspath().each { fileDependency ->
586
+ variant.getCompileClasspath().each { fileDependency ->
587
587
  processJar(fileDependency, jars)
588
588
  }
589
589
  }
@@ -772,13 +772,36 @@ task buildMetadata(type: BuildToolTask) {
772
772
  doFirst {
773
773
  // get compiled classes to pass to metadata generator
774
774
  // these need to be called after the classes have compiled
775
- assert file(classesDir).exists()
776
-
777
775
  new File(getMergedAssetsOutputPath() + "/metadata").deleteDir()
778
776
 
779
- def classesSubDirs = new File(classesDir).listFiles()
777
+ def classesSubDirs = []
778
+ def kotlinClassesSubDirs = []
780
779
  def selectedBuildType = project.ext.selectedBuildType
781
780
 
781
+ rootProject.subprojects {
782
+
783
+ def projectClassesDir = new File("$it.buildDir/intermediates/javac")
784
+ def projectKotlinClassesDir = new File("$it.buildDir/tmp/kotlin-classes")
785
+
786
+ if (projectClassesDir.exists()) {
787
+ def projectClassesSubDirs = projectClassesDir.listFiles()
788
+ for (File subDir : projectClassesSubDirs) {
789
+ if (!classesSubDirs.contains(subDir)) {
790
+ classesSubDirs.add(subDir)
791
+ }
792
+ }
793
+ }
794
+
795
+ if (projectKotlinClassesDir.exists()) {
796
+ def projectKotlinClassesSubDirs = projectKotlinClassesDir.listFiles();
797
+ for (File subDir : projectKotlinClassesSubDirs) {
798
+ if (!kotlinClassesSubDirs.contains(subDir)) {
799
+ kotlinClassesSubDirs.add(subDir)
800
+ }
801
+ }
802
+ }
803
+ }
804
+
782
805
  def generatedClasses = new LinkedList<String>()
783
806
  for (File subDir : classesSubDirs) {
784
807
  if (subDir.getName() == selectedBuildType) {
@@ -786,12 +809,9 @@ task buildMetadata(type: BuildToolTask) {
786
809
  }
787
810
  }
788
811
 
789
- if (file(kotlinClassesDir).exists()) {
790
- def kotlinClassesSubDirs = new File(kotlinClassesDir).listFiles()
791
- for (File subDir : kotlinClassesSubDirs) {
792
- if (subDir.getName() == selectedBuildType) {
793
- generatedClasses.add(subDir.getAbsolutePath())
794
- }
812
+ for (File subDir : kotlinClassesSubDirs) {
813
+ if (subDir.getName() == selectedBuildType) {
814
+ generatedClasses.add(subDir.getAbsolutePath())
795
815
  }
796
816
  }
797
817
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nativescript/android",
3
3
  "description": "NativeScript Runtime for Android",
4
- "version": "8.4.0-alpha.4",
4
+ "version": "8.4.0-alpha.6",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/NativeScript/android-runtime.git"