rhodes 6.2.0 → 7.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (553) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +14 -10
  3. data/appveyor.yml +1 -1
  4. data/extensions/emdk3-manager/ext/platform/android/Rakefile +2 -0
  5. data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/Rakefile +18 -1
  6. data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/Rakefile +19 -1
  7. data/lib/commonAPI/RubyServer/ext.yml +21 -0
  8. data/lib/commonAPI/RubyServer/ext/RubyServer.xml +101 -0
  9. data/lib/commonAPI/RubyServer/ext/build +19 -0
  10. data/lib/commonAPI/RubyServer/ext/build.bat +29 -0
  11. data/lib/commonAPI/RubyServer/ext/platform/android/Rakefile +161 -0
  12. data/lib/commonAPI/RubyServer/ext/platform/android/ext_java.files +9 -0
  13. data/lib/commonAPI/RubyServer/ext/platform/android/ext_native.files +7 -0
  14. data/lib/commonAPI/RubyServer/ext/platform/iphone/Rakefile +73 -0
  15. data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer.xcodeproj/project.pbxproj +322 -0
  16. data/lib/commonAPI/RubyServer/ext/platform/iphone/RubyServer_Prefix.pch +7 -0
  17. data/lib/commonAPI/RubyServer/ext/shared/RubyServerImpl.cpp +242 -0
  18. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeFactory.java +23 -3
  19. data/lib/commonAPI/barcode/ext/platform/android/src/com/rho/barcode/BarcodeRhoExtension.java +68 -8
  20. data/lib/commonAPI/barcode/ext/platform/iphone/Barcode.xcodeproj/project.pbxproj +24 -52
  21. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.h +38 -10
  22. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewController.m +300 -22
  23. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/BarcodeViewFactory.mm +6 -0
  24. data/lib/commonAPI/barcode/ext/platform/iphone/Classes/barcode.m +6 -2
  25. data/lib/commonAPI/barcode/ext/platform/iphone/impl/Barcode.m +7 -3
  26. data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeFactory.m +13 -0
  27. data/lib/commonAPI/barcode/ext/platform/iphone/impl/BarcodeSingleton.m +25 -3
  28. data/lib/commonAPI/bluetooth/ext/platform/android/Rakefile +29 -10
  29. data/lib/commonAPI/clipboard/ext/platform/android/Rakefile +29 -10
  30. data/lib/commonAPI/coreapi/ext/Notification.xml +47 -0
  31. data/lib/commonAPI/coreapi/ext/platform/android/ApplicationManifestAdds.erb +1 -0
  32. data/lib/commonAPI/coreapi/ext/platform/android/Rakefile +19 -0
  33. data/lib/commonAPI/coreapi/ext/platform/android/ext_java.files +2 -0
  34. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/AlarmReceiver.java +27 -0
  35. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +28 -10
  36. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationFactory.java +14 -1
  37. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +260 -0
  38. data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationSingleton.java +23 -1
  39. data/lib/commonAPI/coreapi/ext/platform/iphone/Coreapi.xcodeproj/project.pbxproj +21 -19
  40. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +1 -0
  41. data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +234 -1
  42. data/lib/commonAPI/coreapi/ext/platform/qt/coreapi.pro +2 -0
  43. data/lib/commonAPI/coreapi/ext/platform/qt/src/CNotificationImpl.cpp +7 -0
  44. data/lib/commonAPI/coreapi/ext/shared/ApplicationImpl.cpp +5 -0
  45. data/lib/commonAPI/coreapi/public/api/rhoapi.js +18 -8
  46. data/lib/commonAPI/devicesecurity/ext/platform/android/Rakefile +19 -0
  47. data/lib/commonAPI/devicesecurity/ext/platform/iphone/DeviceSecurity.xcodeproj/project.pbxproj +16 -0
  48. data/lib/commonAPI/hardwarekeys/ext/keycapture.xml +11 -9
  49. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.h +5 -3
  50. data/lib/commonAPI/hardwarekeys/ext/platform/iphone/impl/KeyCaptureSingleton.m +80 -67
  51. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraEclair.java +25 -14
  52. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraGingerbread.java +55 -25
  53. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +34 -9
  54. data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/ICameraObject.java +1 -0
  55. data/lib/commonAPI/printing_zebra/ext/platform/android/Rakefile +18 -0
  56. data/lib/commonAPI/sensor/ext/platform/android/src/com/rho/sensor/Sensor.java +4 -4
  57. data/lib/extensions/decrypt/ext/platform/android/Rakefile +19 -1
  58. data/lib/extensions/decryptstub/ext/platform/android/Rakefile +19 -0
  59. data/lib/extensions/decryptstub/ext/platform/iphone/Decryptstub.xcodeproj/project.pbxproj +4 -2
  60. data/lib/extensions/digest-md5/ext/android/Rakefile +18 -0
  61. data/lib/extensions/digest-sha1/ext/android/Rakefile +18 -0
  62. data/lib/extensions/digest-sha2/ext/android/Rakefile +18 -0
  63. data/lib/extensions/esri/ext/esri/platform/iphone/Classes/MapViewControllerESRI.h +19 -19
  64. data/lib/extensions/fcm-push/ext/android/Rakefile +18 -0
  65. data/lib/extensions/fcm-push/ext/android/src/com/rhomobile/rhodes/fcm/FCMIntentService.java +38 -16
  66. data/lib/extensions/gcm-push/ext/android/Rakefile +19 -0
  67. data/lib/extensions/keyboard/ext.yml +15 -0
  68. data/lib/extensions/keyboard/ext/Keyboard.xml +28 -0
  69. data/lib/extensions/keyboard/ext/build +19 -0
  70. data/lib/extensions/keyboard/ext/build.bat +29 -0
  71. data/lib/extensions/keyboard/ext/platform/android/Rakefile +141 -0
  72. data/lib/extensions/keyboard/ext/platform/android/ext_java.files +9 -0
  73. data/lib/extensions/keyboard/ext/platform/android/ext_native.files +7 -0
  74. data/lib/extensions/keyboard/ext/platform/android/jni/Keyboard_impl.cpp +61 -0
  75. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/Keyboard.java +32 -0
  76. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardFactory.java +18 -0
  77. data/lib/extensions/keyboard/ext/platform/android/src/com/rho/keyboard/KeyboardSingleton.java +29 -0
  78. data/lib/extensions/keyboard/ext/platform/iphone/Keyboard.xcodeproj/project.pbxproj +368 -0
  79. data/lib/extensions/keyboard/ext/platform/iphone/Keyboard_Prefix.pch +7 -0
  80. data/lib/extensions/keyboard/ext/platform/iphone/Rakefile +73 -0
  81. data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.h +14 -0
  82. data/lib/extensions/keyboard/ext/platform/iphone/impl/Keyboard.m +24 -0
  83. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardFactorySingleton.m +16 -0
  84. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSetup.m +9 -0
  85. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.h +17 -0
  86. data/lib/extensions/keyboard/ext/platform/iphone/impl/KeyboardSingleton.m +23 -0
  87. data/lib/extensions/keyboard/ext/platform/iphone/impl/readme.txt +7 -0
  88. data/lib/extensions/keyboard/ext/platform/qt/Keyboard.pro +68 -0
  89. data/lib/extensions/keyboard/ext/platform/qt/Makefile +473 -0
  90. data/lib/extensions/keyboard/ext/platform/qt/Makefile.Release +408 -0
  91. data/lib/extensions/keyboard/ext/platform/qt/Rakefile +39 -0
  92. data/lib/extensions/keyboard/ext/platform/qt/src/Keyboard_impl.cpp +99 -0
  93. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.props +18 -0
  94. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj +197 -0
  95. data/lib/extensions/keyboard/ext/platform/uwp/Keyboard.vcxproj.filters +50 -0
  96. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.csproj +119 -0
  97. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.props +8 -0
  98. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardImpl.targets +7 -0
  99. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.props +18 -0
  100. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj +197 -0
  101. data/lib/extensions/keyboard/ext/platform/uwp/KeyboardLib.vcxproj.filters +58 -0
  102. data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cpp +76 -0
  103. data/lib/extensions/keyboard/ext/platform/uwp/src/Keyboard_impl.cs +69 -0
  104. data/lib/extensions/keyboard/ext/platform/uwp/src/Properties/AssemblyInfo.cs +37 -0
  105. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.sln +52 -0
  106. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vcproj +714 -0
  107. data/lib/extensions/keyboard/ext/platform/wm/Keyboard.vsprops +15 -0
  108. data/lib/extensions/keyboard/ext/platform/wm/src/Keyboard_impl.cpp +77 -0
  109. data/lib/extensions/openssl.so.src/ext/android/Rakefile +18 -0
  110. data/lib/extensions/openssl.so/ext/android/aarch64/libopenssl.so.a +0 -0
  111. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/howtobuild.txt +2 -0
  112. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libcrypto.a +0 -0
  113. data/lib/extensions/openssl.so/ext/iphone/OpenSSl.SDK/libssl.a +0 -0
  114. data/lib/extensions/openssl.so/ext/iphone/Release-iphoneos/libopenssl.so.a +0 -0
  115. data/lib/extensions/openssl.so/ext/iphone/Release-iphonesimulator/libopenssl.so.a +0 -0
  116. data/lib/extensions/openssl/ext/android/Rakefile +18 -0
  117. data/lib/extensions/zlib/ext/zlib.c +5 -1
  118. data/lib/framework/autocomplete/Rhodes.rb +1 -1
  119. data/lib/framework/rhodes.rb +1 -1
  120. data/lib/framework/set.rb +799 -0
  121. data/lib/framework/version.rb +1 -1
  122. data/lib/rhodes.rb +1 -1
  123. data/platform/android/Rhodes/AndroidManifest.xml.erb +11 -2
  124. data/platform/android/Rhodes/jni/include/rhodes.h +6 -0
  125. data/platform/android/Rhodes/jni/include/rhodes/RhoClassFactory.h +3 -0
  126. data/platform/android/Rhodes/jni/include/rhodes/SecurityTokenGenerator.h +30 -0
  127. data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
  128. data/platform/android/Rhodes/jni/src/JNIRhoRubyCppWrapper.cpp +408 -0
  129. data/platform/android/Rhodes/jni/src/RhoClassFactory.cpp +7 -0
  130. data/platform/android/Rhodes/jni/src/SecurityTokenGenerator.cpp +60 -0
  131. data/platform/android/Rhodes/jni/src/fileapi.cpp +318 -12
  132. data/platform/android/Rhodes/jni/src/mapview.cpp +4 -0
  133. data/platform/android/Rhodes/res/drawable/ic_notification.png +0 -0
  134. data/platform/android/Rhodes/res/xml/network_security_config.xml +7 -0
  135. data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +9 -0
  136. data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +1 -1
  137. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoMain.java +8 -0
  138. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyArrayObjects.java +33 -0
  139. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyClassObject.java +20 -0
  140. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyObject.java +115 -0
  141. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubySingleton.java +52 -0
  142. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoRubyTypes.java +15 -0
  143. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +25 -13
  144. data/platform/android/Rhodes/src/com/rhomobile/rhodes/SecurityTokenGenerator.java +57 -0
  145. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +1 -1
  146. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +9 -2
  147. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +3 -0
  148. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +7 -0
  149. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality11.java +13 -1
  150. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality26.java +105 -0
  151. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +4 -1
  152. data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +24 -4
  153. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +20 -1
  154. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +10 -0
  155. data/platform/android/build/Rakefile +30 -1
  156. data/platform/android/build/RhodesSRC_build.files +8 -0
  157. data/platform/android/build/android.rake +326 -22
  158. data/platform/android/build/android_tools.rb +36 -3
  159. data/platform/android/build/androidcommon.rb +97 -44
  160. data/platform/android/build/librhocommon_build.files +11 -0
  161. data/platform/android/build/librhodes_build.files +2 -0
  162. data/platform/android/build/manifest_generator.rb +9 -2
  163. data/platform/android/build/maven_deps_extractor.rb +96 -15
  164. data/platform/android/build/ndkwrapper.rb +111 -16
  165. data/platform/android/build/pom.erb +2 -2
  166. data/platform/iphone/Classes/AppManager/AppManager.m +31 -1
  167. data/platform/iphone/Classes/MapView/GoogleGeocoder.h +3 -3
  168. data/platform/iphone/Classes/RhoMainViewStubImpl.h +38 -0
  169. data/platform/iphone/Classes/RhoMainViewStubImpl.m +88 -0
  170. data/platform/iphone/Classes/RhoUIWebView.h +5 -0
  171. data/platform/iphone/Classes/RhoUIWebView.m +14 -6
  172. data/platform/iphone/Classes/{RhoWKWebView.m → RhoWKWebView.mm} +98 -18
  173. data/platform/iphone/Classes/RhoWebView.h +1 -1
  174. data/platform/iphone/Classes/RhoWebViewFabrique.m +24 -12
  175. data/platform/iphone/Classes/Rhodes.h +7 -2
  176. data/platform/iphone/Classes/Rhodes.m +46 -8
  177. data/platform/iphone/Classes/SimpleMainView.m +22 -13
  178. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.h +32 -3
  179. data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +93 -61
  180. data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.h +22 -0
  181. data/platform/iphone/Classes/URLProtocol/CRhoWKURLProtocol.m +246 -0
  182. data/platform/iphone/Classes/WebView.m +14 -2
  183. data/platform/iphone/Entitlements.plist +1 -1
  184. data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +399 -0
  185. data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1208 -0
  186. data/platform/iphone/Framework/Rhodes/Rhodes/Info.plist +24 -0
  187. data/platform/iphone/Framework/Rhodes/Rhodes/Rhodes.h +21 -0
  188. data/platform/iphone/Framework/Rhodes/Rhodes/StubCode.m +15 -0
  189. data/platform/iphone/Info.plist +1 -3
  190. data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +511 -4
  191. data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +467 -1
  192. data/platform/iphone/Rhodes.xcodeproj/project.pbxproj +51 -274
  193. data/platform/iphone/RhodesBaseDelegate.h +1 -1
  194. data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +85 -3
  195. data/platform/iphone/rbuild/ApplicationPlist.erb +1 -1
  196. data/platform/iphone/rbuild/iphone.rake +497 -25
  197. data/platform/iphone/rbuild/iphonecommon.rb +15 -6
  198. data/platform/iphone/rhodes_stub.cpp +15 -0
  199. data/platform/iphone/rhodeslib/api/RhodesLib.h +28 -0
  200. data/platform/iphone/rhodeslib/impl/RhodesLib.m +52 -0
  201. data/platform/iphone/rhodesruby/api/IRefCountedObject.h +20 -0
  202. data/platform/iphone/rhodesruby/api/IRhoRuby.h +72 -0
  203. data/platform/iphone/rhodesruby/api/IRhoRubyArray.h +12 -0
  204. data/platform/iphone/rhodesruby/api/IRhoRubyBoolean.h +11 -0
  205. data/platform/iphone/rhodesruby/api/IRhoRubyFloat.h +10 -0
  206. data/platform/iphone/rhodesruby/api/IRhoRubyHash.h +15 -0
  207. data/platform/iphone/rhodesruby/api/IRhoRubyInteger.h +10 -0
  208. data/platform/iphone/rhodesruby/api/IRhoRubyMutableArray.h +9 -0
  209. data/platform/iphone/rhodesruby/api/IRhoRubyMutableBoolean.h +10 -0
  210. data/platform/iphone/rhodesruby/api/IRhoRubyMutableFloat.h +10 -0
  211. data/platform/iphone/rhodesruby/api/IRhoRubyMutableHash.h +10 -0
  212. data/platform/iphone/rhodesruby/api/IRhoRubyMutableInteger.h +10 -0
  213. data/platform/iphone/rhodesruby/api/IRhoRubyMutableString.h +10 -0
  214. data/platform/iphone/rhodesruby/api/IRhoRubyNativeCallback.h +9 -0
  215. data/platform/iphone/rhodesruby/api/IRhoRubyNil.h +10 -0
  216. data/platform/iphone/rhodesruby/api/IRhoRubyObject.h +37 -0
  217. data/platform/iphone/rhodesruby/api/IRhoRubyRunnable.h +8 -0
  218. data/platform/iphone/rhodesruby/api/IRhoRubyString.h +10 -0
  219. data/platform/iphone/rhodesruby/api/RhoRuby.h +26 -0
  220. data/platform/iphone/rhodesruby/api/RhoRubySingletone.h +14 -0
  221. data/platform/iphone/rhodesruby/impl/RhoRubyFabrique.h +10 -0
  222. data/platform/iphone/rhodesruby/impl/RhoRubyImpl.h +56 -0
  223. data/platform/iphone/rhodesruby/impl/RhoRubyImpl.mm +432 -0
  224. data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.h +24 -0
  225. data/platform/iphone/rhodesruby/impl/RhoRubyMutableArrayImpl.mm +43 -0
  226. data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.h +23 -0
  227. data/platform/iphone/rhodesruby/impl/RhoRubyMutableBooleanImpl.mm +38 -0
  228. data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.h +23 -0
  229. data/platform/iphone/rhodesruby/impl/RhoRubyMutableFloatImpl.mm +35 -0
  230. data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.h +24 -0
  231. data/platform/iphone/rhodesruby/impl/RhoRubyMutableHashImpl.mm +48 -0
  232. data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.h +23 -0
  233. data/platform/iphone/rhodesruby/impl/RhoRubyMutableIntegerImpl.mm +35 -0
  234. data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.h +23 -0
  235. data/platform/iphone/rhodesruby/impl/RhoRubyMutableStringImpl.mm +35 -0
  236. data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.h +22 -0
  237. data/platform/iphone/rhodesruby/impl/RhoRubyNilImpl.mm +11 -0
  238. data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.h +31 -0
  239. data/platform/iphone/rhodesruby/impl/RhoRubyObjectImpl.mm +49 -0
  240. data/platform/iphone/rhodesruby/impl/RhoRubySingletone.m +19 -0
  241. data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.h +21 -0
  242. data/platform/iphone/rhodesruby/impl/RubyServerResponceImpl.mm +32 -0
  243. data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +79 -0
  244. data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +91 -0
  245. data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +85 -0
  246. data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
  247. data/platform/shared/common/IRhoClassFactory.h +2 -0
  248. data/platform/shared/common/ISecurityTokenGenerator.h +16 -0
  249. data/platform/shared/common/RhoFile.cpp +11 -0
  250. data/platform/shared/common/RhoMath.h +14 -0
  251. data/platform/shared/common/RhoMutexLock.h +13 -0
  252. data/platform/shared/common/RhoSystem.h +1 -1
  253. data/platform/shared/common/RhoThread.cpp +25 -0
  254. data/platform/shared/common/RhodesApp.cpp +52 -6
  255. data/platform/shared/common/RhodesApp.h +25 -1
  256. data/platform/shared/common/RhodesAppBase.cpp +4 -2
  257. data/platform/shared/common/RhodesAppBase.h +5 -0
  258. data/platform/shared/common/iphone/RhoClassfactory.h +6 -0
  259. data/platform/shared/common/iphone/RhoCryptImpl.mm +21 -2
  260. data/platform/shared/common/map/BaseMapEngine.cpp +2 -2
  261. data/platform/shared/common/map/GeocodingMapEngine.cpp +1 -1
  262. data/platform/shared/common/map/GoogleMapEngine.cpp +1 -1
  263. data/platform/shared/common/map/OSMMapEngine.cpp +1 -1
  264. data/platform/shared/curl/lib/curl_config.h +28 -0
  265. data/platform/shared/db/DBAdapter.cpp +18 -10
  266. data/platform/shared/json.new/JSONIterator.cpp +2 -2
  267. data/platform/shared/net/HttpServer.cpp +32 -0
  268. data/platform/shared/net/HttpServer.h +15 -0
  269. data/platform/shared/net/INetRequest.cpp +54 -0
  270. data/platform/shared/qt/RhoRubylib.pro +10 -0
  271. data/platform/shared/qt/rhodes/impl/AlertImpl.cpp +13 -0
  272. data/platform/shared/qt/rhodes/impl/CameraImpl.cpp +6 -0
  273. data/platform/shared/qt/rhodes/impl/DateTimePickerImpl.cpp +4 -0
  274. data/platform/shared/qt/rhodes/impl/MainWindowImpl.cpp +36 -7
  275. data/platform/shared/qt/rhodes/impl/MainWindowImpl.h +12 -1
  276. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.cpp +21 -2
  277. data/platform/shared/qt/rhodes/impl/NativeTabbarImpl.h +1 -0
  278. data/platform/shared/qt/rhodes/impl/NativeToolbarImpl.cpp +10 -0
  279. data/platform/shared/qt/rhodes/impl/QtSystemImpl.cpp +55 -3
  280. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +11 -0
  281. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +71 -7
  282. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.h +79 -2
  283. data/platform/shared/qt/rhodes/impl/RhodesImpl.cpp +16 -6
  284. data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.cpp +37 -0
  285. data/platform/shared/qt/rhodes/impl/SecurityTokenGeneratorImpl.h +25 -0
  286. data/platform/shared/qt/rhodes/impl/SignatureImpl.cpp +2 -0
  287. data/platform/shared/qt/rhodes/impl/WebViewImpl.cpp +27 -0
  288. data/platform/shared/qt/rhodes/impl/notificationsound.cpp +16 -2
  289. data/platform/shared/qt/rhodes/impl/notificationsound.h +11 -1
  290. data/platform/shared/qt/rhodes/newVersion/QtMainWindow.cpp +25 -16
  291. data/platform/shared/qt/rhodes/newVersion/QtMainWindow.h +3 -0
  292. data/platform/shared/qt/rhodes/newVersion/WebUrlRequestInterceptor.cpp +17 -0
  293. data/platform/shared/qt/rhodes/rhodes.pro +68 -14
  294. data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.cpp +148 -0
  295. data/platform/shared/qt/rhodes/rhorubyVersion/rhodeslib.h +12 -0
  296. data/platform/shared/qt/rholib/rholib.pro +33 -5
  297. data/platform/shared/qt/rhoruby_win32_build.bat +19 -0
  298. data/platform/shared/qt/rhoruby_win32_build_debug.bat +19 -0
  299. data/platform/shared/qt/rhosimulator_win32_build_debug.bat +19 -0
  300. data/platform/shared/qt/rubylib/rubylib.pro +1 -0
  301. data/platform/shared/qt/sqlite3/sqlite3.pro +1 -0
  302. data/platform/shared/qt/syncengine/syncengine.pro +1 -0
  303. data/platform/shared/rhoruby/api/IArray.h +20 -0
  304. data/platform/shared/rhoruby/api/IBoolean.h +17 -0
  305. data/platform/shared/rhoruby/api/IFloat.h +17 -0
  306. data/platform/shared/rhoruby/api/IHash.h +23 -0
  307. data/platform/shared/rhoruby/api/IInteger.h +18 -0
  308. data/platform/shared/rhoruby/api/IMutableArray.h +18 -0
  309. data/platform/shared/rhoruby/api/IMutableBoolean.h +18 -0
  310. data/platform/shared/rhoruby/api/IMutableFloat.h +17 -0
  311. data/platform/shared/rhoruby/api/IMutableHash.h +18 -0
  312. data/platform/shared/rhoruby/api/IMutableInteger.h +17 -0
  313. data/platform/shared/rhoruby/api/IMutableString.h +17 -0
  314. data/platform/shared/rhoruby/api/INil.h +16 -0
  315. data/platform/shared/rhoruby/api/IObject.h +46 -0
  316. data/platform/shared/rhoruby/api/IRefCountedObject.h +20 -0
  317. data/platform/shared/rhoruby/api/IRhoRuby.h +78 -0
  318. data/platform/shared/rhoruby/api/IRunnable.h +17 -0
  319. data/platform/shared/rhoruby/api/IString.h +17 -0
  320. data/platform/shared/rhoruby/api/RhoRuby.h +29 -0
  321. data/platform/shared/rhoruby/api/RhoRubySingletone.h +19 -0
  322. data/platform/shared/rhoruby/api/SmartPointer.h +27 -0
  323. data/platform/shared/rhoruby/impl/MutableArrayImpl.cpp +54 -0
  324. data/platform/shared/rhoruby/impl/MutableArrayImpl.h +48 -0
  325. data/platform/shared/rhoruby/impl/MutableBooleanImpl.cpp +44 -0
  326. data/platform/shared/rhoruby/impl/MutableBooleanImpl.h +44 -0
  327. data/platform/shared/rhoruby/impl/MutableFloatImpl.cpp +41 -0
  328. data/platform/shared/rhoruby/impl/MutableFloatImpl.h +44 -0
  329. data/platform/shared/rhoruby/impl/MutableHashImpl.cpp +64 -0
  330. data/platform/shared/rhoruby/impl/MutableHashImpl.h +49 -0
  331. data/platform/shared/rhoruby/impl/MutableIntegerImpl.cpp +41 -0
  332. data/platform/shared/rhoruby/impl/MutableIntegerImpl.h +44 -0
  333. data/platform/shared/rhoruby/impl/MutableStringImpl.cpp +52 -0
  334. data/platform/shared/rhoruby/impl/MutableStringImpl.h +44 -0
  335. data/platform/shared/rhoruby/impl/NilImpl.cpp +23 -0
  336. data/platform/shared/rhoruby/impl/NilImpl.h +32 -0
  337. data/platform/shared/rhoruby/impl/ObjectImpl.cpp +77 -0
  338. data/platform/shared/rhoruby/impl/ObjectImpl.h +53 -0
  339. data/platform/shared/rhoruby/impl/RefCountedObjectImpl.cpp +28 -0
  340. data/platform/shared/rhoruby/impl/RefCountedObjectImpl.h +33 -0
  341. data/platform/shared/rhoruby/impl/RhoRubyImpl.cpp +799 -0
  342. data/platform/shared/rhoruby/impl/RhoRubyImpl.h +81 -0
  343. data/platform/shared/rhoruby/impl/RhoRubySingletone.cpp +20 -0
  344. data/platform/shared/rhoruby/impl/RubyServerResponceImpl.cpp +32 -0
  345. data/platform/shared/rhoruby/impl/RubyServerResponceImpl.h +21 -0
  346. data/platform/shared/ruby/android/ruby/config.h +55 -3
  347. data/platform/shared/ruby/error.c +1 -1
  348. data/platform/shared/ruby/ext/rho/rhoruby.c +60 -7
  349. data/platform/shared/ruby/ext/rho/rhoruby.h +3 -0
  350. data/platform/shared/rubyext/NativeToolbarExt.h +1 -0
  351. data/platform/uwp/rhodes/rhodes_TemporaryKey.pfx +0 -0
  352. data/platform/uwp/rhoruntime/common/RhoClassFactory.h +6 -0
  353. data/platform/win32/RhoSimulator/Qt5Core.dll +0 -0
  354. data/platform/win32/RhoSimulator/Qt5Gui.dll +0 -0
  355. data/platform/win32/RhoSimulator/Qt5Multimedia.dll +0 -0
  356. data/platform/win32/RhoSimulator/Qt5Network.dll +0 -0
  357. data/platform/win32/RhoSimulator/Qt5Positioning.dll +0 -0
  358. data/platform/win32/RhoSimulator/Qt5PrintSupport.dll +0 -0
  359. data/platform/win32/RhoSimulator/Qt5Qml.dll +0 -0
  360. data/platform/win32/RhoSimulator/Qt5Quick.dll +0 -0
  361. data/platform/win32/RhoSimulator/Qt5QuickWidgets.dll +0 -0
  362. data/platform/win32/RhoSimulator/Qt5SerialPort.dll +0 -0
  363. data/platform/win32/RhoSimulator/Qt5Svg.dll +0 -0
  364. data/platform/win32/RhoSimulator/Qt5WebChannel.dll +0 -0
  365. data/platform/win32/RhoSimulator/Qt5WebEngine.dll +0 -0
  366. data/platform/win32/RhoSimulator/Qt5WebEngineCore.dll +0 -0
  367. data/platform/win32/RhoSimulator/Qt5WebEngineWidgets.dll +0 -0
  368. data/platform/win32/RhoSimulator/Qt5Widgets.dll +0 -0
  369. data/platform/win32/RhoSimulator/QtWebEngineProcess.exe +0 -0
  370. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  371. data/platform/win32/RhoSimulator/audio/qtaudio_wasapi.dll +0 -0
  372. data/platform/win32/RhoSimulator/audio/qtaudio_windows.dll +0 -0
  373. data/platform/win32/RhoSimulator/bearer/qgenericbearer.dll +0 -0
  374. data/platform/win32/RhoSimulator/iconengines/qsvgicon.dll +0 -0
  375. data/platform/win32/RhoSimulator/imageformats/qgif.dll +0 -0
  376. data/platform/win32/RhoSimulator/imageformats/qicns.dll +0 -0
  377. data/platform/win32/RhoSimulator/imageformats/qico.dll +0 -0
  378. data/platform/win32/RhoSimulator/imageformats/qjpeg.dll +0 -0
  379. data/platform/win32/RhoSimulator/imageformats/qsvg.dll +0 -0
  380. data/platform/win32/RhoSimulator/imageformats/qtga.dll +0 -0
  381. data/platform/win32/RhoSimulator/imageformats/qtiff.dll +0 -0
  382. data/platform/win32/RhoSimulator/imageformats/qwbmp.dll +0 -0
  383. data/platform/win32/RhoSimulator/imageformats/qwebp.dll +0 -0
  384. data/platform/win32/RhoSimulator/libEGL.dll +0 -0
  385. data/platform/win32/RhoSimulator/libGLESV2.dll +0 -0
  386. data/platform/win32/RhoSimulator/mediaservice/dsengine.dll +0 -0
  387. data/platform/win32/RhoSimulator/mediaservice/qtmedia_audioengine.dll +0 -0
  388. data/platform/win32/RhoSimulator/mediaservice/wmfengine.dll +0 -0
  389. data/platform/win32/RhoSimulator/platforms/qwindows.dll +0 -0
  390. data/platform/win32/RhoSimulator/playlistformats/qtmultimedia_m3u.dll +0 -0
  391. data/platform/win32/RhoSimulator/position/qtposition_geoclue.dll +0 -0
  392. data/platform/win32/RhoSimulator/position/qtposition_positionpoll.dll +0 -0
  393. data/platform/win32/RhoSimulator/position/qtposition_serialnmea.dll +0 -0
  394. data/platform/win32/RhoSimulator/position/qtposition_winrt.dll +0 -0
  395. data/platform/win32/RhoSimulator/printsupport/windowsprintersupport.dll +0 -0
  396. data/platform/wm/build/wm.rake +110 -5
  397. data/platform/wm/rhodes/rho/common/ExtManager.cpp +30 -0
  398. data/platform/wm/rhodes/rho/common/RhoClassFactory.h +6 -0
  399. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +3 -0
  400. data/platform/wm/rubylib/rubylib.vcxproj +6 -0
  401. data/platform/wp8/rhoruntime/common/RhoClassFactory.h +6 -0
  402. data/rakefile.rb +14 -10
  403. data/res/build-tools/iphonesim/build/Release/iphonesim_8 +23 -15
  404. data/res/build-tools/maven/LICENSE +18 -89
  405. data/res/build-tools/maven/NOTICE +1 -1
  406. data/res/build-tools/maven/README.txt +12 -12
  407. data/res/build-tools/maven/bin/m2.conf +2 -2
  408. data/res/build-tools/maven/bin/mvn +122 -125
  409. data/res/build-tools/maven/bin/mvn.cmd +205 -0
  410. data/res/build-tools/maven/bin/mvnDebug +10 -176
  411. data/res/build-tools/maven/bin/mvnDebug.cmd +33 -0
  412. data/res/build-tools/maven/bin/mvnyjp +9 -181
  413. data/res/build-tools/maven/boot/plexus-classworlds-2.6.0.jar +0 -0
  414. data/res/build-tools/maven/conf/logging/simplelogger.properties +8 -1
  415. data/res/build-tools/maven/conf/settings.xml +1 -1
  416. data/res/build-tools/maven/conf/toolchains.xml +103 -0
  417. data/res/build-tools/maven/lib/animal-sniffer-annotations-1.14.jar +0 -0
  418. data/res/build-tools/maven/lib/animal-sniffer-annotations.license +14 -0
  419. data/res/build-tools/maven/lib/checker-compat-qual-2.0.0.jar +0 -0
  420. data/res/build-tools/maven/lib/checker-compat-qual.license +14 -0
  421. data/res/build-tools/maven/lib/commons-cli-1.4.jar +0 -0
  422. data/res/build-tools/maven/lib/commons-io-2.5.jar +0 -0
  423. data/res/build-tools/maven/lib/commons-lang3-3.8.1.jar +0 -0
  424. data/res/build-tools/maven/lib/error_prone_annotations-2.1.3.jar +0 -0
  425. data/res/build-tools/maven/lib/guava-25.1-android.jar +0 -0
  426. data/res/build-tools/maven/lib/guice-4.2.1-no_aop.jar +0 -0
  427. data/res/build-tools/maven/lib/j2objc-annotations-1.1.jar +0 -0
  428. data/res/build-tools/maven/lib/jansi-1.17.1.jar +0 -0
  429. data/res/build-tools/maven/lib/jansi-native/README.txt +7 -0
  430. data/res/build-tools/maven/lib/jansi-native/freebsd32/libjansi.so +0 -0
  431. data/res/build-tools/maven/lib/jansi-native/freebsd64/libjansi.so +0 -0
  432. data/res/build-tools/maven/lib/jansi-native/linux32/libjansi.so +0 -0
  433. data/res/build-tools/maven/lib/jansi-native/linux64/libjansi.so +0 -0
  434. data/res/build-tools/maven/lib/jansi-native/osx/libjansi.jnilib +0 -0
  435. data/res/build-tools/maven/lib/jansi-native/windows32/jansi.dll +0 -0
  436. data/res/build-tools/maven/lib/jansi-native/windows64/jansi.dll +0 -0
  437. data/res/build-tools/maven/lib/jcl-over-slf4j-1.7.25.jar +0 -0
  438. data/res/build-tools/maven/lib/jcl-over-slf4j.license +14 -0
  439. data/res/build-tools/maven/lib/jsr250-api.license +383 -405
  440. data/res/build-tools/maven/lib/jsr305-3.0.2.jar +0 -0
  441. data/res/build-tools/maven/lib/maven-artifact-3.6.1.jar +0 -0
  442. data/res/build-tools/maven/lib/maven-builder-support-3.6.1.jar +0 -0
  443. data/res/build-tools/maven/lib/maven-compat-3.6.1.jar +0 -0
  444. data/res/build-tools/maven/lib/maven-core-3.6.1.jar +0 -0
  445. data/res/build-tools/maven/lib/maven-embedder-3.6.1.jar +0 -0
  446. data/res/build-tools/maven/lib/maven-model-3.6.1.jar +0 -0
  447. data/res/build-tools/maven/lib/maven-model-builder-3.6.1.jar +0 -0
  448. data/res/build-tools/maven/lib/maven-plugin-api-3.6.1.jar +0 -0
  449. data/res/build-tools/maven/lib/maven-repository-metadata-3.6.1.jar +0 -0
  450. data/res/build-tools/maven/lib/maven-resolver-api-1.3.3.jar +0 -0
  451. data/res/build-tools/maven/lib/maven-resolver-connector-basic-1.3.3.jar +0 -0
  452. data/res/build-tools/maven/lib/maven-resolver-impl-1.3.3.jar +0 -0
  453. data/res/build-tools/maven/lib/maven-resolver-provider-3.6.1.jar +0 -0
  454. data/res/build-tools/maven/lib/maven-resolver-spi-1.3.3.jar +0 -0
  455. data/res/build-tools/maven/lib/maven-resolver-transport-wagon-1.3.3.jar +0 -0
  456. data/res/build-tools/maven/lib/maven-resolver-util-1.3.3.jar +0 -0
  457. data/res/build-tools/maven/lib/maven-settings-3.6.1.jar +0 -0
  458. data/res/build-tools/maven/lib/maven-settings-builder-3.6.1.jar +0 -0
  459. data/res/build-tools/maven/lib/maven-shared-utils-3.2.1.jar +0 -0
  460. data/res/build-tools/maven/lib/maven-slf4j-provider-3.6.1.jar +0 -0
  461. data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.3.jar +0 -0
  462. data/res/build-tools/maven/lib/org.eclipse.sisu.inject.license +210 -261
  463. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.3.jar +0 -0
  464. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus.license +210 -261
  465. data/res/build-tools/maven/lib/plexus-component-annotations-1.7.1.jar +0 -0
  466. data/res/build-tools/maven/lib/plexus-interpolation-1.25.jar +0 -0
  467. data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.4.jar +0 -0
  468. data/res/build-tools/maven/lib/plexus-utils-3.2.0.jar +0 -0
  469. data/res/build-tools/maven/lib/slf4j-api-1.7.25.jar +0 -0
  470. data/res/build-tools/maven/lib/slf4j-api.license +10 -186
  471. data/res/build-tools/maven/lib/wagon-file-3.3.2.jar +0 -0
  472. data/res/build-tools/maven/lib/wagon-http-3.3.2-shaded.jar +0 -0
  473. data/res/build-tools/maven/lib/wagon-provider-api-3.3.2.jar +0 -0
  474. data/res/generators/rhogen.rb +150 -0
  475. data/res/generators/templates/application/AndroidManifest.erb +13 -4
  476. data/res/generators/templates/application/build.yml +9 -0
  477. data/res/generators/templates/application/nodejs_build.yml +1 -1
  478. data/res/generators/templates/application/resources/android/res/xml/network_security_config.xml +7 -0
  479. data/res/generators/templates/application/rhoconfig.txt +13 -6
  480. data/res/generators/templates/application/rhoconfig_rubynode.txt +139 -0
  481. data/res/generators/templates/application/rubynodejs_build.yml +95 -0
  482. data/res/generators/templates/extension/extensions/montana/ext/platform/android/Rakefile +19 -0
  483. data/res/generators/templates/iphone_project/root/Entitlements.plist +1 -1
  484. data/res/generators/templates/iphone_project/root/Info.plist +1 -3
  485. data/res/generators/templates/iphone_project/root/rhorunner_development.entitlements +1 -1
  486. data/res/generators/templates/iphone_project/root/rhorunner_production.entitlements +1 -1
  487. data/rhodes.gemspec +2 -2
  488. data/version +1 -1
  489. metadata +244 -71
  490. data/res/build-tools/maven/bin/mvn.bat +0 -197
  491. data/res/build-tools/maven/bin/mvnDebug.bat +0 -200
  492. data/res/build-tools/maven/boot/plexus-classworlds-2.5.2.jar +0 -0
  493. data/res/build-tools/maven/lib/aether-api-1.0.0.v20140518.jar +0 -0
  494. data/res/build-tools/maven/lib/aether-api.license +0 -261
  495. data/res/build-tools/maven/lib/aether-connector-basic-1.0.0.v20140518.jar +0 -0
  496. data/res/build-tools/maven/lib/aether-connector-basic.license +0 -261
  497. data/res/build-tools/maven/lib/aether-impl-1.0.0.v20140518.jar +0 -0
  498. data/res/build-tools/maven/lib/aether-impl.license +0 -261
  499. data/res/build-tools/maven/lib/aether-spi-1.0.0.v20140518.jar +0 -0
  500. data/res/build-tools/maven/lib/aether-spi.license +0 -261
  501. data/res/build-tools/maven/lib/aether-transport-wagon-1.0.0.v20140518.jar +0 -0
  502. data/res/build-tools/maven/lib/aether-transport-wagon.license +0 -261
  503. data/res/build-tools/maven/lib/aether-util-1.0.0.v20140518.jar +0 -0
  504. data/res/build-tools/maven/lib/aether-util.license +0 -261
  505. data/res/build-tools/maven/lib/cdi-api.license +0 -445
  506. data/res/build-tools/maven/lib/commons-cli-1.2.jar +0 -0
  507. data/res/build-tools/maven/lib/commons-io-2.2.jar +0 -0
  508. data/res/build-tools/maven/lib/commons-lang-2.6.jar +0 -0
  509. data/res/build-tools/maven/lib/guava-18.0.jar +0 -0
  510. data/res/build-tools/maven/lib/jsoup-1.7.2.jar +0 -0
  511. data/res/build-tools/maven/lib/jsoup.license +0 -66
  512. data/res/build-tools/maven/lib/maven-aether-provider-3.2.5.jar +0 -0
  513. data/res/build-tools/maven/lib/maven-aether-provider.license +0 -202
  514. data/res/build-tools/maven/lib/maven-artifact-3.2.5.jar +0 -0
  515. data/res/build-tools/maven/lib/maven-artifact.license +0 -202
  516. data/res/build-tools/maven/lib/maven-compat-3.2.5.jar +0 -0
  517. data/res/build-tools/maven/lib/maven-compat.license +0 -202
  518. data/res/build-tools/maven/lib/maven-core-3.2.5.jar +0 -0
  519. data/res/build-tools/maven/lib/maven-core.license +0 -202
  520. data/res/build-tools/maven/lib/maven-embedder-3.2.5.jar +0 -0
  521. data/res/build-tools/maven/lib/maven-embedder.license +0 -202
  522. data/res/build-tools/maven/lib/maven-model-3.2.5.jar +0 -0
  523. data/res/build-tools/maven/lib/maven-model-builder-3.2.5.jar +0 -0
  524. data/res/build-tools/maven/lib/maven-model-builder.license +0 -202
  525. data/res/build-tools/maven/lib/maven-model.license +0 -202
  526. data/res/build-tools/maven/lib/maven-plugin-api-3.2.5.jar +0 -0
  527. data/res/build-tools/maven/lib/maven-plugin-api.license +0 -202
  528. data/res/build-tools/maven/lib/maven-repository-metadata-3.2.5.jar +0 -0
  529. data/res/build-tools/maven/lib/maven-repository-metadata.license +0 -202
  530. data/res/build-tools/maven/lib/maven-settings-3.2.5.jar +0 -0
  531. data/res/build-tools/maven/lib/maven-settings-builder-3.2.5.jar +0 -0
  532. data/res/build-tools/maven/lib/maven-settings-builder.license +0 -202
  533. data/res/build-tools/maven/lib/maven-settings.license +0 -202
  534. data/res/build-tools/maven/lib/org.eclipse.sisu.inject-0.3.0.M1.jar +0 -0
  535. data/res/build-tools/maven/lib/org.eclipse.sisu.plexus-0.3.0.M1.jar +0 -0
  536. data/res/build-tools/maven/lib/plexus-cipher.license +0 -445
  537. data/res/build-tools/maven/lib/plexus-component-annotations-1.5.5.jar +0 -0
  538. data/res/build-tools/maven/lib/plexus-interpolation-1.21.jar +0 -0
  539. data/res/build-tools/maven/lib/plexus-sec-dispatcher-1.3.jar +0 -0
  540. data/res/build-tools/maven/lib/plexus-sec-dispatcher.license +0 -445
  541. data/res/build-tools/maven/lib/plexus-utils-3.0.20.jar +0 -0
  542. data/res/build-tools/maven/lib/sisu-guice-3.2.3-no_aop.jar +0 -0
  543. data/res/build-tools/maven/lib/slf4j-api-1.7.5.jar +0 -0
  544. data/res/build-tools/maven/lib/slf4j-simple-1.7.5.jar +0 -0
  545. data/res/build-tools/maven/lib/slf4j-simple.license +0 -190
  546. data/res/build-tools/maven/lib/wagon-file-2.8.jar +0 -0
  547. data/res/build-tools/maven/lib/wagon-file.license +0 -202
  548. data/res/build-tools/maven/lib/wagon-http-2.8-shaded.jar +0 -0
  549. data/res/build-tools/maven/lib/wagon-http-shared-2.8.jar +0 -0
  550. data/res/build-tools/maven/lib/wagon-http-shared.license +0 -202
  551. data/res/build-tools/maven/lib/wagon-http.license +0 -202
  552. data/res/build-tools/maven/lib/wagon-provider-api-2.8.jar +0 -0
  553. data/res/build-tools/maven/lib/wagon-provider-api.license +0 -202
@@ -10,7 +10,7 @@
10
10
  #import "Classes/Rhodes.h"
11
11
 
12
12
  @interface RhodesBaseDelegate : Rhodes <UIApplicationDelegate,
13
- UITabBarControllerDelegate, AVAudioPlayerDelegate, UIAlertViewDelegate>
13
+ UITabBarControllerDelegate, AVAudioPlayerDelegate, UIAlertViewDelegate, UNUserNotificationCenterDelegate>
14
14
  {
15
15
 
16
16
  }
@@ -6,6 +6,20 @@
6
6
  objectVersion = 46;
7
7
  objects = {
8
8
 
9
+ /* Begin PBXAggregateTarget section */
10
+ FAD35703226422FF00419673 /* curlAggregated */ = {
11
+ isa = PBXAggregateTarget;
12
+ buildConfigurationList = FAD35707226422FF00419673 /* Build configuration list for PBXAggregateTarget "curlAggregated" */;
13
+ buildPhases = (
14
+ FAD357082264230300419673 /* ShellScript */,
15
+ );
16
+ dependencies = (
17
+ );
18
+ name = curlAggregated;
19
+ productName = curlAggregated;
20
+ };
21
+ /* End PBXAggregateTarget section */
22
+
9
23
  /* Begin PBXBuildFile section */
10
24
  AC1791A41FC71C4A0065041B /* amigaos.c in Sources */ = {isa = PBXBuildFile; fileRef = AC1791A11FC71C4A0065041B /* amigaos.c */; };
11
25
  AC1791A51FC71C4A0065041B /* amigaos.h in Headers */ = {isa = PBXBuildFile; fileRef = AC1791A21FC71C4A0065041B /* amigaos.h */; };
@@ -787,6 +801,13 @@
787
801
  isa = PBXProject;
788
802
  attributes = {
789
803
  LastUpgradeCheck = 0500;
804
+ TargetAttributes = {
805
+ FAD35703226422FF00419673 = {
806
+ CreatedOnToolsVersion = 10.1;
807
+ DevelopmentTeam = PNQRMU2LPM;
808
+ ProvisioningStyle = Automatic;
809
+ };
810
+ };
790
811
  };
791
812
  buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "curl" */;
792
813
  compatibilityVersion = "Xcode 3.2";
@@ -800,10 +821,31 @@
800
821
  projectRoot = "";
801
822
  targets = (
802
823
  D2AAC045055464E500DB518D /* curl */,
824
+ FAD35703226422FF00419673 /* curlAggregated */,
803
825
  );
804
826
  };
805
827
  /* End PBXProject section */
806
828
 
829
+ /* Begin PBXShellScriptBuildPhase section */
830
+ FAD357082264230300419673 /* ShellScript */ = {
831
+ isa = PBXShellScriptBuildPhase;
832
+ buildActionMask = 2147483647;
833
+ files = (
834
+ );
835
+ inputFileListPaths = (
836
+ );
837
+ inputPaths = (
838
+ );
839
+ outputFileListPaths = (
840
+ );
841
+ outputPaths = (
842
+ );
843
+ runOnlyForDeploymentPostprocessing = 0;
844
+ shellPath = /bin/sh;
845
+ 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=\"i386 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=\"i386 x86_64\"\n\nARCHS=\"arm64 armv7 armv7s\"\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 armv7s\"\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
+ };
847
+ /* End PBXShellScriptBuildPhase section */
848
+
807
849
  /* Begin PBXSourcesBuildPhase section */
808
850
  D2AAC044055464E500DB518D /* Sources */ = {
809
851
  isa = PBXSourcesBuildPhase;
@@ -962,12 +1004,13 @@
962
1004
  1DEB91F008733DB70010E9CD /* Debug */ = {
963
1005
  isa = XCBuildConfiguration;
964
1006
  buildSettings = {
965
- GCC_C_LANGUAGE_STANDARD = c99;
966
1007
  CLANG_CXX_LIBRARY = "libc++";
1008
+ GCC_C_LANGUAGE_STANDARD = c99;
967
1009
  GCC_OPTIMIZATION_LEVEL = 0;
968
1010
  GCC_WARN_ABOUT_RETURN_TYPE = YES;
969
1011
  GCC_WARN_UNUSED_VARIABLE = YES;
970
1012
  HEADER_SEARCH_PATHS = ../../shared;
1013
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
971
1014
  ONLY_ACTIVE_ARCH = YES;
972
1015
  PREBINDING = NO;
973
1016
  SDKROOT = iphoneos;
@@ -977,11 +1020,12 @@
977
1020
  1DEB91F108733DB70010E9CD /* Release */ = {
978
1021
  isa = XCBuildConfiguration;
979
1022
  buildSettings = {
980
- GCC_C_LANGUAGE_STANDARD = c99;
981
1023
  CLANG_CXX_LIBRARY = "libc++";
1024
+ GCC_C_LANGUAGE_STANDARD = c99;
982
1025
  GCC_WARN_ABOUT_RETURN_TYPE = YES;
983
1026
  GCC_WARN_UNUSED_VARIABLE = YES;
984
1027
  HEADER_SEARCH_PATHS = ../../shared;
1028
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
985
1029
  ONLY_ACTIVE_ARCH = NO;
986
1030
  PREBINDING = NO;
987
1031
  SDKROOT = iphoneos;
@@ -991,11 +1035,12 @@
991
1035
  BDC9885010AEBA3C00A80FD0 /* Distribution */ = {
992
1036
  isa = XCBuildConfiguration;
993
1037
  buildSettings = {
994
- GCC_C_LANGUAGE_STANDARD = c99;
995
1038
  CLANG_CXX_LIBRARY = "libc++";
1039
+ GCC_C_LANGUAGE_STANDARD = c99;
996
1040
  GCC_WARN_ABOUT_RETURN_TYPE = YES;
997
1041
  GCC_WARN_UNUSED_VARIABLE = YES;
998
1042
  HEADER_SEARCH_PATHS = ../../shared;
1043
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
999
1044
  ONLY_ACTIVE_ARCH = NO;
1000
1045
  PREBINDING = NO;
1001
1046
  SDKROOT = iphoneos;
@@ -1024,6 +1069,33 @@
1024
1069
  };
1025
1070
  name = Distribution;
1026
1071
  };
1072
+ FAD35704226422FF00419673 /* Debug */ = {
1073
+ isa = XCBuildConfiguration;
1074
+ buildSettings = {
1075
+ CODE_SIGN_STYLE = Automatic;
1076
+ DEVELOPMENT_TEAM = PNQRMU2LPM;
1077
+ PRODUCT_NAME = "$(TARGET_NAME)";
1078
+ };
1079
+ name = Debug;
1080
+ };
1081
+ FAD35705226422FF00419673 /* Release */ = {
1082
+ isa = XCBuildConfiguration;
1083
+ buildSettings = {
1084
+ CODE_SIGN_STYLE = Automatic;
1085
+ DEVELOPMENT_TEAM = PNQRMU2LPM;
1086
+ PRODUCT_NAME = "$(TARGET_NAME)";
1087
+ };
1088
+ name = Release;
1089
+ };
1090
+ FAD35706226422FF00419673 /* Distribution */ = {
1091
+ isa = XCBuildConfiguration;
1092
+ buildSettings = {
1093
+ CODE_SIGN_STYLE = Automatic;
1094
+ DEVELOPMENT_TEAM = PNQRMU2LPM;
1095
+ PRODUCT_NAME = "$(TARGET_NAME)";
1096
+ };
1097
+ name = Distribution;
1098
+ };
1027
1099
  /* End XCBuildConfiguration section */
1028
1100
 
1029
1101
  /* Begin XCConfigurationList section */
@@ -1047,6 +1119,16 @@
1047
1119
  defaultConfigurationIsVisible = 0;
1048
1120
  defaultConfigurationName = Release;
1049
1121
  };
1122
+ FAD35707226422FF00419673 /* Build configuration list for PBXAggregateTarget "curlAggregated" */ = {
1123
+ isa = XCConfigurationList;
1124
+ buildConfigurations = (
1125
+ FAD35704226422FF00419673 /* Debug */,
1126
+ FAD35705226422FF00419673 /* Release */,
1127
+ FAD35706226422FF00419673 /* Distribution */,
1128
+ );
1129
+ defaultConfigurationIsVisible = 0;
1130
+ defaultConfigurationName = Release;
1131
+ };
1050
1132
  /* End XCConfigurationList section */
1051
1133
  };
1052
1134
  rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
4
  <dict>
5
5
  <key>items</key>
@@ -29,6 +29,8 @@ require File.expand_path(File.join(File.dirname(__FILE__), 'iphonecommon'))
29
29
  require File.dirname(__FILE__) + '/../../../lib/build/BuildConfig'
30
30
 
31
31
 
32
+ $use_temp_keychain = false
33
+
32
34
  $out_file_buf_enable = false
33
35
  $out_file_buf_path = 'rhobuildlog.txt'
34
36
  $out_file_buf = []
@@ -278,8 +280,9 @@ def update_plist_procedure
278
280
  ext_name, changed_value = get_ext_plist_changes($app_extension_cfg)
279
281
 
280
282
  set_app_plist_options($app_path + "/project/iphone/Info.plist", appname, bundle_identifier, $app_config["version"], $app_config["iphone"]["BundleURLScheme"]) do |hash|
281
- hash['UIApplicationExitsOnSuspend'] = on_suspend_value
282
-
283
+ if !(on_suspend.nil?)
284
+ hash['UIApplicationExitsOnSuspend'] = on_suspend_value
285
+ end
283
286
  changed_value.each do |k, v|
284
287
  puts "Info.plist: Setting key #{k} = #{v} from #{File.basename(ext_name[k])}"
285
288
  hash[k] = v
@@ -785,14 +788,14 @@ def update_xcode_project_files_by_capabilities
785
788
  if $app_config['iphone'] != nil
786
789
  if $app_config['iphone']['barcode_engine'] != nil
787
790
  $barcode_engine = $app_config['iphone']['barcode_engine'].upcase
788
- if $barcode_engine != 'ZXING' && $barcode_engine != 'ZBAR' then
789
- raise 'ERROR: Unknown barcode engine, select ZBar or ZXing please in build.yml [iphone][barcode_engine] setup to ZXING or ZBAR !'
791
+ if $barcode_engine != 'ZXING' && $barcode_engine != 'APPLE_BARCODE_ENGINE' then
792
+ raise 'ERROR: Unknown barcode engine, select Apples or ZXing please in build.yml [iphone][barcode_engine] setup to APPLE_BARCODE_ENGINE or ZXING ! ZBAR is unsupported now by UIWebView issue!!!'
790
793
  end
791
794
  else
792
- $barcode_engine = 'ZXING'
795
+ $barcode_engine = 'APPLE_BARCODE_ENGINE'
793
796
  end
794
797
  else
795
- $barcode_engine = 'ZXING'
798
+ $barcode_engine = 'APPLE_BARCODE_ENGINE'
796
799
  end
797
800
  end
798
801
 
@@ -1044,6 +1047,8 @@ def kill_iphone_simulator
1044
1047
  `killall -9 iphonesim_6`
1045
1048
  `killall -9 iphonesim_7`
1046
1049
  `killall -9 iphonesim_8`
1050
+ `killall -9 com.apple.CoreSimulator.CoreSimulatorService`
1051
+ `killall -9 Simulator`
1047
1052
  end
1048
1053
 
1049
1054
  namespace "config" do
@@ -1144,7 +1149,7 @@ namespace "config" do
1144
1149
 
1145
1150
  #check for XCode 6
1146
1151
  xcode_version = get_xcode_version
1147
- xcode_version = xcode_version[0..(xcode_version.index('.')-1)]
1152
+ xcode_version = xcode_version[0..(xcode_version.index('.')-1)]
1148
1153
  if xcode_version.to_i >= 6
1149
1154
  $iphonesim = File.join($startdir, 'res/build-tools/iphonesim/build/Release/iphonesim_6')
1150
1155
  end
@@ -1166,7 +1171,7 @@ namespace "config" do
1166
1171
  if !File.exists? '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTiPhoneSimulatorRemoteClient.framework'
1167
1172
  #check for XCode 6
1168
1173
  xcode_version = get_xcode_version
1169
- xcode_version = xcode_version[0..(xcode_version.index('.')-1)]
1174
+ xcode_version = xcode_version[0..(xcode_version.index('.')-1)]
1170
1175
  if xcode_version.to_i >= 8
1171
1176
  $iphonesim = File.join($startdir, 'res/build-tools/iphonesim/build/Release/iphonesim_8')
1172
1177
  elsif xcode_version.to_i >= 7
@@ -1266,6 +1271,15 @@ namespace "config" do
1266
1271
  mp_latest_Time = nil
1267
1272
 
1268
1273
  if File.exists? mp_folder
1274
+
1275
+ if $use_temp_keychain
1276
+ puts "Prepare temporary keychain for use security tool"
1277
+ args = ['delete-keychain', 'tmp']
1278
+ Jake.run2('security',args)
1279
+ args = ['create-keychain', '-p ""','rhobuildtmp']
1280
+ Jake.run2('security',args)
1281
+ end
1282
+
1269
1283
  Dir.entries(mp_folder).select do |entry|
1270
1284
  path = File.join(mp_folder,entry)
1271
1285
  #puts '$$$ '+path.to_s
@@ -1274,11 +1288,17 @@ namespace "config" do
1274
1288
  plist_path = path
1275
1289
  # make XML
1276
1290
  xml_lines_arr = []
1277
- args = ['cms', '-D', '-i', plist_path]
1291
+
1292
+ if $use_temp_keychain
1293
+ args = ['cms', '-D', '-k', 'rhobuildtmp', '-i', plist_path]
1294
+ else
1295
+ args = ['cms', '-D', '-i', plist_path]
1296
+ end
1278
1297
  Jake.run2('security',args,{:rootdir => $startdir, :hide_output => true}) do |line|
1279
1298
  xml_lines_arr << line.to_s
1280
1299
  true
1281
1300
  end
1301
+
1282
1302
  xml_lines = xml_lines_arr.join.to_s
1283
1303
  #puts '%%%%%%% '+xml_lines
1284
1304
 
@@ -1308,6 +1328,12 @@ namespace "config" do
1308
1328
  end
1309
1329
  end
1310
1330
  end
1331
+
1332
+ if $use_temp_keychain
1333
+ args = ['delete-keychain', 'rhobuildtmp']
1334
+ Jake.run2('security',args)
1335
+ end
1336
+
1311
1337
  end
1312
1338
  if mp_latest_UUID != nil
1313
1339
  $provisionprofile = mp_latest_UUID
@@ -1473,6 +1499,396 @@ namespace "build" do
1473
1499
 
1474
1500
  end
1475
1501
 
1502
+
1503
+ # [build:iphone:rhodeslib_framework]
1504
+ desc "Build iphone framework - set target path : rake build:iphone:rhodeslib_framework['/Users/myuser/mypath']"
1505
+ task :rhodeslib_framework, [:target_path] => ["config:set_iphone_platform", "config:common"] do |t, args|
1506
+
1507
+ require $startdir + '/lib/build/jake.rb'
1508
+
1509
+ print_timestamp('build:iphone:rhodeslib_framework START')
1510
+ currentdir = Dir.pwd()
1511
+
1512
+
1513
+ # copied from build upgrade bundle
1514
+
1515
+ target_path = args[:target_path]
1516
+
1517
+ Rake::Task['config:iphone'].invoke
1518
+
1519
+ appname = $app_config["name"] ? $app_config["name"] : "rhorunner"
1520
+ appname_fixed = appname.split(/[^a-zA-Z0-9]/).map { |w| w }.join("")
1521
+
1522
+ iphone_project = File.join($app_path, "project","iphone","#{appname_fixed}.xcodeproj")
1523
+
1524
+ if !File.exist?(iphone_project)
1525
+
1526
+ puts '$ make iphone XCode project for application'
1527
+ Rake::Task['build:iphone:make_xcode_project'].invoke
1528
+
1529
+ end
1530
+
1531
+
1532
+
1533
+ # prepare tmp folder
1534
+ lib_temp_dir = File.join($startdir, "platform/iphone/Framework/LibFactory")
1535
+ rm_rf lib_temp_dir if File.exists? lib_temp_dir
1536
+ mkdir_p lib_temp_dir
1537
+
1538
+ libs = []
1539
+
1540
+ # build rhodes system libs
1541
+ rhodes_libs = {}
1542
+ rhodes_libs['RhoApplication'] = { :path => File.join($startdir, "platform/iphone/Framework/RhoApplication"), :target => "RhoApplication"}
1543
+ rhodes_libs['rhoextlib'] = { :path => File.join($startdir, "platform/iphone/rhoextlib"), :target => 'rhoextlib'}
1544
+ rhodes_libs['rhosynclib'] = { :path => File.join($startdir, "platform/iphone/rhosynclib"), :target => 'rhosynclib'}
1545
+ rhodes_libs['rhorubylib'] = { :path => File.join($startdir, "platform/iphone/rhorubylib"), :target => 'rhorubylib'}
1546
+ rhodes_libs['RhoLib'] = { :path => File.join($startdir, "platform/iphone/RhoLib"), :target => 'RhoLib'}
1547
+ rhodes_libs['curl'] = { :path => File.join($startdir, "platform/iphone/curl"), :target => 'curl'}
1548
+ rhodes_libs['RhoAppBaseLib'] = { :path => File.join($startdir, "platform/iphone/RhoAppBaseLib"), :target => 'RhoAppBaseStandaloneLib'}
1549
+
1550
+ # skip this step - now all of those libsincluded into framework project
1551
+ rhodes_libs = {}
1552
+ rhodes_libs.each do |libname, libconfig|
1553
+ # build
1554
+ #args = ['install', '-scheme', libconfig[:target]+"Aggregated", '-project', libname + ".xcodeproj"]
1555
+ Dir.chdir libconfig[:path]
1556
+ #ret = IPhoneBuild.run_and_trace($xcodebuild,args,{:rootdir => $startdir})
1557
+
1558
+ lib_iphoneos_dir = File.join(libconfig[:path], "iphoneos")
1559
+ lib_iphonesimulator_dir = File.join(libconfig[:path], "iphonesimulator")
1560
+ lib_aggregated_dir = File.join(libconfig[:path], "aggregated")
1561
+
1562
+ lib_file_name = "lib" + libconfig[:target] + ".a"
1563
+ lib_iphoneos_path = File.join(lib_iphoneos_dir, lib_file_name)
1564
+ lib_iphonesimulator_path = File.join(lib_iphonesimulator_dir, lib_file_name)
1565
+ lib_aggregated_path = File.join(lib_aggregated_dir, lib_file_name)
1566
+
1567
+ rm_rf lib_iphoneos_dir if File.exists? lib_iphoneos_dir
1568
+ rm_rf lib_iphonesimulator_dir if File.exists? lib_iphonesimulator_dir
1569
+ rm_rf lib_aggregated_dir if File.exists? lib_aggregated_dir
1570
+
1571
+ args = ['clean', 'build', '-scheme', libconfig[:target], '-project', libname + ".xcodeproj", "-sdk", "iphoneos", "-configuration", "Release"]
1572
+ ret = IPhoneBuild.run_and_trace($xcodebuild,args,{:rootdir => $startdir,:string_for_add_to_command_line => ' CONFIGURATION_BUILD_DIR='+lib_iphoneos_dir+' ARCHS="arm64 arm64e armv7 armv7s"'})
1573
+
1574
+ args = ['clean', 'build', '-scheme', libconfig[:target], '-project', libname + ".xcodeproj", "-sdk", "iphonesimulator", "-configuration", "Release"]
1575
+ ret = IPhoneBuild.run_and_trace($xcodebuild,args,{:rootdir => $startdir,:string_for_add_to_command_line => ' CONFIGURATION_BUILD_DIR='+lib_iphonesimulator_dir+' ARCHS="i386 x86_64"'})
1576
+
1577
+ mkdir_p lib_aggregated_dir
1578
+
1579
+ #result_lib = File.join(libconfig[:path], libconfig[:target]+"-Aggregated", lib_file_name)
1580
+ args = []
1581
+ args << "-create"
1582
+ args << "-output"
1583
+ args << lib_aggregated_path
1584
+ args << lib_iphonesimulator_path
1585
+ args << lib_iphoneos_path
1586
+ IPhoneBuild.run_and_trace("lipo",args,{:rootdir => $startdir})
1587
+
1588
+ #copy result
1589
+ target_lib = File.join(lib_temp_dir, lib_file_name)
1590
+ cp_r lib_aggregated_path,target_lib
1591
+
1592
+ # count lib
1593
+ libs << lib_file_name
1594
+ end
1595
+
1596
+ #build extensions
1597
+ Dir.chdir currentdir
1598
+ Rake::Task['build:iphone:extension_libs'].invoke
1599
+ #Rake::Task["build:bundle:noxruby"].execute
1600
+
1601
+ #copy extensions libs to tmp folder
1602
+ puts "$$$ $app_extensions_list = "+$app_extensions_list.to_s
1603
+ $app_extensions_list.each do |ext, commin_ext_path |
1604
+ lib_ext_path = File.join($app_builddir, "extensions", ext, "lib")
1605
+ # copy all libs from this folder
1606
+ psize = lib_ext_path.size+1
1607
+ Dir.glob(File.join(lib_ext_path,'*.a')).each do |artefact|
1608
+ puts " $$$ artefact = "+artefact.to_s
1609
+ if (File.file? artefact)
1610
+ relpath = artefact[psize..-1]
1611
+ libs << relpath
1612
+ target_lib = File.join(lib_temp_dir, relpath)
1613
+ cp_r artefact, target_lib
1614
+ end
1615
+ end
1616
+ end
1617
+
1618
+ #join libs to one fat
1619
+ Dir.chdir lib_temp_dir
1620
+
1621
+ #libtool -static -o result.a libCoreAPI.a
1622
+ #args = ["-static", "-o", "RhodesFrameworkStaticLib.a"]
1623
+ args = ["-static", "-o", "libRhodesExtensionsLib.a"]
1624
+ lib_list = ""
1625
+ libs.each do |lib|
1626
+ args << lib
1627
+ lib_list << File.join(lib_temp_dir, lib) + "\n"
1628
+ end
1629
+ #ret = IPhoneBuild.run_and_trace("libtool",args,{:rootdir => $startdir})
1630
+
1631
+ #build framework base
1632
+ framework_dir = File.join($startdir, "platform/iphone/Framework/Rhodes")
1633
+ File.open(File.join(framework_dir,"rhodeslibs.txt"),"w") { |f| f.write lib_list }
1634
+
1635
+ framework_build_dir = File.join(framework_dir, "build")
1636
+ rm_rf framework_build_dir
1637
+
1638
+ args = ['clean', 'install', '-target', "Framework",'-project', "Rhodes.xcodeproj"]
1639
+ Dir.chdir framework_dir
1640
+ ret = IPhoneBuild.run_and_trace($xcodebuild,args,{:rootdir => $startdir})
1641
+
1642
+ # copy lib
1643
+ #framework_lib_path = File.join(framework_dir, "Rhodes-Aggregated/Rhodes.framework/Rhodes")
1644
+ #target_lib = File.join(lib_temp_dir, "Rhodes.a")
1645
+ #cp_r framework_lib_path, target_lib
1646
+ #libs << "Rhodes.a"
1647
+
1648
+ #copy final lib to framework
1649
+ #rm_rf framework_lib_path
1650
+ #cp_r File.join(lib_temp_dir, "RhodesFrameworkLib.a"), framework_lib_path
1651
+
1652
+ # copy result framework to target path
1653
+ framework_path = File.join(framework_dir, "Rhodes-Aggregated/Rhodes.framework")
1654
+ framework_target_path = File.join(target_path, "Rhodes.framework")
1655
+ rm_rf framework_target_path if File.exists? framework_target_path
1656
+ cp_r framework_path, framework_target_path
1657
+
1658
+ Dir.chdir currentdir
1659
+ print_timestamp('build:iphone:rhodeslib_framework FINISH')
1660
+ end
1661
+
1662
+ # [build:iphone:rhodeslib_prepare_xcodeproject]
1663
+ #desc "Prepare customers's XCode project for Rhodes Framework - set target path : rake build:iphone:rhodeslib_prepare_xcodeproject['/Users/myuser/my_xcode_project_fullpath']"
1664
+ task :rhodeslib_prepare_xcodeproject, [:project_path, :target_name] => ["config:set_iphone_platform", "config:common"] do |t, args|
1665
+
1666
+ print_timestamp('build:iphone:rhodeslib_prepare_xcodeproject START')
1667
+ currentdir = Dir.pwd()
1668
+
1669
+
1670
+ # copied from build upgrade bundle
1671
+
1672
+ project_path = args[:project_path]
1673
+ target_name = args[:target_name]
1674
+ project_dir = File.dirname(project_path)
1675
+
1676
+ require 'xcodeproj'
1677
+
1678
+ project = Xcodeproj::Project.open(project_path)
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+
1686
+
1687
+ Dir.chdir currentdir
1688
+ print_timestamp('build:iphone:rhodeslib_prepare_xcodeproject FINISH')
1689
+ end
1690
+
1691
+ =begin
1692
+
1693
+ #if use_old_scheme
1694
+
1695
+ elements = []
1696
+ binplist = File.join(ENV['HOME'], 'Library', 'Preferences', 'com.apple.iphonesimulator.plist')
1697
+ xmlplist = '/tmp/iphone.plist'
1698
+ if File.exists? binplist
1699
+ `plutil -convert xml1 -o #{xmlplist} #{binplist}`
1700
+
1701
+ elements = []
1702
+ doc = REXML::Document.new(File.new(xmlplist))
1703
+ nextignore = false
1704
+ doc.elements.each('plist/dict/*') do |element|
1705
+ if nextignore
1706
+ nextignore = false
1707
+ next
1708
+ end
1709
+ if element.name == 'key'
1710
+ if element.text == 'currentSDKRoot' or element.text == 'SimulateDevice'
1711
+ nextignore = true
1712
+ next
1713
+ end
1714
+ end
1715
+
1716
+ elements << element
1717
+ end
1718
+ end
1719
+
1720
+ e = REXML::Element.new 'key'
1721
+ e.text = 'SimulateDevice'
1722
+ elements << e
1723
+ e = REXML::Element.new 'string'
1724
+ e.text = $sdkver == '3.2' ? 'iPad' : 'iPhone'
1725
+ elements << e
1726
+ e = REXML::Element.new 'key'
1727
+ e.text = 'currentSDKRoot'
1728
+ elements << e
1729
+ e = REXML::Element.new 'string'
1730
+ e.text = $sdkroot
1731
+ elements << e
1732
+
1733
+ File.open(xmlplist, 'w') do |f|
1734
+ f.puts "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
1735
+ f.puts "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
1736
+ f.puts "<plist version=\"1.0\">"
1737
+ f.puts "<dict>"
1738
+ elements.each do |e|
1739
+ f.puts "\t#{e.to_s}"
1740
+ end
1741
+ f.puts "</dict>"
1742
+ f.puts "</plist>"
1743
+ end
1744
+
1745
+ `plutil -convert binary1 -o #{binplist} #{xmlplist}`
1746
+
1747
+ rhorunner = File.join($app_path, "/project/iphone") + "/build/#{$configuration}-iphonesimulator/rhorunner.app"
1748
+ puts "rhorunner: #{rhorunner}"
1749
+
1750
+ puts "our app name: #{$app_config['name']}"
1751
+ puts "simdir: #{$simdir}"
1752
+
1753
+ Dir.glob(File.join($simdir, $sdkver, "Applications", "*")).each do |simapppath|
1754
+ need_rm = true if File.directory? simapppath
1755
+ if File.exists?(File.join(simapppath, 'rhorunner.app', 'name'))
1756
+ name = File.read(File.join(simapppath, 'rhorunner.app', 'name'))
1757
+ puts "found app name: #{name}"
1758
+ guid = File.basename(simapppath)
1759
+ puts "found guid: #{guid}"
1760
+ if name == $app_config['name']
1761
+ $guid = guid
1762
+ need_rm = false
1763
+ end
1764
+ end
1765
+ rm_rf simapppath if need_rm
1766
+ rm_rf simapppath + ".sb" if need_rm
1767
+ end
1768
+
1769
+ puts "app guid: #{$guid}"
1770
+
1771
+ mkdir_p File.join($simdir, $sdkver)
1772
+
1773
+ simapp = File.join($simdir, $sdkver, "Applications")
1774
+ simlink = File.join($simdir, $sdkver, "Library", "Preferences")
1775
+
1776
+ $simrhodes = File.join(simapp, $guid)
1777
+ chmod 0744, File.join($simrhodes, "rhorunner.app", "rhorunner") unless !File.exists?(File.join($simrhodes, "rhorunner.app", "rhorunner"))
1778
+
1779
+ mkdir_p File.join($simrhodes, "Documents")
1780
+ mkdir_p File.join($simrhodes, "Library", "Preferences")
1781
+ mkdir_p File.join($simrhodes, "Library", "Caches", "Private Documents")
1782
+
1783
+ rm_rf File.join($simrhodes, 'rhorunner.app')
1784
+ cp_r rhorunner, $simrhodes
1785
+ ['com.apple.PeoplePicker.plist', '.GlobalPreferences.plist'].each do |f|
1786
+ `ln -f -s "#{simlink}/#{f}" "#{$simrhodes}/Library/Preferences/#{f}"`
1787
+ end
1788
+
1789
+ #>>>>>>>>>>
1790
+ #`echo "#{$applog}" > "#{$simrhodes}/Documents/rhologpath.txt"`
1791
+ rholog = simapp + "/" + $guid + "/Library/Caches/Private Documents/rholog.txt"
1792
+
1793
+
1794
+ #simpublic = simapp + "/" + $guid + "/Documents/apps/public"
1795
+ simpublic = simapp + "/" + $guid + "/Library/Caches/Private Documents/apps/public"
1796
+
1797
+ apppublic = $app_path + "/sim-public-#{$sdkver}"
1798
+
1799
+
1800
+ apprholog = $app_path + "/rholog-#{$sdkver}.txt"
1801
+ apprholog = $app_path + "/" + $app_config["applog"] if $app_config["applog"]
1802
+
1803
+ rm_f apprholog
1804
+ rm_f apppublic
1805
+ #`ln -f -s "#{simpublic}" "#{apppublic}"`
1806
+ #`ln -f -s "#{rholog}" "#{apprholog}"`
1807
+ `echo > "#{rholog}"`
1808
+ f = File.new("#{simapp}/#{$guid}.sb","w")
1809
+ f << "(version 1)\n(debug deny)\n(allow default)\n"
1810
+ f.close
1811
+ #end
1812
+
1813
+ =end
1814
+
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+ # [build:iphone:rhodeslib_bundle]
1844
+ desc "Build iphone rhobundle - set target path : rake build:iphone:rhodeslib_bundle['/Users/myuser/mypath']"
1845
+ task :rhodeslib_bundle, [:target_path] => ["config:set_iphone_platform", "config:common"] do |t, args|
1846
+
1847
+ print_timestamp('build:iphone:rhodeslib_bundle START')
1848
+ # copied from build upgrade bundle
1849
+
1850
+ target_path = args[:target_path]
1851
+
1852
+ $skip_checking_XCode = true
1853
+ $skip_build_rhodes_main = true
1854
+ $skip_build_extensions = true
1855
+ $skip_build_xmls = true
1856
+ $use_prebuild_data = true
1857
+
1858
+ Rake::Task['config:iphone'].invoke
1859
+
1860
+ appname = $app_config["name"] ? $app_config["name"] : "rhorunner"
1861
+ appname_fixed = appname.split(/[^a-zA-Z0-9]/).map { |w| w }.join("")
1862
+
1863
+ iphone_project = File.join($app_path, "project","iphone","#{appname_fixed}.xcodeproj")
1864
+
1865
+ if !File.exist?(iphone_project)
1866
+
1867
+ puts '$ make iphone XCode project for application'
1868
+ Rake::Task['build:iphone:make_xcode_project'].invoke
1869
+
1870
+ end
1871
+
1872
+ Rake::Task['build:iphone:rhobundle'].invoke
1873
+
1874
+ #puts '$$$$$$$$$$$$$$$$$$'
1875
+ #puts 'targetdir = '+$targetdir.to_s
1876
+ #puts 'bindir = '+$bindir.to_s
1877
+
1878
+
1879
+ mkdir_p target_path if not File.exists? target_path
1880
+ # copy RhoBundle folder from $bindir to target_path
1881
+
1882
+ source_RhoBundle = File.join($bindir, "RhoBundle")
1883
+ target_RhoBundle = File.join(target_path, "RhoBundle")
1884
+ rm_rf target_RhoBundle if File.exists? target_RhoBundle
1885
+ cp_r source_RhoBundle, target_path
1886
+
1887
+ print_timestamp('build:iphone:rhodeslib_bundle FINISH')
1888
+ end
1889
+
1890
+
1891
+
1476
1892
  desc "build upgrade package with full bundle"
1477
1893
  task :upgrade_package => ["config:set_iphone_platform", "config:common"] do
1478
1894
 
@@ -1750,7 +2166,8 @@ namespace "build" do
1750
2166
  "sdk" => sdk,
1751
2167
  "xcode_version" => xcode_version,
1752
2168
  "is_jsapp" => $js_application.to_s,
1753
- "is_nodejsapp" => $nodejs_application.to_s
2169
+ "is_nodejsapp" => $nodejs_application.to_s,
2170
+ "is_rubynodejsapp" => $rubynodejs_application.to_s
1754
2171
  }
1755
2172
 
1756
2173
  is_opt_c = is_options_was_changed( check_configuration, File.join(result_lib_folder, "lastbuildoptions.yml"))
@@ -1772,13 +2189,15 @@ namespace "build" do
1772
2189
  #rm_rf 'build'
1773
2190
  rm_rf result_lib_folder
1774
2191
 
1775
- args = ['build', '-target', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject]
2192
+ args = ['build', '-scheme', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject]
1776
2193
 
1777
2194
  additional_string = ''
1778
2195
  if simulator
1779
2196
  #args << '-arch'
1780
2197
  #args << 'i386'
1781
- additional_string = ' ARCHS="i386 x86_64"'
2198
+ additional_string = ' CONFIGURATION_BUILD_DIR='+result_lib_folder+' ARCHS="i386 x86_64"'
2199
+ else
2200
+ additional_string = ' CONFIGURATION_BUILD_DIR='+result_lib_folder+' ARCHS="arm64 arm64e armv7 armv7s"'
1782
2201
  end
1783
2202
 
1784
2203
  require rootdir + '/lib/build/jake.rb'
@@ -1834,7 +2253,9 @@ namespace "build" do
1834
2253
  ENV["TARGET_TEMP_DIR"] ||= target_dir
1835
2254
  ENV["TEMP_FILES_DIR"] ||= ENV["TARGET_TEMP_DIR"]
1836
2255
 
1837
- ENV["ARCHS"] ||= simulator ? "i386 x86_64" : "armv7 armv7s arm64"
2256
+ ENV["ARCHS"] ||= simulator ? "i386 x86_64" : "arm64 arm64e armv7 armv7s"
2257
+
2258
+
1838
2259
  ENV["RHO_ROOT"] = $startdir
1839
2260
 
1840
2261
  # added by dmitrys
@@ -1867,11 +2288,17 @@ namespace "build" do
1867
2288
  else
1868
2289
  puts 'build script in extension already executable : '+build_script
1869
2290
  end
2291
+ if simulator
2292
+ ENV["XCODE_BUILD_ADDITIONAL_STRING_TO_COMMAND_LINE"] = ' ARCHS="i386 x86_64"'
2293
+ else
2294
+ ENV["XCODE_BUILD_ADDITIONAL_STRING_TO_COMMAND_LINE"] = ' ARCHS="arm64 arm64e armv7 armv7s"'
2295
+ end
1870
2296
  #puts '$$$$$$$$$$$$$$$$$$ START'
1871
2297
  currentdir = Dir.pwd()
1872
2298
  Dir.chdir extpath
1873
2299
  sh %{$SHELL ./build}
1874
2300
  #Jake.run32("$SHELL "+build_script)
2301
+ ENV["XCODE_BUILD_ADDITIONAL_STRING_TO_COMMAND_LINE"] = ''
1875
2302
  Dir.chdir currentdir
1876
2303
  #puts '$$$$$$$$$$$$$$$$$$ FINISH'
1877
2304
  #if File.executable? build_script
@@ -1979,6 +2406,8 @@ namespace "build" do
1979
2406
 
1980
2407
  end
1981
2408
 
2409
+
2410
+
1982
2411
  #[build:iphone:extension_libs]
1983
2412
  task :extension_libs => ["config:iphone", "build:bundle:noxruby"] do
1984
2413
  #chdir 'platform/iphone'
@@ -2013,7 +2442,13 @@ namespace "build" do
2013
2442
 
2014
2443
  puts "extpaths: #{$app_config["extpaths"].inspect.to_s}"
2015
2444
  $stdout.flush
2445
+
2446
+ print_timestamp('build extension libs START')
2447
+
2016
2448
  $app_extensions_list.each do |ext, commin_ext_path |
2449
+
2450
+ puts " ±±± extension ["+ext.to_s+"],["+commin_ext_path.to_s+"]"
2451
+
2017
2452
  if commin_ext_path != nil
2018
2453
 
2019
2454
  extpath = File.join( commin_ext_path, 'ext')
@@ -2023,6 +2458,9 @@ namespace "build" do
2023
2458
  xcodetarget = nil #xcodetarget
2024
2459
  depfile = nil #rebuild_deplist
2025
2460
 
2461
+ puts " ±±± extension ext.yml ["+extyml.to_s+"]"
2462
+
2463
+
2026
2464
  if File.file? extyml
2027
2465
  extconf = Jake.config(File.open(extyml))
2028
2466
  #extconf_iphone = extconf['iphone']
@@ -2034,10 +2472,24 @@ namespace "build" do
2034
2472
  xcodetarget = extconf_iphone['xcodetarget'] if extconf_iphone and extconf_iphone['xcodetarget']
2035
2473
  depfile = extconf_iphone['rebuild_deplist'] if extconf_iphone and extconf_iphone['rebuild_deplist']
2036
2474
 
2475
+
2037
2476
  libes = extconf["libraries"]
2477
+ if extconf_iphone
2478
+ if extconf_iphone["libraries"] != nil
2479
+ libes = extconf_iphone["libraries"]
2480
+ end
2481
+ end
2482
+
2483
+ puts " ±±± extension libes ["+libes.to_s+"] exttype ["+exttype.to_s+"]"
2484
+
2485
+
2038
2486
  if (libes != nil) && (exttype != 'prebuilt')
2039
2487
  libname = libes.first
2040
2488
  prebuiltpath = Dir.glob(File.join(extpath, '**', 'iphone'))
2489
+
2490
+ puts " ±±± extension prebuiltpath ["+prebuiltpath.to_s+"]"
2491
+
2492
+
2041
2493
  if prebuiltpath != nil && prebuiltpath.count > 0
2042
2494
 
2043
2495
  print_timestamp('build extension "'+ext+'" START')
@@ -2058,7 +2510,7 @@ namespace "build" do
2058
2510
  cp libpath, libsimpath
2059
2511
  rm_f libpath
2060
2512
 
2061
- ENV["ARCHS"] = nil
2513
+ ENV["ARCHS"] = "arm64 arm64e armv7 armv7s"
2062
2514
  ENV["SDK_NAME"] = devsdk
2063
2515
  build_extension_lib(extpath, devsdk, prebuiltpath, xcodeproject, xcodetarget, depfile)
2064
2516
  cp libpath, libdevpath
@@ -2091,6 +2543,8 @@ namespace "build" do
2091
2543
  end
2092
2544
  end
2093
2545
  end
2546
+ print_timestamp('build extension libs FINISH')
2547
+
2094
2548
 
2095
2549
 
2096
2550
  end
@@ -2155,7 +2609,7 @@ namespace "build" do
2155
2609
  rm_rf 'build'
2156
2610
  rm_rf target_lib
2157
2611
 
2158
- args = ['build', '-target', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject, '-quiet']
2612
+ args = ['build', '-scheme', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject, '-quiet']
2159
2613
 
2160
2614
  additional_string = ''
2161
2615
  if simulator
@@ -2363,8 +2817,14 @@ namespace "build" do
2363
2817
 
2364
2818
  #[build:iphone:setup_xcode_project]
2365
2819
  desc "make/change generated XCode project for build application"
2366
- task :setup_xcode_project => ["config:iphone"] do
2820
+ task :setup_xcode_project, [:use_temp_keychain] do |t, args|
2367
2821
  print_timestamp('build:iphone:setup_xcode_project START')
2822
+
2823
+ args.with_defaults(:use_temp_keychain => "do_not_use_temp_keychain")
2824
+ $use_temp_keychain = args[:use_temp_keychain] == "use_temp_keychain"
2825
+
2826
+ Rake::Task['config:iphone'].invoke
2827
+
2368
2828
  appname = $app_config["name"] ? $app_config["name"] : "rhorunner"
2369
2829
  appname_fixed = appname.split(/[^a-zA-Z0-9]/).map { |w| w }.join("")
2370
2830
 
@@ -2398,7 +2858,7 @@ namespace "build" do
2398
2858
  rm_rf File.join('project','iphone','toremoved')
2399
2859
  rm_rf File.join('project','iphone','toremovef')
2400
2860
  end
2401
-
2861
+
2402
2862
  update_xcode_project_files_by_capabilities
2403
2863
 
2404
2864
  else
@@ -2531,7 +2991,9 @@ namespace "build" do
2531
2991
  end
2532
2992
 
2533
2993
  update_plist_block($app_path + "/project/iphone/Info.plist") do |hash|
2534
- hash['UIApplicationExitsOnSuspend'] = on_suspend_value
2994
+ if !(on_suspend.nil?)
2995
+ hash['UIApplicationExitsOnSuspend'] = on_suspend_value
2996
+ end
2535
2997
  end
2536
2998
 
2537
2999
  #icon_has_gloss_effect = $app_config["iphone"]["IconHasGlossEffect"] unless $app_config["iphone"]["IconHasGlossEffect"].nil?
@@ -2555,7 +3017,7 @@ namespace "build" do
2555
3017
  #chdir $config["build"]["iphonepath"]
2556
3018
  chdir File.join($app_path, "project","iphone")
2557
3019
 
2558
- args = ['build', '-target', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk, '-project', appname_project, '-quiet']
3020
+ args = ['build', '-scheme', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk, '-project', appname_project, '-quiet']
2559
3021
 
2560
3022
  additional_string = ''
2561
3023
  if $sdk =~ /iphonesimulator/
@@ -3181,6 +3643,9 @@ namespace "clean" do
3181
3643
 
3182
3644
  iphone_project_folder = File.join($app_path, "project","iphone")
3183
3645
 
3646
+ iphone_build_folder = File.join(iphone_project_folder,"build")
3647
+ rm_rf iphone_build_folder if File.exists? iphone_build_folder
3648
+
3184
3649
  appname = $app_config["name"] ? $app_config["name"] : "rhorunner"
3185
3650
  appname_fixed = appname.split(/[^a-zA-Z0-9]/).map { |w| w }.join("")
3186
3651
  appname_project = appname_fixed.slice(0, 1).capitalize + appname_fixed.slice(1..-1) + ".xcodeproj"
@@ -3190,7 +3655,7 @@ namespace "clean" do
3190
3655
 
3191
3656
  chdir iphone_project_folder
3192
3657
 
3193
- args = ['clean', '-target', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk, '-project', appname_project, '-quiet']
3658
+ args = ['clean', '-scheme', 'rhorunner', '-configuration', $configuration, '-sdk', $sdk, '-project', appname_project, '-quiet']
3194
3659
  if RUBY_PLATFORM =~ /(win|w)32$/
3195
3660
  else
3196
3661
  ret = IPhoneBuild.run_and_trace($xcodebuild,args,{:rootdir => $startdir})
@@ -3286,9 +3751,9 @@ namespace "clean" do
3286
3751
 
3287
3752
  rm_rf 'build'
3288
3753
 
3289
- args = ['clean', '-target', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject]
3754
+ args = ['clean', '-scheme', xcodetarget, '-configuration', configuration, '-sdk', sdk, '-project', xcodeproject]
3290
3755
 
3291
- additional_string = ''
3756
+ additional_string = ' ARCHS="arm64 arm64e armv7 armv7s"'
3292
3757
  if simulator
3293
3758
  # args << '-arch'
3294
3759
  # args << 'i386'
@@ -3328,7 +3793,7 @@ namespace "clean" do
3328
3793
  #ENV["TARGET_TEMP_DIR"] ||= target_dir
3329
3794
  ENV["TEMP_FILES_DIR"] ||= ENV["TARGET_TEMP_DIR"]
3330
3795
 
3331
- ENV["ARCHS"] ||= simulator ? "i386 x86_64" : "armv7 armv7s arm64"
3796
+ ENV["ARCHS"] ||= simulator ? "i386 x86_64" : "arm64 arm64e armv7 armv7s"
3332
3797
  ENV["RHO_ROOT"] = $startdir
3333
3798
 
3334
3799
  # added by dmitrys
@@ -3445,10 +3910,17 @@ namespace "device" do
3445
3910
  namespace "iphone" do
3446
3911
  # device:iphone:production
3447
3912
  desc "Builds and signs iphone for production"
3448
- task :production => ["config:iphone", "build:iphone:rhodes"] do
3913
+ task :production, [:use_temp_keychain] do |t, args|
3449
3914
  print_timestamp('device:iphone:production START')
3450
3915
  #copy build results to app folder
3451
3916
 
3917
+ args.with_defaults(:use_temp_keychain => "do_not_use_temp_keychain")
3918
+ $use_temp_keychain = args[:use_temp_keychain] == "use_temp_keychain"
3919
+
3920
+ Rake::Task['config:iphone'].invoke
3921
+ Rake::Task['build:iphone:rhodes'].invoke
3922
+
3923
+
3452
3924
  app_path = File.join($app_path, 'bin', 'target', 'iOS', $sdk, $configuration)
3453
3925
 
3454
3926
  iphone_path = File.join($app_path, "/project/iphone")
@@ -3776,7 +4248,7 @@ namespace "device" do
3776
4248
 
3777
4249
  File.open(entitlements, 'w') do |f|
3778
4250
  f.puts "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
3779
- f.puts "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
4251
+ f.puts "<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"https://www.apple.com/DTDs/PropertyList-1.0.dtd\">"
3780
4252
  f.puts "<plist version=\"1.0\">"
3781
4253
  f.puts "<dict>"
3782
4254
  f.puts "<key>aps-environment</key>"