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
@@ -170,6 +170,19 @@ void CSystemImplBase::setLocalServerPort( int value, CMethodResult& oResult)
170
170
  //Local port can be set only in confuguration file
171
171
  }
172
172
 
173
+
174
+ void CSystemImplBase::getRubyLocalServerURL(CMethodResult& oResult)
175
+ {
176
+ oResult.set( RHODESAPP().getRubyHomeURL() );
177
+ }
178
+
179
+ void CSystemImplBase::setRubyLocalServerURL( const rho::String& value, CMethodResult& oResult)
180
+ {
181
+ //Local port can be set only in confuguration file
182
+ }
183
+
184
+
185
+
173
186
  void CSystemImplBase::getNodejsServerPort(CMethodResult& oResult)
174
187
  {
175
188
  oResult.set( atoi(RHODESAPP().getNodeJSListeningPort()) );
@@ -19,6 +19,8 @@ public:
19
19
  virtual void getIsSymbolDevice(CMethodResult& oResult);
20
20
  virtual void getLocalServerPort(CMethodResult& oResult);
21
21
  virtual void setLocalServerPort( int value, CMethodResult& oResult);
22
+ virtual void getRubyLocalServerURL(CMethodResult& oResult);
23
+ virtual void setRubyLocalServerURL( const rho::String& value, CMethodResult& oResult);
22
24
  virtual void getNodejsServerPort(CMethodResult& oResult);
23
25
  virtual void setNodejsServerPort( int value, CMethodResult& oResult);
24
26
  virtual void getFreeServerPort(rho::apiGenerator::CMethodResult& oResult);
@@ -174,6 +174,9 @@ Be sure to review the [Ruby API Usage](/guide/api_ruby) guide for important info
174
174
  <PROPERTY name="localServerPort" type="INTEGER" default="8080" readOnly="true">
175
175
  <DESC>Port of the local (embedded) HTTP server. This parameter is mainly for debug purposes. If not specified, the platform will detect a free port on the device and use that one.</DESC>
176
176
  </PROPERTY>
177
+ <PROPERTY name="RubyLocalServerURL" type="STRING" readOnly="true">
178
+ <DESC>Local server full URL prefix://ip:port</DESC>
179
+ </PROPERTY>
177
180
  <PROPERTY name="NodejsServerPort" type="INTEGER" default="3000" readOnly="true">
178
181
  <DESC>Port of the local (embedded) Node.js HTTP server if it started (only for Node.js type applications).</DESC>
179
182
  </PROPERTY>
@@ -1,2 +1,2 @@
1
- <activity android:name="com.rho.camera.CameraActivity"/>
2
- <service android:name="com.rho.camera.OrientationListnerService"/>
1
+ <activity android:name="com.rho.camera.CameraActivity" android:exported='false'/>
2
+ <service android:name="com.rho.camera.OrientationListnerService" android:exported='false'/>
@@ -1,5 +1,5 @@
1
1
  <provider
2
- android:name="androidx.core.content.FileProvider"
2
+ android:name="com.rho.mediacapture.RhoCameraFileProvider"
3
3
  android:authorities="<%= @appPackageName %>.fileprovider"
4
4
  android:exported="false"
5
5
  android:grantUriPermissions="true">
@@ -1,4 +1,5 @@
1
1
  ext/platform/android/src/com/rho/mediacapture/RhoListener.java
2
+ ext/platform/android/src/com/rho/mediacapture/RhoCameraFileProvider.java
2
3
  ext/platform/android/generated/src/com/rho/camera/ICamera.java
3
4
  ext/platform/android/generated/src/com/rho/camera/ICameraSingleton.java
4
5
  ext/platform/android/generated/src/com/rho/camera/ICameraFactory.java
@@ -14,6 +14,7 @@ import java.util.Map;
14
14
  import java.util.concurrent.ExecutorService;
15
15
  import java.util.concurrent.Executors;
16
16
  import java.util.ArrayList;
17
+ import java.util.UUID;
17
18
 
18
19
  import android.annotation.SuppressLint;
19
20
  import android.app.Activity;
@@ -49,7 +50,7 @@ import com.rho.camera.ICameraSingleton;
49
50
 
50
51
  public class CameraObject extends CameraBase implements ICamera{
51
52
  private static final String TAG = CameraObject.class.getSimpleName();
52
- SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_hhmmss");
53
+ private static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_hhmmss");
53
54
 
54
55
  private Camera mCamera = null;
55
56
  private int mCameraUsers;
@@ -189,9 +190,12 @@ public class CameraObject extends CameraBase implements ICamera{
189
190
  }
190
191
  }
191
192
 
193
+ public static String createFileName(){
194
+ return dateFormat.format(new Date(System.currentTimeMillis())) + "_" + UUID.randomUUID().toString();
195
+ }
196
+
192
197
  private File createImageFile() throws IOException {
193
- String timeStamp = dateFormat.format(new Date(System.currentTimeMillis()));
194
- String imageFileName = "JPEG_" + timeStamp + "_";
198
+ String imageFileName = "JPEG_" + createFileName() + "_";
195
199
  File storageDir = RhodesActivity.getContext().getExternalFilesDir(Environment.DIRECTORY_PICTURES);
196
200
  File image = File.createTempFile(imageFileName, ".jpg", storageDir);
197
201
  return image;
@@ -223,7 +227,7 @@ public class CameraObject extends CameraBase implements ICamera{
223
227
  String fileDir = storageDir.getAbsolutePath();
224
228
  String fileName = actualPropertyMap.get(ICameraSingleton.PROPERTY_FILE_NAME);
225
229
  if (fileName == null || fileName.isEmpty()){
226
- fileName = "IMG_" + dateFormat.format(new Date(System.currentTimeMillis()));
230
+ fileName = "IMG_" + createFileName();
227
231
  }
228
232
  String filePath = fileDir + "/" + fileName + ".jpg";
229
233
 
@@ -833,6 +833,14 @@ public static void verifyStoragePermissions() {
833
833
  if (permission != PackageManager.PERMISSION_GRANTED) {
834
834
  ActivityCompat.requestPermissions(RhodesActivity.safeGetInstance(), PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE);
835
835
  }
836
+
837
+ /*int permission = ActivityCompat.checkSelfPermission(RhodesActivity.safeGetInstance(), Manifest.permission.WRITE_EXTERNAL_STORAGE);
838
+ final int REQUEST_EXTERNAL_STORAGE = 1;
839
+ final String[] PERMISSIONS_STORAGE = {Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE};
840
+
841
+ if (permission != PackageManager.PERMISSION_GRANTED) {
842
+ ActivityCompat.requestPermissions(RhodesActivity.safeGetInstance(), PERMISSIONS_STORAGE, REQUEST_EXTERNAL_STORAGE);
843
+ }*/
836
844
  }
837
845
 
838
846
 
@@ -0,0 +1,6 @@
1
+ package com.rho.mediacapture;
2
+
3
+ import androidx.core.content.FileProvider;
4
+
5
+ public class RhoCameraFileProvider extends FileProvider {
6
+ }
@@ -1,6 +1,6 @@
1
1
  QT += core gui widgets multimedia network webkit widgets quick
2
2
  DEFINES += OS_SAILFISH OS_LINUX
3
- CONFIG += sailfishapp c++14 sailfishapp_i18n
3
+ CONFIG += c++14
4
4
 
5
5
 
6
6
  TARGET = mediacapture
@@ -8,7 +8,7 @@ equals(QT_MAJOR_VERSION, 5) {
8
8
  equals(QT_MINOR_VERSION, 6): {
9
9
  QT += webkit quick
10
10
  DEFINES += OS_SAILFISH OS_LINUX
11
- CONFIG += sailfishapp c++14 sailfishapp_i18n
11
+ CONFIG += auroraapp c++14 auroraapp_i18n
12
12
  }
13
13
  greaterThan(QT_MINOR_VERSION, 7): {
14
14
  QT += webengine webenginecore webenginewidgets multimediawidgets widgets
@@ -0,0 +1,7 @@
1
+ contains files with module API Implementation.
2
+
3
+ Developer should create it - after first generation this folder is empty and this folder do not changed with next generation processes !!!.
4
+
5
+ Developer should make at least <ModuleName>FactorySingleton.m with acees to <ModuleName>Factory interface!
6
+ All other files include base_impl can be removed from project if it wants by developer.
7
+ Default stub generated code placed in stub_impl folder - you can just copy all files from /generated/stub_impl to this folder and implement unemplemented methods.
@@ -10,19 +10,12 @@ isEqual(QT_MAJOR_VERSION, 5):{
10
10
  }
11
11
 
12
12
  equals(QT_MINOR_VERSION, 6) {
13
- DEFINES += ENABLE_Q_WEB_ENGINE
14
-
15
- !contains(DEFINES, ENABLE_Q_WEB_ENGINE) {
16
- QT += webkit
17
- message(Deprecated sailfish webkit enabled)
18
- }
19
- contains(DEFINES, ENABLE_Q_WEB_ENGINE) {
20
- QT += webengine
21
- }
13
+ QT += webkit
14
+ message(Deprecated sailfish webkit enabled)
22
15
 
23
16
  QT += quick multimedia dbus bluetooth
24
17
  DEFINES += OS_SAILFISH OS_LINUX
25
- CONFIG += sailfishapp c++14 sailfishapp_i18n qmlcache
18
+ CONFIG += auroraapp c++14 auroraapp_i18n qmlcache
26
19
  }
27
20
 
28
21
  greaterThan(QT_MINOR_VERSION, 6): {
@@ -1,6 +1,6 @@
1
- QT += core gui widgets multimedia network webkit widgets
1
+ QT += core gui widgets multimedia network webkit quick
2
2
  DEFINES += OS_SAILFISH OS_LINUX
3
- CONFIG += sailfishapp c++14 sailfishapp_i18n
3
+ CONFIG += c++14
4
4
 
5
5
 
6
6
  TARGET = Signature
@@ -1,5 +1,6 @@
1
- platform :ios, '10.0'
2
- #use_frameworks!
1
+ platform :ios, '12.0'
2
+ use_frameworks!
3
+ #use_modular_headers!
3
4
 
4
5
  project 'fcm-push.xcodeproj'
5
6
 
@@ -9,3 +10,15 @@ pod 'Firebase/Messaging'
9
10
 
10
11
  target 'fcm-push' do
11
12
  end
13
+
14
+ post_install do |installer|
15
+ installer.pods_project.targets.each do |target|
16
+ target.build_configurations.each do |config|
17
+ if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
18
+ target.build_configurations.each do |config|
19
+ config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -7,7 +7,7 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- B1618C73C1AFDF2D84EDF1B3 /* libPods-fcm-push.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 96A61BE3E184A0E6B57CF9D2 /* libPods-fcm-push.a */; };
10
+ DE3320874BA7A270A0ADF5E8 /* Pods_fcm_push.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A4AB037FE0CB3EB218E130A /* Pods_fcm_push.framework */; };
11
11
  FAC155E7145855CF0016F3BD /* applePush_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = FAD45FD51225FED600141873 /* applePush_Prefix.pch */; };
12
12
  FAC155EE145855CF0016F3BD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
13
13
  FAC155EF145855CF0016F3BD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAD4602C12260A8500141873 /* UIKit.framework */; };
@@ -19,8 +19,8 @@
19
19
  /* End PBXBuildFile section */
20
20
 
21
21
  /* Begin PBXFileReference section */
22
+ 4A4AB037FE0CB3EB218E130A /* Pods_fcm_push.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_fcm_push.framework; sourceTree = BUILT_PRODUCTS_DIR; };
22
23
  4CDA3BB94718F541853D0BC4 /* Pods-fcm-push.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-fcm-push.debug.xcconfig"; path = "Target Support Files/Pods-fcm-push/Pods-fcm-push.debug.xcconfig"; sourceTree = "<group>"; };
23
- 96A61BE3E184A0E6B57CF9D2 /* libPods-fcm-push.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-fcm-push.a"; sourceTree = BUILT_PRODUCTS_DIR; };
24
24
  AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
25
25
  C4D0AD1B4A0521913C12576B /* Pods-fcm-push.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-fcm-push.release.xcconfig"; path = "Target Support Files/Pods-fcm-push/Pods-fcm-push.release.xcconfig"; sourceTree = "<group>"; };
26
26
  FAC155F3145855CF0016F3BD /* libfcm-push.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libfcm-push.a"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -40,7 +40,7 @@
40
40
  files = (
41
41
  FAC155EE145855CF0016F3BD /* Foundation.framework in Frameworks */,
42
42
  FAC155EF145855CF0016F3BD /* UIKit.framework in Frameworks */,
43
- B1618C73C1AFDF2D84EDF1B3 /* libPods-fcm-push.a in Frameworks */,
43
+ DE3320874BA7A270A0ADF5E8 /* Pods_fcm_push.framework in Frameworks */,
44
44
  );
45
45
  runOnlyForDeploymentPostprocessing = 0;
46
46
  };
@@ -72,7 +72,7 @@
72
72
  children = (
73
73
  AACBBE490F95108600F1A2B1 /* Foundation.framework */,
74
74
  FAD4602C12260A8500141873 /* UIKit.framework */,
75
- 96A61BE3E184A0E6B57CF9D2 /* libPods-fcm-push.a */,
75
+ 4A4AB037FE0CB3EB218E130A /* Pods_fcm_push.framework */,
76
76
  );
77
77
  name = Frameworks;
78
78
  sourceTree = "<group>";
@@ -99,7 +99,6 @@
99
99
  4CDA3BB94718F541853D0BC4 /* Pods-fcm-push.debug.xcconfig */,
100
100
  C4D0AD1B4A0521913C12576B /* Pods-fcm-push.release.xcconfig */,
101
101
  );
102
- name = Pods;
103
102
  path = Pods;
104
103
  sourceTree = "<group>";
105
104
  };
@@ -340,7 +339,7 @@
340
339
  ../../../../../lib/commonAPI/coreapi/ext/shared,
341
340
  );
342
341
  INSTALL_PATH = /usr/local/lib;
343
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
342
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
344
343
  MACOSX_DEPLOYMENT_TARGET = 10.5;
345
344
  PRODUCT_NAME = "fcm-push";
346
345
  SDKROOT = iphoneos;
@@ -387,7 +386,7 @@
387
386
  ../../../../../lib/commonAPI/coreapi/ext/shared,
388
387
  );
389
388
  INSTALL_PATH = /usr/local/lib;
390
- IPHONEOS_DEPLOYMENT_TARGET = 9.0;
389
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
391
390
  MACOSX_DEPLOYMENT_TARGET = 10.5;
392
391
  PRODUCT_NAME = "fcm-push";
393
392
  SDKROOT = iphoneos;
@@ -210,10 +210,11 @@ public class Nfc extends AbstractRhoListener implements IRhoListener {
210
210
  IntentFilter[] filters = new IntentFilter[1];
211
211
  filters[0] = new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
212
212
 
213
+ int flags = PendingIntent.FLAG_IMMUTABLE;
213
214
  PendingIntent intent =
214
215
  PendingIntent.getActivity(activity, 0,
215
216
  new Intent(activity, activity.getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),
216
- 0);
217
+ flags);
217
218
 
218
219
  nfcAdapter.enableForegroundDispatch(activity, intent, null, null);
219
220
  if (ourP2PNdefMessage != null) {
@@ -18,7 +18,7 @@ equals(QT_MAJOR_VERSION, 5) {
18
18
  equals(QT_MINOR_VERSION, 6): {
19
19
  QT += webkit widgets
20
20
  DEFINES += OS_SAILFISH OS_LINUX
21
- CONFIG += sailfishapp c++14 sailfishapp_i18n
21
+ CONFIG += auroraapp c++14 auroraapp_i18n
22
22
  }
23
23
  greaterThan(QT_MINOR_VERSION, 7): {
24
24
  QT += webengine webenginecore webenginewidgets multimediawidgets
@@ -58,6 +58,7 @@ extern "C" {
58
58
  enum rho_java_class_t {
59
59
  #define RHODES_DEFINE_JAVA_CLASS(x, name) x,
60
60
  #include "rhojava.inc"
61
+ #include "rhojava_extra.inc"
61
62
  #undef RHODES_DEFINE_JAVA_CLASS
62
63
  };
63
64
 
@@ -1943,6 +1943,10 @@ RHO_GLOBAL int flock(int fd, int operation)
1943
1943
  RHO_NOT_IMPLEMENTED;
1944
1944
  }
1945
1945
 
1946
+ RHO_GLOBAL int tau_ioctl(int fd, unsigned long request, void* p) {
1947
+ return real_ioctl(fd, request, p);
1948
+ }
1949
+
1946
1950
  RHO_GLOBAL int ioctl(int fd, int command, ...)
1947
1951
  {
1948
1952
  RHO_LOG("ioctl: fd %d, command: %d", fd, command);
@@ -0,0 +1,5 @@
1
+ <vector android:height="24dp" android:tint="#40FF00"
2
+ android:viewportHeight="24" android:viewportWidth="24"
3
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4
+ <path android:fillColor="#FFFFFF" android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z"/>
5
+ </vector>
@@ -0,0 +1,5 @@
1
+ <vector android:height="24dp" android:tint="#40FF00"
2
+ android:viewportHeight="24" android:viewportWidth="24"
3
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4
+ <path android:fillColor="#FFFFFF" android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z"/>
5
+ </vector>
@@ -0,0 +1,5 @@
1
+ <vector android:height="24dp" android:tint="#FF0000"
2
+ android:viewportHeight="24" android:viewportWidth="24"
3
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4
+ <path android:fillColor="#FFFFFF" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
5
+ </vector>
@@ -0,0 +1,5 @@
1
+ <vector android:height="24dp" android:tint="#FF0000"
2
+ android:viewportHeight="24" android:viewportWidth="24"
3
+ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
4
+ <path android:fillColor="#FFFFFF" android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
5
+ </vector>
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <LinearLayout
3
+ xmlns:android="http://schemas.android.com/apk/res/android"
4
+ xmlns:app="http://schemas.android.com/apk/res-auto"
5
+ xmlns:tools="http://schemas.android.com/tools"
6
+ android:layout_width="match_parent"
7
+ android:layout_height="match_parent"
8
+ android:orientation="vertical"
9
+ android:background="#FFFFFF"
10
+ android:id="@+id/overlayLayout">
11
+
12
+ <androidx.constraintlayout.widget.ConstraintLayout
13
+ android:layout_width="match_parent"
14
+ android:layout_height="match_parent">
15
+
16
+ <EditText
17
+ android:id="@+id/textView"
18
+ android:layout_width="wrap_content"
19
+ android:layout_height="wrap_content"
20
+ android:inputType="text"
21
+ android:text="TextView" />
22
+
23
+ <TextView
24
+ android:id="@+id/accessibilityStatusTv"
25
+ android:layout_width="wrap_content"
26
+ android:layout_height="wrap_content"
27
+ android:text="Overlay mode" />
28
+
29
+ <Button
30
+ android:id="@+id/stopOverlay"
31
+ android:layout_width="wrap_content"
32
+ android:layout_height="wrap_content"
33
+ android:text="Stop overlay"
34
+ android:visibility="visible" />
35
+
36
+
37
+ </androidx.constraintlayout.widget.ConstraintLayout>
38
+
39
+ </LinearLayout>