react-native-ota-hot-update 2.0.0 → 2.0.1
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.
|
@@ -7,9 +7,9 @@ import com.facebook.react.bridge.Promise
|
|
|
7
7
|
abstract class OtaHotUpdateSpec internal constructor(context: ReactApplicationContext) :
|
|
8
8
|
ReactContextBaseJavaModule(context) {
|
|
9
9
|
|
|
10
|
-
abstract fun setupBundlePath(path: String
|
|
11
|
-
abstract fun deleteBundle(i:
|
|
10
|
+
abstract fun setupBundlePath(path: String?, extension: String?, promise: Promise)
|
|
11
|
+
abstract fun deleteBundle(i: Double, promise: Promise)
|
|
12
12
|
abstract fun restart()
|
|
13
|
-
abstract fun getCurrentVersion(a:
|
|
14
|
-
abstract fun setCurrentVersion(version: String
|
|
13
|
+
abstract fun getCurrentVersion(a: Double, promise: Promise)
|
|
14
|
+
abstract fun setCurrentVersion(version: String?, promise: Promise)
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -16,6 +16,9 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,cpp}"
|
|
18
18
|
s.dependency 'SSZipArchive', '~> 2.4.3'
|
|
19
|
+
if ENV['RCT_NEW_ARCH_ENABLED'] == '0'
|
|
20
|
+
s.exclude_files = "ios/generated"
|
|
21
|
+
end
|
|
19
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
20
23
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
21
24
|
if respond_to?(:install_modules_dependencies, true)
|