rhodes 7.5.1 → 7.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +319 -0
  3. data/README.md +3 -15
  4. data/Rakefile +3 -0
  5. data/appveyor.yml +37 -32
  6. data/azure-pipelines.yml +1 -1
  7. data/bin/rhodes-setup +22 -8
  8. data/extensions/emdk3-manager/ext/platform/android/src/com/rho/emdk3/EMDK3Extension.java +14 -5
  9. data/extensions/instrumentation/ext/platform/android/src/com/rho/instrumentation/Instrumentation.java +29 -15
  10. data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/src/com/rhomobile/rhoelements/ans/ANSManager.java +1 -1
  11. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/ElementsCore.java +12 -9
  12. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/graphics/BatteryIndicator.java +2 -2
  13. data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +1 -1
  14. data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro.erb +2 -2
  15. data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +9 -21
  16. data/lib/commonAPI/barcode/ext.yml +1 -0
  17. data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro +1 -1
  18. data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro.erb +1 -1
  19. data/lib/commonAPI/bluetooth/ext/platform/qt/src/bluetooth/bluetoothhelper.h +1 -1
  20. data/lib/commonAPI/coreapi/RhoSystemApi.rb +6 -0
  21. data/lib/commonAPI/coreapi/ext/Intent.xml +4 -0
  22. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/intent/IntentSingleton.java +6 -0
  23. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +2 -1
  24. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +1 -1
  25. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/webview/WebViewSingleton.java +40 -27
  26. data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +5 -6
  27. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.h +1 -1
  28. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.m +3 -1
  29. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +2 -1
  30. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +10 -0
  31. data/lib/commonAPI/coreapi/ext/platform/wm/src/IntentImpl.cpp +3 -0
  32. data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +13 -0
  33. data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
  34. data/lib/commonAPI/coreapi/ext/system.xml +3 -0
  35. data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationCameraActivity.erb +2 -2
  36. data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationFileProvider.erb +1 -1
  37. data/lib/commonAPI/mediacapture/ext/platform/android/ext_java.files +1 -0
  38. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +8 -4
  39. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +8 -0
  40. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/mediacapture/RhoCameraFileProvider.java +6 -0
  41. data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro.erb +1 -1
  42. data/lib/commonAPI/mediacapture/ext/platform/qt/Mediacapture.pro +1 -1
  43. data/lib/commonAPI/signature/ext/platform/iphone/impl/readme.txt +7 -0
  44. data/lib/commonAPI/signature/ext/platform/qt/Signature.pro +3 -10
  45. data/lib/commonAPI/signature/ext/platform/qt/Signature.pro.erb +2 -2
  46. data/lib/extensions/fcm-push/ext/iphone/Podfile +15 -2
  47. data/lib/extensions/fcm-push/ext/iphone/fcm-push.xcodeproj/project.pbxproj +6 -7
  48. data/lib/extensions/nfc/ext/platform/android/src/com/rhomobile/nfc/Nfc.java +2 -1
  49. data/lib/extensions/serialport/ext/serialport.pro +1 -1
  50. data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +1 -0
  51. data/platform/android/Rhodes/jni/src/fileapi.cpp +4 -0
  52. data/platform/android/Rhodes/res/drawable/baseline_check_24.xml +5 -0
  53. data/platform/android/Rhodes/res/drawable/baseline_check_240.xml +5 -0
  54. data/platform/android/Rhodes/res/drawable/baseline_close_24.xml +5 -0
  55. data/platform/android/Rhodes/res/drawable/baseline_close_240.xml +5 -0
  56. data/platform/android/Rhodes/res/layout/overlay_layout.xml +39 -0
  57. data/platform/android/Rhodes/res/layout/perrmission_alert_dialog.xml +267 -0
  58. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +183 -66
  59. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +38 -6
  60. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoFileProvider.java +32 -0
  61. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +529 -89
  62. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +26 -4
  63. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +256 -160
  64. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +14 -3
  65. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +4 -0
  66. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +5 -4
  67. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +79 -38
  68. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +6 -1
  69. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/CallReceiver.java +22 -0
  70. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/IKioskMode.java +11 -0
  71. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/KioskManager.java +18 -0
  72. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyAccessibilityService.java +230 -0
  73. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyNotificationListenerService.java +16 -0
  74. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyOverlayService.java +197 -0
  75. data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/PermissionManager.java +232 -0
  76. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +34 -8
  77. data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/CheckDrawable.java +53 -0
  78. data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/PermissionListGenerate.java +366 -0
  79. data/platform/android/Rhodes/src/com/rhomobile/rhodes/rhodes.iml +11 -0
  80. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +1 -0
  81. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +782 -41
  82. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputConnectionWrapper.java +146 -0
  83. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputListener.java +21 -0
  84. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +92 -32
  85. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/TauWebViewOptions.java +118 -0
  86. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderBase.java +18 -17
  87. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderEclairMR1.java +4 -4
  88. data/platform/android/build/RhodesSRC_build.files +13 -0
  89. data/platform/android/build/android-repack.rake +8 -1
  90. data/platform/android/build/android.rake +118 -51
  91. data/platform/android/build/android_tools.rb +1 -1
  92. data/platform/android/build/androidcommon.rb +13 -7
  93. data/platform/android/build/config.yml +4 -1
  94. data/platform/android/build/manifest_generator.rb +14 -10
  95. data/platform/android/build/maven_deps_extractor.rb +7 -1
  96. data/platform/android/build/ndkwrapper.rb +12 -0
  97. data/platform/android/proguard/proguard-base-rules.pro +5 -0
  98. data/platform/android/proguard/proguard.jar +0 -0
  99. data/platform/iphone/Classes/RhoAppBaseLib-Bridging-Header.h +4 -0
  100. data/platform/iphone/Classes/RhoAppBaseStandaloneLib-Bridging-Header.h +4 -0
  101. data/platform/iphone/Classes/RhoCryptAESGCM.swift +105 -0
  102. data/platform/iphone/Classes/RhoUIWebView.h +1 -1
  103. data/platform/iphone/Classes/RhoUIWebView.m +1 -1
  104. data/platform/iphone/Classes/RhoWKWebView.h +1 -1
  105. data/platform/iphone/Classes/RhoWKWebView.mm +32 -4
  106. data/platform/iphone/Classes/RhoWebView.h +1 -1
  107. data/platform/iphone/Classes/RhoWebViewFabrique.m +7 -1
  108. data/platform/iphone/Classes/SimpleMainView.m +5 -5
  109. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +21 -10
  110. data/platform/iphone/Classes/rho/net/IPhoneNetRequest.mm +4 -0
  111. data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +1 -1
  112. data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1 -1
  113. data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +46 -1
  114. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +1 -1
  115. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +4 -1
  116. data/platform/iphone/rbuild/iphone.rake +9 -8
  117. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -1
  118. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +1 -1
  119. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +1 -1
  120. data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
  121. data/platform/sailfish/build/{harbour-SailfishRhodes.pro.erb → SailfishRhodes.pro.erb} +10 -17
  122. data/platform/sailfish/build/rhodes.pro.erb +7 -17
  123. data/platform/sailfish/build/rpm/SailfishRhodes.desktop.erb +12 -0
  124. data/platform/sailfish/build/rpm/SailfishRhodes.erb +2 -0
  125. data/platform/sailfish/build/rpm/SailfishRhodes.spec.erb +43 -0
  126. data/platform/sailfish/build/rubylib.pro.erb +29 -29
  127. data/platform/sailfish/build/sailfish.rake +188 -180
  128. data/platform/sailfish/keys/regular_cert.pem +14 -0
  129. data/platform/sailfish/keys/regular_key.pem +4 -0
  130. data/platform/shared/common/RhodesApp.cpp +33 -9
  131. data/platform/shared/common/iphone/RhoCryptImpl.mm +130 -54
  132. data/platform/shared/qt/RhoSimulator.pro +1 -1
  133. data/platform/shared/qt/rhodes/rhodes.pro +4 -11
  134. data/platform/shared/qt/sailfish/SailfishRhodes.desktop +3 -4
  135. data/platform/shared/qt/sailfish/SailfishRhodes.pro +9 -10
  136. data/platform/shared/qt/sailfish/icons/108x108/108x108.png +0 -0
  137. data/platform/shared/qt/sailfish/privileges/sailfishrhodes +2 -0
  138. data/platform/shared/qt/sailfish/qml/pages/FirstPageWK.qml +7 -11
  139. data/platform/shared/qt/sailfish/qml/{harbour-sailfishrhodes.qml → sailfishrhodes.qml} +1 -1
  140. data/platform/shared/qt/sailfish/rpm/sailfishrhodes.spec +80 -0
  141. data/platform/shared/qt/sailfish/rpm/{harbour-sailfishrhodes.yaml → sailfishrhodes.yaml} +2 -2
  142. data/platform/shared/qt/sailfish/src/QtMainWindow.cpp +1 -1
  143. data/platform/shared/qt/sailfish/src/QtMainWindow.h +1 -1
  144. data/platform/shared/qt/sailfish/src/main.cpp +6 -38
  145. data/platform/shared/qt/sailfish/src/rootdelegate.h +2 -14
  146. data/platform/shared/ruby/aurora/ruby/config.h +386 -0
  147. data/platform/shared/ruby/aurora/ruby/constdefs.c +5866 -0
  148. data/platform/shared/ruby/aurora/ruby/constdefs.h +1788 -0
  149. data/platform/shared/sqlite/crypto.c +14 -0
  150. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  151. data/platform/win32/build/rhodes.nsi +3 -3
  152. data/platform/win32/build/win32.rake +1 -1
  153. data/rakefile.rb +3 -0
  154. data/res/build-tools/iphonesim/build/Release/iphonesim_8 +4 -4
  155. data/res/generators/templates/application/AndroidManifest.erb +26 -5
  156. data/res/generators/templates/application/build.yml +14 -10
  157. data/res/generators/templates/application/resources/android/res/xml/provider_paths.xml +4 -0
  158. data/res/generators/templates/application/rhoconfig.txt +10 -1
  159. data/res/generators/templates/iphone_project/Bremen8.xcodeproj/project.pbxproj +24 -1
  160. data/res/generators/templates/iphone_project/Classes/SimpleSwiftClass.swift +20 -0
  161. data/res/generators/templates/iphone_project/Classes/rhorunner-Bridging-Header.h +4 -0
  162. data/rhobuild.yml.example +3 -3
  163. data/rhodes.gemspec +4 -2
  164. data/version +1 -1
  165. metadata +81 -26
  166. data/platform/sailfish/build/rho_build.cmd.erb +0 -14
  167. data/platform/sailfish/build/rho_clean.cmd.erb +0 -14
  168. data/platform/sailfish/build/rho_deploy.cmd.erb +0 -15
  169. data/platform/sailfish/build/rho_rpm.cmd.erb +0 -14
  170. data/platform/sailfish/build/rho_rpmvalidation.cmd.erb +0 -14
  171. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.desktop.erb +0 -7
  172. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.erb +0 -2
  173. data/platform/sailfish/build/rpm/harbour-SailfishRhodes.yaml.erb +0 -37
  174. data/platform/shared/qt/sailfish/harbour-sailfishrhodes.desktop +0 -6
  175. data/platform/shared/qt/sailfish/icons/108x108/harbour-sailfishrhodes.png +0 -0
  176. data/platform/shared/qt/sailfish/privileges/harbour-sailfishrhodes +0 -2
  177. data/platform/shared/qt/sailfish/qml/pages/FirstPageWE.qml +0 -236
  178. /data/platform/shared/qt/sailfish/icons/128x128/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
  179. /data/platform/shared/qt/sailfish/icons/172x172/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
  180. /data/platform/shared/qt/sailfish/icons/86x86/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
@@ -126,8 +126,26 @@ static void dumpClassInfo(Class c, int inheritanceDepth)
126
126
  isDirectRequestActivated = YES;
127
127
  }
128
128
  }
129
- if (isDirectRequestActivated) {
129
+ BOOL isDirectRequestCustomProtocol = NO;
130
+ if (rho_conf_is_property_exists("ios_direct_local_requests_with_custom_protocol")!=0) {
131
+ if (rho_conf_getBool("ios_direct_local_requests_with_custom_protocol")!=0 ) {
132
+ isDirectRequestCustomProtocol = YES;
133
+ }
134
+ }
135
+
136
+ if (isDirectRequestActivated || isDirectRequestCustomProtocol) {
137
+
130
138
  BOOL isDirectProcessingActivated = NO;
139
+
140
+
141
+ if (!isDirectProcessingActivated) {
142
+ if (isDirectRequestCustomProtocol) {
143
+
144
+ CRhoWKURLProtocol *schemeHandler = [[CRhoWKURLProtocol alloc] init];
145
+ [configuration setURLSchemeHandler:schemeHandler forURLScheme:@"rhoctp"];
146
+ isDirectProcessingActivated = YES;
147
+ }
148
+ }
131
149
 
132
150
  #ifdef APP_BUILD_CAPABILITY_IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING_METHOD_3
133
151
  if (!isDirectProcessingActivated) {
@@ -209,10 +227,15 @@ static void dumpClassInfo(Class c, int inheritanceDepth)
209
227
  }
210
228
  }
211
229
  #endif
230
+
212
231
  if (!isDirectProcessingActivated) {
213
232
  RAWLOG_ERROR("You can not enable ios_direct_local_requests if you not added IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING or/and APP_BUILD_CAPABILITY_IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING_METHOD_2 or/and APP_BUILD_CAPABILITY_IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING_METHOD_3 capability/s to build.yml !!!");
214
233
  }
215
234
  }
235
+
236
+ configuration.preferences.javaScriptCanOpenWindowsAutomatically = YES;
237
+ //configuration.limitsNavigationsToAppBoundDomains = NO;
238
+
216
239
  WKWebView* w = [[WKWebView alloc] initWithFrame:frame configuration:configuration];
217
240
 
218
241
  //w.scalesPageToFit = YES;
@@ -258,10 +281,15 @@ static void dumpClassInfo(Class c, int inheritanceDepth)
258
281
 
259
282
  //UIWebView
260
283
 
261
- - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script {
284
+ - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script wantAnswer:(BOOL)wantAnswer{
262
285
  __block NSString *resultString = nil;
263
286
  __block BOOL finished = NO;
264
287
 
288
+ if (!wantAnswer) {
289
+ [webview evaluateJavaScript:script completionHandler:nil];
290
+ return nil;
291
+ }
292
+
265
293
  [webview evaluateJavaScript:script completionHandler:^(id result, NSError *error) {
266
294
  if (error == nil) {
267
295
  if (result != nil) {
@@ -273,7 +301,7 @@ static void dumpClassInfo(Class c, int inheritanceDepth)
273
301
  finished = YES;
274
302
  }];
275
303
 
276
- while (!finished)
304
+ while (!finished && wantAnswer)
277
305
  {
278
306
  [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
279
307
  }
@@ -338,7 +366,7 @@ static void dumpClassInfo(Class c, int inheritanceDepth)
338
366
  - (void)webView:(WKWebView *)webView didFinishNavigation:(null_unspecified WKNavigation *)navigation {
339
367
  // force Ajax CommonAPI calls
340
368
  NSString* jscode = @"window['__rho_nativeBridgeType']='ajax'";
341
- [self stringByEvaluatingJavaScriptFromString:jscode];
369
+ [self stringByEvaluatingJavaScriptFromString:jscode wantAnswer:NO];
342
370
 
343
371
  [delegate webViewDidFinishLoad:self];
344
372
  }
@@ -54,7 +54,7 @@
54
54
 
55
55
  //UIWebView
56
56
 
57
- - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;
57
+ - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script wantAnswer:(BOOL)wantAnswer;
58
58
 
59
59
  - (void)loadRequest:(NSURLRequest *)request;
60
60
 
@@ -49,12 +49,18 @@
49
49
 
50
50
  BOOL shouldMakeWkWebView = YES;
51
51
  BOOL isDirectRequestActivated = NO;
52
+ BOOL isDirectRequestCustomProtocol = NO;
52
53
  BOOL isWKWebViewCLassExist = NO;
53
54
  if (rho_conf_is_property_exists("ios_direct_local_requests")!=0) {
54
55
  if (rho_conf_getBool("ios_direct_local_requests")!=0 ) {
55
56
  isDirectRequestActivated = YES;
56
57
  }
57
58
  }
59
+ if (rho_conf_is_property_exists("ios_direct_local_requests_with_custom_protocol")!=0) {
60
+ if (rho_conf_getBool("ios_direct_local_requests_with_custom_protocol")!=0 ) {
61
+ isDirectRequestCustomProtocol = YES;
62
+ }
63
+ }
58
64
  if (rho_conf_is_property_exists("ios_use_WKWebView")!=0) {
59
65
  if (rho_conf_getBool("ios_use_WKWebView")==0 ) {
60
66
  #ifdef APP_BUILD_CAPABILITY_IOS_UIWEBVIEW
@@ -72,7 +78,7 @@
72
78
 
73
79
  if (shouldMakeWkWebView) {
74
80
  RAWLOG_INFO("Try to create WKWebView ...");
75
- if (isDirectRequestActivated) {
81
+ if (isDirectRequestActivated && (!isDirectRequestCustomProtocol)) {
76
82
  #ifdef APP_BUILD_CAPABILITY_IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING
77
83
 
78
84
  #elif defined APP_BUILD_CAPABILITY_IOS_WKWEBVIEW_HTTP_DIRECT_PROCESSING_METHOD_2
@@ -732,7 +732,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
732
732
 
733
733
  //[self loadHTMLString:datas];
734
734
  NSString* jscode = [NSString stringWithFormat:@"document.body.style.backgroundColor = \"#%6X\";", bkg_color];
735
- [self.rhoWebView stringByEvaluatingJavaScriptFromString:jscode];
735
+ [self.rhoWebView stringByEvaluatingJavaScriptFromString:jscode wantAnswer:NO];
736
736
 
737
737
  //self.webView.hidden = YES;
738
738
  }
@@ -983,7 +983,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
983
983
  [self.view.superview bringSubviewToFront:self.view];
984
984
  }
985
985
  RAWLOG_INFO1("Executing JS: %s", [js UTF8String]);
986
- [rhoWebView stringByEvaluatingJavaScriptFromString:js];
986
+ [rhoWebView stringByEvaluatingJavaScriptFromString:js wantAnswer:NO];
987
987
  }
988
988
 
989
989
  - (NSString*)currentLocation:(int)index {
@@ -993,7 +993,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
993
993
  #define CUR_URL_DICT_KEY @"CUR_URL_DICT_KEY"
994
994
 
995
995
  -(void) get_current_url_command:(NSMutableDictionary*)dict {
996
- NSString* res = [rhoWebView stringByEvaluatingJavaScriptFromString:@"window.location.href"];
996
+ NSString* res = [rhoWebView stringByEvaluatingJavaScriptFromString:@"window.location.href" wantAnswer:YES];
997
997
  //NSString* res = [[webView.request mainDocumentURL] absoluteString];
998
998
  [dict setValue:res forKey:CUR_URL_DICT_KEY];
999
999
  }
@@ -1131,7 +1131,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
1131
1131
  #if defined(RHO_NO_RUBY_API)
1132
1132
  if (![scheme isEqualToString:@"http"] && ![scheme isEqualToString:@"https"] && ![scheme isEqualToString:@"file"])
1133
1133
  #else
1134
- if (![scheme isEqualToString:@"http"] && ![scheme isEqualToString:@"https"] && ![scheme isEqualToString:@"file"])
1134
+ if (![scheme isEqualToString:@"http"] && ![scheme isEqualToString:@"https"] && ![scheme isEqualToString:@"rhoctp"] && ![scheme isEqualToString:@"file"])
1135
1135
  #endif
1136
1136
  external = YES;
1137
1137
  else {
@@ -1181,7 +1181,7 @@ static BOOL makeHiddenUntilLoadContent = YES;
1181
1181
 
1182
1182
  - (void)webViewDidFinishLoad:(id<RhoWebView,NSObject>)webView {
1183
1183
  // Disable default context menu on touch
1184
- [rhoWebView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout = \"none\";"];
1184
+ [rhoWebView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout = \"none\";" wantAnswer:NO];
1185
1185
 
1186
1186
  PROF_STOP("BROWSER_PAGE");
1187
1187
 
@@ -162,7 +162,10 @@ int on_http_cb(http_parser* parser) { return 0; }
162
162
  if (rho_conf_is_property_exists("ios_direct_local_requests")!=0) {
163
163
  canHandle = rho_conf_getBool("ios_direct_local_requests")!=0;
164
164
  }
165
-
165
+ if (rho_conf_is_property_exists("ios_direct_local_requests_with_custom_protocol")!=0) {
166
+ canHandle = canHandle || (rho_conf_getBool("ios_direct_local_requests_with_custom_protocol")!=0);
167
+ }
168
+
166
169
  if ( canHandle ) {
167
170
  if (is_net_trace()) {
168
171
  RAWTRACE("$NetRequestProcess$ canInitWithRequest: ios_direct_local_requests = true !");
@@ -257,20 +260,28 @@ int on_http_cb(http_parser* parser) { return 0; }
257
260
  NSMutableString* s = nil;//[NSMutableString stringWithFormat:@"https://127.0.0.1:%d%@",rho_http_get_port(),[url path]];
258
261
 
259
262
  bool force_https = false;
263
+ bool force_custom_protocol = false;
260
264
  if (rho_conf_is_property_exists("ios_https_local_server")!=0) {
261
265
  force_https = rho_conf_getBool("ios_https_local_server")!=0;
262
266
  }
263
-
267
+ if (rho_conf_is_property_exists("ios_direct_local_requests_with_custom_protocol")!=0) {
268
+ force_custom_protocol = rho_conf_getBool("ios_direct_local_requests_with_custom_protocol")!=0;
269
+ }
270
+
264
271
  NSString* spath = [url path];
265
272
  spath = [spath stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLFragmentAllowedCharacterSet]];
266
273
 
267
-
268
- if (force_https) {
269
- s = [NSMutableString stringWithFormat:@"%@://127.0.0.1:%d%@",@"https",rho_http_get_port(),spath];
270
- }
271
- else {
272
- s = [NSMutableString stringWithFormat:@"%@://127.0.0.1:%d%@",@"http", rho_http_get_port(),spath];
273
- }
274
+ if (force_custom_protocol) {
275
+ s = [NSMutableString stringWithFormat:@"%@://127.0.0.1:%d%@",@"rhoctp",rho_http_get_port(),spath];
276
+ }
277
+ else {
278
+ if (force_https) {
279
+ s = [NSMutableString stringWithFormat:@"%@://127.0.0.1:%d%@",@"https",rho_http_get_port(),spath];
280
+ }
281
+ else {
282
+ s = [NSMutableString stringWithFormat:@"%@://127.0.0.1:%d%@",@"http", rho_http_get_port(),spath];
283
+ }
284
+ }
274
285
 
275
286
 
276
287
  NSString* squery = [url query];
@@ -505,7 +516,7 @@ int on_http_cb(http_parser* parser) { return 0; }
505
516
 
506
517
  const char* scheme = [[url scheme] UTF8String];
507
518
  if (scheme != 0) {
508
- if ((strcmp(scheme, "http") !=0 ) && (strcmp(scheme, "https") !=0 )) {
519
+ if ((strcmp(scheme, "http") !=0 ) && (strcmp(scheme, "https") !=0 ) && (strcmp(scheme, "rhoctp") !=0 )) {
509
520
  if (is_net_trace()) {
510
521
  RAWTRACE("$NetRequestProcess$ isLocalURL END : return NO");
511
522
  }
@@ -174,6 +174,10 @@ totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite;
174
174
  [super dealloc];
175
175
  }
176
176
 
177
+ - (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)connection {
178
+ return NO;
179
+ }
180
+
177
181
  - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)err
178
182
  {
179
183
  if (is_net_trace()) {
@@ -172,7 +172,7 @@
172
172
  );
173
173
  runOnlyForDeploymentPostprocessing = 0;
174
174
  shellPath = /bin/sh;
175
- shellScript = "LIB_NAME=\"RhoApplication\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
175
+ shellScript = "LIB_NAME=\"RhoApplication\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
176
176
  };
177
177
  /* End PBXShellScriptBuildPhase section */
178
178
 
@@ -860,7 +860,7 @@
860
860
  );
861
861
  runOnlyForDeploymentPostprocessing = 0;
862
862
  shellPath = /bin/sh;
863
- shellScript = "FRAMEWORK_NAME=\"Rhodes\"\n\nSIMULATOR_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework\"\n\nDEVICE_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework\"\n\nDEVICE_BCSYMBOLMAP_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\nDEVICE_DSYM_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework.dSYM\"\nSIMULATOR_DSYM_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework.dSYM\"\n\nUNIVERSAL_LIBRARY_DIR=\"${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal\"\n\nFRAMEWORK=\"${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.framework\"\n\nOUTPUT_DIR=\"./${FRAMEWORK_NAME}-Aggregated\"\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -target ${FRAMEWORK_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -target ${FRAMEWORK_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\n\n\nrm -rf \"${UNIVERSAL_LIBRARY_DIR}\"\n\nmkdir \"${UNIVERSAL_LIBRARY_DIR}\"\n\nmkdir \"${FRAMEWORK}\"\n\nrm -rf \"$OUTPUT_DIR\"\nmkdir -p \"$OUTPUT_DIR\"\n\ncp -r \"${DEVICE_LIBRARY_PATH}/.\" \"${FRAMEWORK}\"\n\n\nrm -rf \"${FRAMEWORK}/${FRAMEWORK_NAME}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}/${FRAMEWORK_NAME}\" \"${DEVICE_LIBRARY_PATH}/${FRAMEWORK_NAME}\" -create -output \"${FRAMEWORK}/${FRAMEWORK_NAME}\"\ncp -r \"${FRAMEWORK}\" \"$OUTPUT_DIR\"\n\n\ncp -r \"${DEVICE_DSYM_PATH}\" \"$OUTPUT_DIR\"\nlipo -create -output \"$OUTPUT_DIR/${FRAMEWORK_NAME}.framework.dSYM/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" \\\n\"${DEVICE_DSYM_PATH}/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" \\\n\"${SIMULATOR_DSYM_PATH}/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" || exit 1\n\n\nUUIDs=$(dwarfdump --uuid \"${DEVICE_DSYM_PATH}\" | cut -d ' ' -f2)\nfor file in `find \"${DEVICE_BCSYMBOLMAP_PATH}\" -name \"*.bcsymbolmap\" -type f`; do\nfileName=$(basename \"$file\" \".bcsymbolmap\")\nfor UUID in $UUIDs; do\nif [[ \"$UUID\" = \"$fileName\" ]]; then\ncp -R \"$file\" \"$OUTPUT_DIR\"\ndsymutil --symbol-map \"$OUTPUT_DIR\"/\"$fileName\".bcsymbolmap \"$OUTPUT_DIR/${FRAMEWORK_NAME}.framework.dSYM\"\nfi\ndone\ndone\n";
863
+ shellScript = "FRAMEWORK_NAME=\"Rhodes\"\n\nSIMULATOR_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework\"\n\nDEVICE_LIBRARY_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework\"\n\nDEVICE_BCSYMBOLMAP_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\nDEVICE_DSYM_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework.dSYM\"\nSIMULATOR_DSYM_PATH=\"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework.dSYM\"\n\nUNIVERSAL_LIBRARY_DIR=\"${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal\"\n\nFRAMEWORK=\"${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.framework\"\n\nOUTPUT_DIR=\"./${FRAMEWORK_NAME}-Aggregated\"\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -target ${FRAMEWORK_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -target ${FRAMEWORK_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\n\n\nrm -rf \"${UNIVERSAL_LIBRARY_DIR}\"\n\nmkdir \"${UNIVERSAL_LIBRARY_DIR}\"\n\nmkdir \"${FRAMEWORK}\"\n\nrm -rf \"$OUTPUT_DIR\"\nmkdir -p \"$OUTPUT_DIR\"\n\ncp -r \"${DEVICE_LIBRARY_PATH}/.\" \"${FRAMEWORK}\"\n\n\nrm -rf \"${FRAMEWORK}/${FRAMEWORK_NAME}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}/${FRAMEWORK_NAME}\" \"${DEVICE_LIBRARY_PATH}/${FRAMEWORK_NAME}\" -create -output \"${FRAMEWORK}/${FRAMEWORK_NAME}\"\ncp -r \"${FRAMEWORK}\" \"$OUTPUT_DIR\"\n\n\ncp -r \"${DEVICE_DSYM_PATH}\" \"$OUTPUT_DIR\"\nlipo -create -output \"$OUTPUT_DIR/${FRAMEWORK_NAME}.framework.dSYM/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" \\\n\"${DEVICE_DSYM_PATH}/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" \\\n\"${SIMULATOR_DSYM_PATH}/Contents/Resources/DWARF/${FRAMEWORK_NAME}\" || exit 1\n\n\nUUIDs=$(dwarfdump --uuid \"${DEVICE_DSYM_PATH}\" | cut -d ' ' -f2)\nfor file in `find \"${DEVICE_BCSYMBOLMAP_PATH}\" -name \"*.bcsymbolmap\" -type f`; do\nfileName=$(basename \"$file\" \".bcsymbolmap\")\nfor UUID in $UUIDs; do\nif [[ \"$UUID\" = \"$fileName\" ]]; then\ncp -R \"$file\" \"$OUTPUT_DIR\"\ndsymutil --symbol-map \"$OUTPUT_DIR\"/\"$fileName\".bcsymbolmap \"$OUTPUT_DIR/${FRAMEWORK_NAME}.framework.dSYM\"\nfi\ndone\ndone\n";
864
864
  };
865
865
  /* End PBXShellScriptBuildPhase section */
866
866
 
@@ -25,6 +25,8 @@
25
25
  C04F28E119CAF3CA003E34BD /* RunnableWrapper.mm in Sources */ = {isa = PBXBuildFile; fileRef = C04F28DF19CAF3CA003E34BD /* RunnableWrapper.mm */; };
26
26
  C5BA525F1A93ADF90095DE4A /* IPhoneNetRequest.mm in Sources */ = {isa = PBXBuildFile; fileRef = C5BA525E1A93ADF90095DE4A /* IPhoneNetRequest.mm */; };
27
27
  C5DFBB31185B6FB400DB6BDB /* IAppMessageReceiver.h in Headers */ = {isa = PBXBuildFile; fileRef = C5DFBB30185B6FB400DB6BDB /* IAppMessageReceiver.h */; };
28
+ FA09EF3529E75E950021D5F1 /* RhoCryptAESGCM.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA09EF3429E75E950021D5F1 /* RhoCryptAESGCM.swift */; };
29
+ FA09EF3629E75E950021D5F1 /* RhoCryptAESGCM.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA09EF3429E75E950021D5F1 /* RhoCryptAESGCM.swift */; };
28
30
  FA11F249192121BF00FB1301 /* IRhoExtension.h in Headers */ = {isa = PBXBuildFile; fileRef = FA11F248192121BF00FB1301 /* IRhoExtension.h */; };
29
31
  FA11F24B192121F200FB1301 /* IRhoExtManager.h in Headers */ = {isa = PBXBuildFile; fileRef = FA11F24A192121F200FB1301 /* IRhoExtManager.h */; };
30
32
  FA11F24E1921221E00FB1301 /* RhoExtManagerImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = FA11F24C1921221E00FB1301 /* RhoExtManagerImpl.h */; };
@@ -370,6 +372,9 @@
370
372
  C5BA525E1A93ADF90095DE4A /* IPhoneNetRequest.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = IPhoneNetRequest.mm; path = rho/net/IPhoneNetRequest.mm; sourceTree = "<group>"; };
371
373
  C5DFBB30185B6FB400DB6BDB /* IAppMessageReceiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IAppMessageReceiver.h; sourceTree = "<group>"; };
372
374
  D2AAC046055464E500DB518D /* librhoappbaselib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = librhoappbaselib.a; sourceTree = BUILT_PRODUCTS_DIR; };
375
+ FA09EF3229E75E940021D5F1 /* RhoAppBaseLib-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RhoAppBaseLib-Bridging-Header.h"; sourceTree = "<group>"; };
376
+ FA09EF3329E75E950021D5F1 /* RhoAppBaseStandaloneLib-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RhoAppBaseStandaloneLib-Bridging-Header.h"; sourceTree = "<group>"; };
377
+ FA09EF3429E75E950021D5F1 /* RhoCryptAESGCM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RhoCryptAESGCM.swift; sourceTree = "<group>"; };
373
378
  FA11F248192121BF00FB1301 /* IRhoExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IRhoExtension.h; path = RhoExtManager/IRhoExtension.h; sourceTree = "<group>"; };
374
379
  FA11F24A192121F200FB1301 /* IRhoExtManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IRhoExtManager.h; path = RhoExtManager/IRhoExtManager.h; sourceTree = "<group>"; };
375
380
  FA11F24C1921221E00FB1301 /* RhoExtManagerImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RhoExtManagerImpl.h; path = RhoExtManager/RhoExtManagerImpl.h; sourceTree = "<group>"; };
@@ -840,6 +845,9 @@
840
845
  FA20C275182B04140036D304 /* RhoFileImpl.m */,
841
846
  FA20C276182B04140036D304 /* SplashScreenImpl.h */,
842
847
  FA20C277182B04140036D304 /* SplashScreenImpl.cpp */,
848
+ FA09EF3429E75E950021D5F1 /* RhoCryptAESGCM.swift */,
849
+ FA09EF3229E75E940021D5F1 /* RhoAppBaseLib-Bridging-Header.h */,
850
+ FA09EF3329E75E950021D5F1 /* RhoAppBaseStandaloneLib-Bridging-Header.h */,
843
851
  );
844
852
  name = common;
845
853
  sourceTree = "<group>";
@@ -1311,11 +1319,17 @@
1311
1319
  attributes = {
1312
1320
  LastUpgradeCheck = 0500;
1313
1321
  TargetAttributes = {
1322
+ D2AAC045055464E500DB518D = {
1323
+ LastSwiftMigration = 1410;
1324
+ };
1314
1325
  FAD356FD226422D200419673 = {
1315
1326
  CreatedOnToolsVersion = 10.1;
1316
1327
  DevelopmentTeam = PNQRMU2LPM;
1317
1328
  ProvisioningStyle = Automatic;
1318
1329
  };
1330
+ FAE78BDF22583F6C001A1150 = {
1331
+ LastSwiftMigration = 1410;
1332
+ };
1319
1333
  };
1320
1334
  };
1321
1335
  buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "RhoAppBaseLib" */;
@@ -1355,7 +1369,7 @@
1355
1369
  );
1356
1370
  runOnlyForDeploymentPostprocessing = 0;
1357
1371
  shellPath = /bin/sh;
1358
- shellScript = "LIB_NAME=\"RhoAppBaseStandaloneLib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
1372
+ shellScript = "LIB_NAME=\"RhoAppBaseStandaloneLib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
1359
1373
  };
1360
1374
  /* End PBXShellScriptBuildPhase section */
1361
1375
 
@@ -1445,6 +1459,7 @@
1445
1459
  FAE2F0B027EC1955000DC2DA /* DDNumber.m in Sources */,
1446
1460
  FA20C2F9182B07EB0036D304 /* RhoThreadImpl.m in Sources */,
1447
1461
  FA20C2D9182B07CB0036D304 /* SplittedMainView.m in Sources */,
1462
+ FA09EF3529E75E950021D5F1 /* RhoCryptAESGCM.swift in Sources */,
1448
1463
  FA20C2E8182B07D10036D304 /* MapViewController.m in Sources */,
1449
1464
  );
1450
1465
  runOnlyForDeploymentPostprocessing = 0;
@@ -1459,6 +1474,7 @@
1459
1474
  FAE78C2022583F6C001A1150 /* RhoWKWebView.mm in Sources */,
1460
1475
  FAE78C2122583F6C001A1150 /* RhoExtManagerImpl.m in Sources */,
1461
1476
  FAE78C2222583F6C001A1150 /* PickImageDelegate.m in Sources */,
1477
+ FA09EF3629E75E950021D5F1 /* RhoCryptAESGCM.swift in Sources */,
1462
1478
  FAE78C2322583F6C001A1150 /* RingtoneManager.m in Sources */,
1463
1479
  FAE78C2422583F6C001A1150 /* NativeBar.m in Sources */,
1464
1480
  FAE78C2522583F6C001A1150 /* InitMemoryInfoCollector.mm in Sources */,
@@ -1545,8 +1561,10 @@
1545
1561
  1DEB91EC08733DB70010E9CD /* Debug */ = {
1546
1562
  isa = XCBuildConfiguration;
1547
1563
  buildSettings = {
1564
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
1548
1565
  ALWAYS_SEARCH_USER_PATHS = NO;
1549
1566
  CLANG_CXX_LIBRARY = "libc++";
1567
+ CLANG_ENABLE_MODULES = YES;
1550
1568
  COPY_PHASE_STRIP = NO;
1551
1569
  GCC_DYNAMIC_NO_PIC = NO;
1552
1570
  GCC_ENABLE_FIX_AND_CONTINUE = YES;
@@ -1567,6 +1585,7 @@
1567
1585
  );
1568
1586
  INSTALL_PATH = /usr/local/lib;
1569
1587
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1588
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1570
1589
  ONLY_ACTIVE_ARCH = NO;
1571
1590
  OTHER_CFLAGS = "";
1572
1591
  OTHER_CPLUSPLUSFLAGS = (
@@ -1577,6 +1596,9 @@
1577
1596
  SDKROOT = iphoneos;
1578
1597
  SKIP_INSTALL = YES;
1579
1598
  STRIPFLAGS = "";
1599
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseLib-Bridging-Header.h";
1600
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1601
+ SWIFT_VERSION = 5.0;
1580
1602
  SYMROOT = ../build;
1581
1603
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1582
1604
  };
@@ -1585,8 +1607,10 @@
1585
1607
  1DEB91ED08733DB70010E9CD /* Release */ = {
1586
1608
  isa = XCBuildConfiguration;
1587
1609
  buildSettings = {
1610
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
1588
1611
  ALWAYS_SEARCH_USER_PATHS = NO;
1589
1612
  CLANG_CXX_LIBRARY = "libc++";
1613
+ CLANG_ENABLE_MODULES = YES;
1590
1614
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1591
1615
  GCC_MODEL_TUNING = G5;
1592
1616
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1604,6 +1628,7 @@
1604
1628
  );
1605
1629
  INSTALL_PATH = /usr/local/lib;
1606
1630
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1631
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1607
1632
  ONLY_ACTIVE_ARCH = NO;
1608
1633
  OTHER_CFLAGS = "";
1609
1634
  OTHER_CPLUSPLUSFLAGS = (
@@ -1614,6 +1639,8 @@
1614
1639
  SDKROOT = iphoneos;
1615
1640
  SKIP_INSTALL = YES;
1616
1641
  STRIPFLAGS = "";
1642
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseLib-Bridging-Header.h";
1643
+ SWIFT_VERSION = 5.0;
1617
1644
  SYMROOT = ../build;
1618
1645
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1619
1646
  };
@@ -1663,8 +1690,10 @@
1663
1690
  46B0042C10332DC400D0C2F4 /* Distribution */ = {
1664
1691
  isa = XCBuildConfiguration;
1665
1692
  buildSettings = {
1693
+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
1666
1694
  ALWAYS_SEARCH_USER_PATHS = NO;
1667
1695
  CLANG_CXX_LIBRARY = "libc++";
1696
+ CLANG_ENABLE_MODULES = YES;
1668
1697
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1669
1698
  GCC_MODEL_TUNING = G5;
1670
1699
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1682,6 +1711,7 @@
1682
1711
  );
1683
1712
  INSTALL_PATH = /usr/local/lib;
1684
1713
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1714
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1685
1715
  ONLY_ACTIVE_ARCH = NO;
1686
1716
  OTHER_CFLAGS = "";
1687
1717
  OTHER_CPLUSPLUSFLAGS = (
@@ -1692,6 +1722,8 @@
1692
1722
  SDKROOT = iphoneos;
1693
1723
  SKIP_INSTALL = YES;
1694
1724
  STRIPFLAGS = "";
1725
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseLib-Bridging-Header.h";
1726
+ SWIFT_VERSION = 5.0;
1695
1727
  SYMROOT = ../build;
1696
1728
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1697
1729
  };
@@ -1732,6 +1764,7 @@
1732
1764
  buildSettings = {
1733
1765
  ALWAYS_SEARCH_USER_PATHS = NO;
1734
1766
  CLANG_CXX_LIBRARY = "libc++";
1767
+ CLANG_ENABLE_MODULES = YES;
1735
1768
  COPY_PHASE_STRIP = NO;
1736
1769
  GCC_DYNAMIC_NO_PIC = NO;
1737
1770
  GCC_ENABLE_FIX_AND_CONTINUE = YES;
@@ -1753,6 +1786,7 @@
1753
1786
  );
1754
1787
  INSTALL_PATH = /usr/local/lib;
1755
1788
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1789
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1756
1790
  ONLY_ACTIVE_ARCH = NO;
1757
1791
  OTHER_CFLAGS = "";
1758
1792
  OTHER_CPLUSPLUSFLAGS = (
@@ -1763,6 +1797,9 @@
1763
1797
  SDKROOT = iphoneos;
1764
1798
  SKIP_INSTALL = YES;
1765
1799
  STRIPFLAGS = "";
1800
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseStandaloneLib-Bridging-Header.h";
1801
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1802
+ SWIFT_VERSION = 5.0;
1766
1803
  SYMROOT = ../build;
1767
1804
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1768
1805
  };
@@ -1773,6 +1810,7 @@
1773
1810
  buildSettings = {
1774
1811
  ALWAYS_SEARCH_USER_PATHS = NO;
1775
1812
  CLANG_CXX_LIBRARY = "libc++";
1813
+ CLANG_ENABLE_MODULES = YES;
1776
1814
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1777
1815
  GCC_MODEL_TUNING = G5;
1778
1816
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1791,6 +1829,7 @@
1791
1829
  );
1792
1830
  INSTALL_PATH = /usr/local/lib;
1793
1831
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1832
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1794
1833
  ONLY_ACTIVE_ARCH = NO;
1795
1834
  OTHER_CFLAGS = "";
1796
1835
  OTHER_CPLUSPLUSFLAGS = (
@@ -1801,6 +1840,8 @@
1801
1840
  SDKROOT = iphoneos;
1802
1841
  SKIP_INSTALL = YES;
1803
1842
  STRIPFLAGS = "";
1843
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseStandaloneLib-Bridging-Header.h";
1844
+ SWIFT_VERSION = 5.0;
1804
1845
  SYMROOT = ../build;
1805
1846
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1806
1847
  };
@@ -1811,6 +1852,7 @@
1811
1852
  buildSettings = {
1812
1853
  ALWAYS_SEARCH_USER_PATHS = NO;
1813
1854
  CLANG_CXX_LIBRARY = "libc++";
1855
+ CLANG_ENABLE_MODULES = YES;
1814
1856
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1815
1857
  GCC_MODEL_TUNING = G5;
1816
1858
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -1829,6 +1871,7 @@
1829
1871
  );
1830
1872
  INSTALL_PATH = /usr/local/lib;
1831
1873
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
1874
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1832
1875
  ONLY_ACTIVE_ARCH = NO;
1833
1876
  OTHER_CFLAGS = "";
1834
1877
  OTHER_CPLUSPLUSFLAGS = (
@@ -1839,6 +1882,8 @@
1839
1882
  SDKROOT = iphoneos;
1840
1883
  SKIP_INSTALL = YES;
1841
1884
  STRIPFLAGS = "";
1885
+ SWIFT_OBJC_BRIDGING_HEADER = "../Classes/RhoAppBaseStandaloneLib-Bridging-Header.h";
1886
+ SWIFT_VERSION = 5.0;
1842
1887
  SYMROOT = ../build;
1843
1888
  USER_HEADER_SEARCH_PATHS = "../../shared/curl/include ../../shared rhoextlib ../Classes/**";
1844
1889
  };
@@ -1060,7 +1060,7 @@
1060
1060
  );
1061
1061
  runOnlyForDeploymentPostprocessing = 0;
1062
1062
  shellPath = /bin/sh;
1063
- shellScript = "LIB_NAME=\"RhoLib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
1063
+ shellScript = "LIB_NAME=\"RhoLib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
1064
1064
  };
1065
1065
  /* End PBXShellScriptBuildPhase section */
1066
1066
 
@@ -843,7 +843,7 @@
843
843
  );
844
844
  runOnlyForDeploymentPostprocessing = 0;
845
845
  shellPath = /bin/sh;
846
- shellScript = "LIB_NAME=\"curl\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
846
+ shellScript = "LIB_NAME=\"curl\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
847
847
  };
848
848
  /* End PBXShellScriptBuildPhase section */
849
849
 
@@ -961,6 +961,7 @@
961
961
  ALWAYS_SEARCH_USER_PATHS = NO;
962
962
  CLANG_CXX_LIBRARY = "libc++";
963
963
  COPY_PHASE_STRIP = NO;
964
+ ENABLE_BITCODE = YES;
964
965
  GCC_DYNAMIC_NO_PIC = NO;
965
966
  GCC_ENABLE_FIX_AND_CONTINUE = YES;
966
967
  GCC_MODEL_TUNING = G5;
@@ -987,6 +988,7 @@
987
988
  ALWAYS_SEARCH_USER_PATHS = NO;
988
989
  CLANG_CXX_LIBRARY = "libc++";
989
990
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
991
+ ENABLE_BITCODE = YES;
990
992
  GCC_MODEL_TUNING = G5;
991
993
  INSTALL_PATH = /usr/local/lib;
992
994
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
@@ -1056,6 +1058,7 @@
1056
1058
  ALWAYS_SEARCH_USER_PATHS = NO;
1057
1059
  CLANG_CXX_LIBRARY = "libc++";
1058
1060
  DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1061
+ ENABLE_BITCODE = YES;
1059
1062
  GCC_MODEL_TUNING = G5;
1060
1063
  INSTALL_PATH = /usr/local/lib;
1061
1064
  IPHONEOS_DEPLOYMENT_TARGET = 9.0;
@@ -936,15 +936,16 @@ def update_xcode_project_files_by_capabilities
936
936
  hash_dev_ent = load_plist(dev_ent)
937
937
  hash_prd_ent = load_plist(prd_ent)
938
938
 
939
- #if($push_type == FCM_PUSH)
939
+ if($push_type == FCM_PUSH)
940
940
  #framework_src = File.join($startdir, 'lib', 'extensions', 'fcm-push', 'ext', 'iphone', 'Frameworks')
941
941
  #firebase_h_src = File.join($startdir, 'platform', 'iphone', 'Firebase.h')
942
942
  #googleservice_plist_src = File.join($startdir, 'platform', 'iphone', 'GoogleService-Info.plist')
943
- #framework_dst = File.join($app_path, 'project', 'iphone')
943
+ googleservice_plist_src = File.join($app_path, 'GoogleService-Info.plist')
944
+ framework_dst = File.join($app_path, 'project', 'iphone')
944
945
  #cp_r framework_src, framework_dst
945
946
  #cp_r firebase_h_src, framework_dst
946
- #cp_r googleservice_plist_src, framework_dst
947
- #end
947
+ cp_r googleservice_plist_src, framework_dst
948
+ end
948
949
 
949
950
  #bluetooth
950
951
  bt_capability = false
@@ -1221,7 +1222,7 @@ def get_archs_string_simulator
1221
1222
  end
1222
1223
 
1223
1224
  def get_archs_string_device
1224
- archs = "arm64 armv7"
1225
+ archs = "arm64"
1225
1226
  if !$app_config["iphone"].nil?
1226
1227
  archs_array = $app_config["iphone"]["ARCHS_device"]
1227
1228
  if !archs_array.nil?
@@ -3379,7 +3380,7 @@ namespace "run" do
3379
3380
  File.delete(log_name) if File.exist?(log_name)
3380
3381
 
3381
3382
  rhorunner = File.join(File.join($app_path, "/project/iphone"),"build/#{$configuration}-iphonesimulator/rhorunner.app")
3382
- commandis = $iphonesim + ' launch "' + rhorunner + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' ' + $emulatortarget + ' "' +log_name+'"'
3383
+ commandis = $iphonesim + ' launch "' + rhorunner + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' "' + $emulatortarget + '" "' +log_name+'"'
3383
3384
 
3384
3385
  kill_iphone_simulator
3385
3386
 
@@ -3460,7 +3461,7 @@ namespace "run" do
3460
3461
  # run spec
3461
3462
  rhorunner = File.join(File.join($app_path, "project","iphone"),"build","#{$configuration}-iphonesimulator","rhorunner.app")
3462
3463
  #iphonesim = File.join($startdir, 'res/build-tools/iphonesim/build/Release/iphonesim')
3463
- commandis = $iphonesim + ' launch "' + rhorunner + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' ' + $emulatortarget + ' "' +log_name+'"'
3464
+ commandis = $iphonesim + ' launch "' + rhorunner + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' "' + $emulatortarget + '" "' +log_name+'"'
3464
3465
  puts 'use iphonesim tool - open iPhone Simulator and execute our application, also support device family (iphone/ipad) '
3465
3466
  puts 'execute command : ' + commandis
3466
3467
  system(commandis)
@@ -3693,7 +3694,7 @@ namespace "run" do
3693
3694
  log_name = File.join($app_path, 'rholog.txt')
3694
3695
  File.delete(log_name) if File.exist?(log_name)
3695
3696
 
3696
- commandis = $iphonesim + ' launch "' + app_file + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' ' + $emulatortarget + ' "' +log_name+'"'
3697
+ commandis = $iphonesim + ' launch "' + app_file + '" ' + $sdkver.gsub(/([0-9]\.[0-9]).*/,'\1') + ' "' + $emulatortarget + '" "' +log_name+'"'
3697
3698
 
3698
3699
  kill_iphone_simulator
3699
3700
 
@@ -176,7 +176,7 @@
176
176
  );
177
177
  runOnlyForDeploymentPostprocessing = 0;
178
178
  shellPath = /bin/sh;
179
- shellScript = "LIB_NAME=\"rhoextlib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64 armv7\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64 armv7\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
179
+ shellScript = "LIB_NAME=\"rhoextlib\"\n\n#MY_BUILD_DIR = \"${BUILD_DIR}\"\nMY_BUILD_DIR=\"./build\"\n\nSIMULATOR_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${LIB_NAME}.a\"\n\nDEVICE_LIBRARY_PATH=\"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${LIB_NAME}.a\"\n\nOUTPUT_DIR=\"./${LIB_NAME}-Aggregated\"\n\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator\"\nrm -rf \"${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos\"\n\n\nARCHS=\"x86_64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphonesimulator -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphonesimulator ARCHS=\"x86_64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nARCHS=\"arm64\"\n\nXcodebuild -project ${PROJECT_NAME}.Xcodeproj -scheme ${LIB_NAME} -sdk iphoneos -configuration ${CONFIGURATION} install CONFIGURATION_BUILD_DIR=${MY_BUILD_DIR}/${CONFIGURATION}-iphoneos ARCHS=\"arm64\" OTHER_CFLAGS=\"-fembed-bitcode\"\n\nrm -rf \"${OUTPUT_DIR}\"\n\nmkdir \"${OUTPUT_DIR}\"\n\nlipo \"${SIMULATOR_LIBRARY_PATH}\" \"${DEVICE_LIBRARY_PATH}\" -create -output \"${OUTPUT_DIR}/lib${LIB_NAME}.a\"\n\n";
180
180
  };
181
181
  /* End PBXShellScriptBuildPhase section */
182
182
 
@@ -200,6 +200,7 @@
200
200
  CLANG_CXX_LIBRARY = "libc++";
201
201
  COPY_PHASE_STRIP = NO;
202
202
  DSTROOT = /tmp/rhoextlib.dst;
203
+ ENABLE_BITCODE = YES;
203
204
  GCC_DYNAMIC_NO_PIC = NO;
204
205
  GCC_ENABLE_FIX_AND_CONTINUE = YES;
205
206
  GCC_MODEL_TUNING = G5;
@@ -224,6 +225,7 @@
224
225
  ALWAYS_SEARCH_USER_PATHS = NO;
225
226
  CLANG_CXX_LIBRARY = "libc++";
226
227
  DSTROOT = /tmp/rhoextlib.dst;
228
+ ENABLE_BITCODE = YES;
227
229
  GCC_MODEL_TUNING = G5;
228
230
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
229
231
  GCC_PREFIX_HEADER = rhoextlib_Prefix.pch;
@@ -295,6 +297,7 @@
295
297
  ALWAYS_SEARCH_USER_PATHS = YES;
296
298
  CLANG_CXX_LIBRARY = "libc++";
297
299
  DSTROOT = /tmp/rhoextlib.dst;
300
+ ENABLE_BITCODE = YES;
298
301
  GCC_MODEL_TUNING = G5;
299
302
  GCC_PRECOMPILE_PREFIX_HEADER = YES;
300
303
  GCC_PREFIX_HEADER = rhoextlib_Prefix.pch;