react-native-update 9.1.5 → 9.1.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.
@@ -9,6 +9,19 @@ def isNewArchitectureEnabled() {
9
9
  return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
10
10
  }
11
11
 
12
+ def supportsNamespace() {
13
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
14
+ def major = parsed[0].toInteger()
15
+ def minor = parsed[1].toInteger()
16
+
17
+ // Namespace support was added in 7.3.0
18
+ if (major == 7 && minor >= 3) {
19
+ return true
20
+ }
21
+
22
+ return major >= 8
23
+ }
24
+
12
25
  apply plugin: 'com.android.library'
13
26
  if (isNewArchitectureEnabled()) {
14
27
  apply plugin: 'com.facebook.react'
@@ -16,6 +29,16 @@ if (isNewArchitectureEnabled()) {
16
29
 
17
30
 
18
31
  android {
32
+
33
+ if (supportsNamespace()) {
34
+ namespace "cn.reactnative.modules.update"
35
+
36
+ sourceSets {
37
+ main {
38
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
39
+ }
40
+ }
41
+ }
19
42
  compileSdkVersion safeExtGet('compileSdkVersion', 28)
20
43
  buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
21
44
 
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
2
  package="cn.reactnative.modules.update">
4
3
  <application>
@@ -0,0 +1,14 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ <application>
3
+ <meta-data android:name="pushy_build_time" android:value="@string/pushy_build_time" />
4
+ <provider
5
+ android:name=".PushyFileProvider"
6
+ android:authorities="${applicationId}.pushy.fileprovider"
7
+ android:exported="false"
8
+ android:grantUriPermissions="true">
9
+ <meta-data
10
+ android:name="android.support.FILE_PROVIDER_PATHS"
11
+ android:resource="@xml/pushy_file_paths" />
12
+ </provider>
13
+ </application>
14
+ </manifest>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "9.1.5",
3
+ "version": "9.1.6",
4
4
  "description": "react-native hot update",
5
5
  "main": "lib/index.ts",
6
6
  "scripts": {