react-native-maps 1.21.0-alpha.2 → 1.21.0-alpha.4

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.
@@ -17,16 +17,31 @@ buildscript {
17
17
  }
18
18
  }
19
19
 
20
- apply plugin: 'com.android.library'
20
+ def supportsNamespace() {
21
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
22
+ def major = parsed[0].toInteger()
23
+ def minor = parsed[1].toInteger()
24
+
25
+ // Namespace support was added in 7.3.0
26
+ if (major == 7 && minor >= 3) {
27
+ return true
28
+ }
29
+
30
+ return major >= 8
31
+ }
21
32
 
22
33
  def isNewArchitectureEnabled() {
23
34
  return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
24
35
  }
25
36
 
37
+ apply plugin: 'com.android.library'
38
+ if (isNewArchitectureEnabled()) {
39
+ apply plugin: 'com.facebook.react'
40
+ }
41
+ apply plugin: 'kotlin-android'
42
+
26
43
  android {
27
- namespace "com.rnmaps.maps"
28
- def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
29
- if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
44
+ if (supportsNamespace()) {
30
45
  namespace "com.rnmaps.maps"
31
46
  }
32
47
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "1.21.0-alpha.2",
8
+ "version": "1.21.0-alpha.4",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -93,7 +93,10 @@
93
93
  "codegenConfig": {
94
94
  "name": "RNMapsSpecs",
95
95
  "type": "all",
96
- "jsSrcsDir": "./src/specs"
96
+ "jsSrcsDir": "./src/specs",
97
+ "android": {
98
+ "javaPackageName": "com.rnmaps.fabric"
99
+ }
97
100
  },
98
101
  "engines": {
99
102
  "node": ">=18"