forked from Ivasoft/mattermost-mobile
(cherry picked from commit 66b469bb31)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
@@ -134,7 +134,7 @@ android {
|
||||
applicationId "com.mattermost.rnbeta"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 434
|
||||
versionCode 435
|
||||
versionName "1.56.0"
|
||||
multiDexEnabled = true
|
||||
testBuildType System.getProperty('testBuildType', 'debug')
|
||||
|
||||
@@ -906,7 +906,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CURRENT_PROJECT_VERSION = 434;
|
||||
CURRENT_PROJECT_VERSION = 435;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
|
||||
ENABLE_BITCODE = NO;
|
||||
@@ -948,7 +948,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = Mattermost/Mattermost.entitlements;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
CURRENT_PROJECT_VERSION = 434;
|
||||
CURRENT_PROJECT_VERSION = 435;
|
||||
DEAD_CODE_STRIPPING = YES;
|
||||
DEVELOPMENT_TEAM = UQ8HT4Q2XM;
|
||||
ENABLE_BITCODE = NO;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>434</string>
|
||||
<string>435</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.56.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>434</string>
|
||||
<string>435</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.56.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>434</string>
|
||||
<string>435</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionPointIdentifier</key>
|
||||
|
||||
@@ -88,8 +88,8 @@ PODS:
|
||||
- libwebp/mux (1.2.3):
|
||||
- libwebp/demux
|
||||
- libwebp/webp (1.2.3)
|
||||
- MMKV (1.2.13):
|
||||
- MMKVCore (~> 1.2.13)
|
||||
- MMKV (1.2.10):
|
||||
- MMKVCore (~> 1.2.10)
|
||||
- MMKVCore (1.2.14)
|
||||
- OpenSSL-Universal (1.1.1100)
|
||||
- Permission-Camera (3.6.1):
|
||||
@@ -328,8 +328,8 @@ PODS:
|
||||
- React-Core
|
||||
- react-native-local-auth (1.6.0):
|
||||
- React
|
||||
- react-native-mmkv-storage (0.8.0):
|
||||
- MMKV (= 1.2.13)
|
||||
- react-native-mmkv-storage (0.6.11):
|
||||
- MMKV (= 1.2.10)
|
||||
- React-Core
|
||||
- react-native-netinfo (9.3.6):
|
||||
- React-Core
|
||||
@@ -865,7 +865,7 @@ SPEC CHECKSUMS:
|
||||
jail-monkey: de7eab0c9cbe4e7cdd2f80d04f812337ae94b2e0
|
||||
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
|
||||
libwebp: 60305b2e989864154bd9be3d772730f08fc6a59c
|
||||
MMKV: aac95d817a100479445633f2b3ed8961b4ac5043
|
||||
MMKV: 76033b9ace2006623308910a3afcc0e25eba3140
|
||||
MMKVCore: 89f5c8a66bba2dcd551779dea4d412eeec8ff5bb
|
||||
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
|
||||
Permission-Camera: bf6791b17c7f614b6826019fcfdcc286d3a107f6
|
||||
@@ -895,7 +895,7 @@ SPEC CHECKSUMS:
|
||||
react-native-hw-keyboard-event: b517cefb8d5c659a38049c582de85ff43337dc53
|
||||
react-native-image-picker: 4bc9ed38c8be255b515d8c88babbaf74973f91a8
|
||||
react-native-local-auth: 49d336dcf0cb0268a930100013a6525844093844
|
||||
react-native-mmkv-storage: 8ba3c0216a6df283ece11205b442a3e435aec4e5
|
||||
react-native-mmkv-storage: 2b57ca101fae52428f6cef6552793f83c0cdbc46
|
||||
react-native-netinfo: f80db8cac2151405633324cb645c60af098ee461
|
||||
react-native-notifications: 33ec77006f7987bb22de8f1665889abc633b9196
|
||||
react-native-passcode-status: e78f76b3c8db613e6ced6bd40b54aa4f53374173
|
||||
|
||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -66,7 +66,7 @@
|
||||
"react-native-local-auth": "1.6.0",
|
||||
"react-native-localize": "2.2.4",
|
||||
"react-native-math-view": "3.9.5",
|
||||
"react-native-mmkv-storage": "0.8.0",
|
||||
"react-native-mmkv-storage": "0.6.11",
|
||||
"react-native-navigation": "7.30.0",
|
||||
"react-native-notifications": "4.3.1",
|
||||
"react-native-passcode-status": "1.1.2",
|
||||
@@ -19949,9 +19949,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/react-native-mmkv-storage": {
|
||||
"version": "0.8.0",
|
||||
"resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.8.0.tgz",
|
||||
"integrity": "sha512-L782Le5IuDYlDLGXF/qimbnzvkbYsSmV5PiDleo1DSS8Kr8Q31UK8YWtUICrDGQ9Fm7Xx4PxP9ffe2XzGeWaHQ==",
|
||||
"version": "0.6.11",
|
||||
"resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.6.11.tgz",
|
||||
"integrity": "sha512-PaxUxbTwr+PHfzoYt6E1Mds9/CjV5uOFVstuBW0laFUWlGrTHgiaLWR8VwJt0EPScSl5Lz4RM8IiqmXbIUSbbw==",
|
||||
"bin": {
|
||||
"mmkv-link": "autolink/postlink/run.js"
|
||||
},
|
||||
@@ -39427,9 +39427,9 @@
|
||||
}
|
||||
},
|
||||
"react-native-mmkv-storage": {
|
||||
"version": "0.8.0",
|
||||
"resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.8.0.tgz",
|
||||
"integrity": "sha512-L782Le5IuDYlDLGXF/qimbnzvkbYsSmV5PiDleo1DSS8Kr8Q31UK8YWtUICrDGQ9Fm7Xx4PxP9ffe2XzGeWaHQ==",
|
||||
"version": "0.6.11",
|
||||
"resolved": "https://registry.npmjs.org/react-native-mmkv-storage/-/react-native-mmkv-storage-0.6.11.tgz",
|
||||
"integrity": "sha512-PaxUxbTwr+PHfzoYt6E1Mds9/CjV5uOFVstuBW0laFUWlGrTHgiaLWR8VwJt0EPScSl5Lz4RM8IiqmXbIUSbbw==",
|
||||
"requires": {}
|
||||
},
|
||||
"react-native-navigation": {
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
"react-native-local-auth": "1.6.0",
|
||||
"react-native-localize": "2.2.4",
|
||||
"react-native-math-view": "3.9.5",
|
||||
"react-native-mmkv-storage": "0.8.0",
|
||||
"react-native-mmkv-storage": "0.6.11",
|
||||
"react-native-navigation": "7.30.0",
|
||||
"react-native-notifications": "4.3.1",
|
||||
"react-native-passcode-status": "1.1.2",
|
||||
|
||||
30
patches/react-native-mmkv-storage+0.6.11.patch
Normal file
30
patches/react-native-mmkv-storage+0.6.11.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff --git a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
index 352a28f..0f63009 100644
|
||||
--- a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
+++ b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
@@ -71,11 +71,12 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(install)
|
||||
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSUserDomainMask, YES);
|
||||
- NSString *libraryPath = (NSString *)[paths firstObject];
|
||||
- NSString *rootDir = [libraryPath stringByAppendingPathComponent:@"mmkv"];
|
||||
- rPath = rootDir;
|
||||
+ NSBundle *bundle = [NSBundle mainBundle];
|
||||
+ NSString *APP_GROUP_ID = [bundle objectForInfoDictionaryKey:@"AppGroupIdentifier"];
|
||||
+ NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:APP_GROUP_ID].path;
|
||||
+ rPath = groupDir;
|
||||
_secureStorage = [[SecureStorage alloc] init];
|
||||
- [MMKV initializeMMKV:rootDir];
|
||||
+ [MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogInfo];
|
||||
[self migrate];
|
||||
install(*(jsi::Runtime *)jsiRuntime);
|
||||
return @true;
|
||||
@@ -179,7 +180,7 @@ static void install(jsi::Runtime &jsiRuntime) {
|
||||
jsiRuntime, PropNameID::forAscii(jsiRuntime, "initializeMMKV"), 0,
|
||||
[](Runtime &runtime, const Value &thisValue, const Value *arguments,
|
||||
size_t count) -> Value {
|
||||
- [MMKV initializeMMKV:rPath];
|
||||
+ [MMKV initializeMMKV:nil groupDir:rPath logLevel:MMKVLogInfo];
|
||||
return Value::undefined();
|
||||
});
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
diff --git a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
index 9af089d..fb38ec0 100644
|
||||
--- a/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
+++ b/node_modules/react-native-mmkv-storage/ios/MMKVNative.mm
|
||||
@@ -32,11 +32,12 @@ RCT_EXPORT_MODULE()
|
||||
RCTExecuteOnMainQueue(^{
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
|
||||
NSUserDomainMask, YES);
|
||||
- NSString *libraryPath = (NSString *)[paths firstObject];
|
||||
- NSString *rootDir = [libraryPath stringByAppendingPathComponent:@"mmkv"];
|
||||
- rPath = rootDir;
|
||||
+ NSBundle *bundle = [NSBundle mainBundle];
|
||||
+ NSString *APP_GROUP_ID = [bundle objectForInfoDictionaryKey:@"AppGroupIdentifier"];
|
||||
+ NSString *groupDir = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:APP_GROUP_ID].path;
|
||||
+ rPath = groupDir;
|
||||
_secureStorage = [[SecureStorage alloc] init];
|
||||
- [MMKV initializeMMKV:rootDir];
|
||||
+ [MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogInfo];
|
||||
});
|
||||
|
||||
|
||||
@@ -186,7 +187,7 @@ static void install(jsi::Runtime &jsiRuntime) {
|
||||
jsiRuntime, PropNameID::forAscii(jsiRuntime, "initializeMMKV"), 0,
|
||||
[](Runtime &runtime, const Value &thisValue, const Value *arguments,
|
||||
size_t count) -> Value {
|
||||
- [MMKV initializeMMKV:rPath];
|
||||
+ [MMKV initializeMMKV:nil groupDir:rPath logLevel:MMKVLogInfo];
|
||||
return Value::undefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user