rhodes 7.5.1 → 7.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +319 -0
- data/README.md +3 -15
- data/Rakefile +3 -0
- data/appveyor.yml +37 -32
- data/azure-pipelines.yml +1 -1
- data/bin/rhodes-setup +22 -8
- data/extensions/emdk3-manager/ext/platform/android/src/com/rho/emdk3/EMDK3Extension.java +14 -5
- data/extensions/instrumentation/ext/platform/android/src/com/rho/instrumentation/Instrumentation.java +29 -15
- data/extensions/rhoconnect-push/ext/rhoconnect-push/platform/android/src/com/rhomobile/rhoelements/ans/ANSManager.java +1 -1
- data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/ElementsCore.java +12 -9
- data/extensions/rhoelementsext/ext/rhoelementsext/platform/android/rhoelements_temp/src/com/rho/rhoelements/graphics/BatteryIndicator.java +2 -2
- data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro +1 -1
- data/lib/commonAPI/barcode/ext/platform/qt/Barcode.pro.erb +2 -2
- data/lib/commonAPI/barcode/ext/platform/qt/src/qzxing/QZXing.pri +9 -21
- data/lib/commonAPI/barcode/ext.yml +1 -0
- data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro +1 -1
- data/lib/commonAPI/bluetooth/ext/platform/qt/Bluetooth.pro.erb +1 -1
- data/lib/commonAPI/bluetooth/ext/platform/qt/src/bluetooth/bluetoothhelper.h +1 -1
- data/lib/commonAPI/coreapi/RhoSystemApi.rb +6 -0
- data/lib/commonAPI/coreapi/ext/Intent.xml +4 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/intent/IntentSingleton.java +6 -0
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/Notification.java +2 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/notification/NotificationScheduler.java +1 -1
- data/lib/commonAPI/coreapi/ext/platform/android/src/com/rho/webview/WebViewSingleton.java +40 -27
- data/lib/commonAPI/coreapi/ext/platform/iphone/cpp_based_impl/SystemImpl.mm +5 -6
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.h +1 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/Intent.m +3 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.h +2 -1
- data/lib/commonAPI/coreapi/ext/platform/iphone/impl/NotificationSingleton.m +10 -0
- data/lib/commonAPI/coreapi/ext/platform/wm/src/IntentImpl.cpp +3 -0
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.cpp +13 -0
- data/lib/commonAPI/coreapi/ext/shared/SystemImplBase.h +2 -0
- data/lib/commonAPI/coreapi/ext/system.xml +3 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationCameraActivity.erb +2 -2
- data/lib/commonAPI/mediacapture/ext/platform/android/ApplicationFileProvider.erb +1 -1
- data/lib/commonAPI/mediacapture/ext/platform/android/ext_java.files +1 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraObject.java +8 -4
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java +8 -0
- data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/mediacapture/RhoCameraFileProvider.java +6 -0
- data/lib/commonAPI/mediacapture/ext/platform/qt/MediaCapture.pro.erb +1 -1
- data/lib/commonAPI/mediacapture/ext/platform/qt/Mediacapture.pro +1 -1
- data/lib/commonAPI/signature/ext/platform/iphone/impl/readme.txt +7 -0
- data/lib/commonAPI/signature/ext/platform/qt/Signature.pro +3 -10
- data/lib/commonAPI/signature/ext/platform/qt/Signature.pro.erb +2 -2
- data/lib/extensions/fcm-push/ext/iphone/Podfile +15 -2
- data/lib/extensions/fcm-push/ext/iphone/fcm-push.xcodeproj/project.pbxproj +6 -7
- data/lib/extensions/nfc/ext/platform/android/src/com/rhomobile/nfc/Nfc.java +2 -1
- data/lib/extensions/serialport/ext/serialport.pro +1 -1
- data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +1 -0
- data/platform/android/Rhodes/jni/src/fileapi.cpp +4 -0
- data/platform/android/Rhodes/res/drawable/baseline_check_24.xml +5 -0
- data/platform/android/Rhodes/res/drawable/baseline_check_240.xml +5 -0
- data/platform/android/Rhodes/res/drawable/baseline_close_24.xml +5 -0
- data/platform/android/Rhodes/res/drawable/baseline_close_240.xml +5 -0
- data/platform/android/Rhodes/res/layout/overlay_layout.xml +39 -0
- data/platform/android/Rhodes/res/layout/perrmission_alert_dialog.xml +267 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/BaseActivity.java +183 -66
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/LocalFileProvider.java +38 -6
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhoFileProvider.java +32 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +529 -89
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +26 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +256 -160
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +14 -3
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +4 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +5 -4
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +79 -38
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +6 -1
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/CallReceiver.java +22 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/IKioskMode.java +11 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/KioskManager.java +18 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyAccessibilityService.java +230 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyNotificationListenerService.java +16 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/MyOverlayService.java +197 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/kioskservices/PermissionManager.java +232 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +34 -8
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/CheckDrawable.java +53 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/permissioncheck/PermissionListGenerate.java +366 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/rhodes.iml +11 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/socket/SSLImpl.java +1 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +782 -41
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputConnectionWrapper.java +146 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoInputListener.java +21 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +92 -32
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/TauWebViewOptions.java +118 -0
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderBase.java +18 -17
- data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/WebSettingsProviderEclairMR1.java +4 -4
- data/platform/android/build/RhodesSRC_build.files +13 -0
- data/platform/android/build/android-repack.rake +8 -1
- data/platform/android/build/android.rake +118 -51
- data/platform/android/build/android_tools.rb +1 -1
- data/platform/android/build/androidcommon.rb +13 -7
- data/platform/android/build/config.yml +4 -1
- data/platform/android/build/manifest_generator.rb +14 -10
- data/platform/android/build/maven_deps_extractor.rb +7 -1
- data/platform/android/build/ndkwrapper.rb +12 -0
- data/platform/android/proguard/proguard-base-rules.pro +5 -0
- data/platform/android/proguard/proguard.jar +0 -0
- data/platform/iphone/Classes/RhoAppBaseLib-Bridging-Header.h +4 -0
- data/platform/iphone/Classes/RhoAppBaseStandaloneLib-Bridging-Header.h +4 -0
- data/platform/iphone/Classes/RhoCryptAESGCM.swift +105 -0
- data/platform/iphone/Classes/RhoUIWebView.h +1 -1
- data/platform/iphone/Classes/RhoUIWebView.m +1 -1
- data/platform/iphone/Classes/RhoWKWebView.h +1 -1
- data/platform/iphone/Classes/RhoWKWebView.mm +32 -4
- data/platform/iphone/Classes/RhoWebView.h +1 -1
- data/platform/iphone/Classes/RhoWebViewFabrique.m +7 -1
- data/platform/iphone/Classes/SimpleMainView.m +5 -5
- data/platform/iphone/Classes/URLProtocol/CRhoURLProtocol.m +21 -10
- data/platform/iphone/Classes/rho/net/IPhoneNetRequest.mm +4 -0
- data/platform/iphone/Framework/RhoApplication/RhoApplication.xcodeproj/project.pbxproj +1 -1
- data/platform/iphone/Framework/Rhodes/Rhodes.xcodeproj/project.pbxproj +1 -1
- data/platform/iphone/RhoAppBaseLib/RhoAppBaseLib.xcodeproj/project.pbxproj +46 -1
- data/platform/iphone/RhoLib/RhoLib.xcodeproj/project.pbxproj +1 -1
- data/platform/iphone/curl/curl.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rbuild/iphone.rake +9 -8
- data/platform/iphone/rhoextlib/rhoextlib.xcodeproj/project.pbxproj +4 -1
- data/platform/iphone/rhorubylib/rhorubylib.xcodeproj/project.pbxproj +1 -1
- data/platform/iphone/rhosynclib/rhosynclib.xcodeproj/project.pbxproj +1 -1
- data/platform/osx/bin/RhoSimulator/RhoSimulator.app.zip +0 -0
- data/platform/sailfish/build/{harbour-SailfishRhodes.pro.erb → SailfishRhodes.pro.erb} +10 -17
- data/platform/sailfish/build/rhodes.pro.erb +7 -17
- data/platform/sailfish/build/rpm/SailfishRhodes.desktop.erb +12 -0
- data/platform/sailfish/build/rpm/SailfishRhodes.erb +2 -0
- data/platform/sailfish/build/rpm/SailfishRhodes.spec.erb +43 -0
- data/platform/sailfish/build/rubylib.pro.erb +29 -29
- data/platform/sailfish/build/sailfish.rake +188 -180
- data/platform/sailfish/keys/regular_cert.pem +14 -0
- data/platform/sailfish/keys/regular_key.pem +4 -0
- data/platform/shared/common/RhodesApp.cpp +33 -9
- data/platform/shared/common/iphone/RhoCryptImpl.mm +130 -54
- data/platform/shared/qt/RhoSimulator.pro +1 -1
- data/platform/shared/qt/rhodes/rhodes.pro +4 -11
- data/platform/shared/qt/sailfish/SailfishRhodes.desktop +3 -4
- data/platform/shared/qt/sailfish/SailfishRhodes.pro +9 -10
- data/platform/shared/qt/sailfish/icons/108x108/108x108.png +0 -0
- data/platform/shared/qt/sailfish/privileges/sailfishrhodes +2 -0
- data/platform/shared/qt/sailfish/qml/pages/FirstPageWK.qml +7 -11
- data/platform/shared/qt/sailfish/qml/{harbour-sailfishrhodes.qml → sailfishrhodes.qml} +1 -1
- data/platform/shared/qt/sailfish/rpm/sailfishrhodes.spec +80 -0
- data/platform/shared/qt/sailfish/rpm/{harbour-sailfishrhodes.yaml → sailfishrhodes.yaml} +2 -2
- data/platform/shared/qt/sailfish/src/QtMainWindow.cpp +1 -1
- data/platform/shared/qt/sailfish/src/QtMainWindow.h +1 -1
- data/platform/shared/qt/sailfish/src/main.cpp +6 -38
- data/platform/shared/qt/sailfish/src/rootdelegate.h +2 -14
- data/platform/shared/ruby/aurora/ruby/config.h +386 -0
- data/platform/shared/ruby/aurora/ruby/constdefs.c +5866 -0
- data/platform/shared/ruby/aurora/ruby/constdefs.h +1788 -0
- data/platform/shared/sqlite/crypto.c +14 -0
- data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
- data/platform/win32/build/rhodes.nsi +3 -3
- data/platform/win32/build/win32.rake +1 -1
- data/rakefile.rb +3 -0
- data/res/build-tools/iphonesim/build/Release/iphonesim_8 +4 -4
- data/res/generators/templates/application/AndroidManifest.erb +26 -5
- data/res/generators/templates/application/build.yml +14 -10
- data/res/generators/templates/application/resources/android/res/xml/provider_paths.xml +4 -0
- data/res/generators/templates/application/rhoconfig.txt +10 -1
- data/res/generators/templates/iphone_project/Bremen8.xcodeproj/project.pbxproj +24 -1
- data/res/generators/templates/iphone_project/Classes/SimpleSwiftClass.swift +20 -0
- data/res/generators/templates/iphone_project/Classes/rhorunner-Bridging-Header.h +4 -0
- data/rhobuild.yml.example +3 -3
- data/rhodes.gemspec +4 -2
- data/version +1 -1
- metadata +81 -26
- data/platform/sailfish/build/rho_build.cmd.erb +0 -14
- data/platform/sailfish/build/rho_clean.cmd.erb +0 -14
- data/platform/sailfish/build/rho_deploy.cmd.erb +0 -15
- data/platform/sailfish/build/rho_rpm.cmd.erb +0 -14
- data/platform/sailfish/build/rho_rpmvalidation.cmd.erb +0 -14
- data/platform/sailfish/build/rpm/harbour-SailfishRhodes.desktop.erb +0 -7
- data/platform/sailfish/build/rpm/harbour-SailfishRhodes.erb +0 -2
- data/platform/sailfish/build/rpm/harbour-SailfishRhodes.yaml.erb +0 -37
- data/platform/shared/qt/sailfish/harbour-sailfishrhodes.desktop +0 -6
- data/platform/shared/qt/sailfish/icons/108x108/harbour-sailfishrhodes.png +0 -0
- data/platform/shared/qt/sailfish/privileges/harbour-sailfishrhodes +0 -2
- data/platform/shared/qt/sailfish/qml/pages/FirstPageWE.qml +0 -236
- /data/platform/shared/qt/sailfish/icons/128x128/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
- /data/platform/shared/qt/sailfish/icons/172x172/{harbour-sailfishrhodes.png → sailfishrhodes.png} +0 -0
- /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,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
|
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_" +
|
230
|
+
fileName = "IMG_" + createFileName();
|
227
231
|
}
|
228
232
|
String filePath = fileDir + "/" + fileName + ".jpg";
|
229
233
|
|
data/lib/commonAPI/mediacapture/ext/platform/android/src/com/rho/camera/CameraRhoListener.java
CHANGED
@@ -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
|
|
@@ -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 +=
|
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
|
-
|
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 +=
|
18
|
+
CONFIG += auroraapp c++14 auroraapp_i18n qmlcache
|
26
19
|
}
|
27
20
|
|
28
21
|
greaterThan(QT_MINOR_VERSION, 6): {
|
@@ -1,5 +1,6 @@
|
|
1
|
-
platform :ios, '
|
2
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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 =
|
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 =
|
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
|
-
|
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 +=
|
21
|
+
CONFIG += auroraapp c++14 auroraapp_i18n
|
22
22
|
}
|
23
23
|
greaterThan(QT_MINOR_VERSION, 7): {
|
24
24
|
QT += webengine webenginecore webenginewidgets multimediawidgets
|
@@ -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>
|