Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Consoles: Relative URL support in console app config and improved error handling (#669)

Michael Rademaker9097570999a1
diff --git a/console/android/GenericApp/app/build.gradle b/console/android/GenericApp/app/build.gradle
index 034dd1e8e..b70cc079e 100644
--- a/console/android/GenericApp/app/build.gradle
+++ b/console/android/GenericApp/app/build.gradle
@@ -3,15 +3,15 @@ apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
android {
- compileSdkVersion 31
- buildToolsVersion "30.0.3"
+ compileSdkVersion 32
+ buildToolsVersion "32.0.0"
defaultConfig {
applicationId "io.openremote.app"
minSdkVersion 25
- targetSdkVersion 31
- versionCode 28
- versionName "1.0.7"
+ targetSdkVersion 32
+ versionCode 31
+ versionName "1.0.10"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -41,9 +41,9 @@ dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
- implementation 'androidx.preference:preference-ktx:1.1.1'
+ implementation 'androidx.preference:preference-ktx:1.2.0'
implementation "com.google.android.gms:play-services-location:19.0.1"
- implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8"
+ implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1"
implementation platform('com.google.firebase:firebase-bom:26.0.0')
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.android.material:material:1.5.0'
diff --git a/console/android/GenericApp/app/src/main/AndroidManifest.xml b/console/android/GenericApp/app/src/main/AndroidManifest.xml
index 79a85e9f6..dfbe3122e 100644
--- a/console/android/GenericApp/app/src/main/AndroidManifest.xml
+++ b/console/android/GenericApp/app/src/main/AndroidManifest.xml
@@ -33,10 +33,10 @@
<activity
android:name=".ui.SplashActivity"
android:exported="true"
- android:label="@string/app_name">
+ android:label="@string/app_name"
+ android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
-
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
@@ -47,11 +47,17 @@
<activity
android:name=".ui.ProjectActivity"
android:exported="true"
- android:label="@string/title_activity_project" />
- <activity android:name="io.openremote.orlib.ui.OrMainActivity" />
- <activity android:name="io.openremote.orlib.ui.OrPrivacyPolicyActivity" />
+ android:label="@string/title_activity_project"
+ android:screenOrientation="portrait" />
+ <activity
+ android:name="io.openremote.orlib.ui.OrMainActivity"
+ android:screenOrientation="portrait" />
+ <activity
+ android:name="io.openremote.orlib.ui.OrPrivacyPolicyActivity"
+ android:screenOrientation="portrait" />
- <service android:name="io.openremote.orlib.service.ORFirebaseMessagingService"
+ <service
+ android:name="io.openremote.orlib.service.ORFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
@@ -59,7 +65,8 @@
</service>
<service android:name="io.openremote.orlib.service.ORMessagingActionService" />
- <receiver android:name="io.openremote.orlib.service.GeofenceBootCompleteReceiver"
+ <receiver
+ android:name="io.openremote.orlib.service.GeofenceBootCompleteReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
diff --git a/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/ProjectActivity.kt b/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/ProjectActivity.kt
index 4f3224613..40abd6db9 100644
--- a/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/ProjectActivity.kt
+++ b/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/ProjectActivity.kt
@@ -59,6 +59,7 @@ class ProjectActivity : Activity() {
sharedPreferences?.edit()?.putString("realm", realm)?.apply()
val intent = Intent(this@ProjectActivity, OrMainActivity::class.java)
intent.putExtra(OrMainActivity.APP_CONFIG_KEY, jacksonObjectMapper().writeValueAsString(appConfig))
+ intent.putExtra(OrMainActivity.BASE_URL_KEY, host)
startActivity(intent)
finish()
} else {
diff --git a/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/SplashActivity.kt b/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/SplashActivity.kt
index bfcacbf48..2cee8f953 100644
--- a/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/SplashActivity.kt
+++ b/console/android/GenericApp/app/src/main/java/io/openremote/app/ui/SplashActivity.kt
@@ -9,7 +9,6 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import io.openremote.app.databinding.ActivitySplashBinding
import io.openremote.orlib.network.ApiManager
import io.openremote.orlib.ui.OrMainActivity
-import io.openremote.orlib.ui.OrMainActivity.Companion.APP_CONFIG_KEY
import io.openremote.orlib.ui.OrPrivacyPolicyActivity
class SplashActivity : Activity() {
@@ -44,16 +43,13 @@ class SplashActivity : Activity() {
val realm = sharedPreferences!!.getString("realm", null)
if (!host.isNullOrBlank() && !realm.isNullOrBlank()) {
- val url = host.plus("/api/${realm}")
+ val url = host.plus("/api/${realm}")
val apiManager = ApiManager(url)
apiManager.getAppConfig(realm) { statusCode, appConfig, error ->
if (statusCode in 200..299) {
val intent = Intent(this@SplashActivity, OrMainActivity::class.java)
- intent.putExtra(
- APP_CONFIG_KEY, jacksonObjectMapper().writeValueAsString(
- appConfig
- )
- )
+ intent.putExtra(OrMainActivity.APP_CONFIG_KEY, jacksonObjectMapper().writeValueAsString(appConfig))
+ intent.putExtra(OrMainActivity.BASE_URL_KEY, host)
startActivity(intent)
finish()
} else {
diff --git a/console/android/GenericApp/app/src/main/res/values/strings.xml b/console/android/GenericApp/app/src/main/res/values/strings.xml
index 8d10fc7b9..53ada05a1 100644
--- a/console/android/GenericApp/app/src/main/res/values/strings.xml
+++ b/console/android/GenericApp/app/src/main/res/values/strings.xml
@@ -3,6 +3,7 @@
<string name="app_name">OpenRemote</string>
<string name="title_activity_project">Project</string>
<string name="Project">Project</string>
+ <string name="Settings">Settings</string>
<string name="OR_CONSOLE_LOAD_ERROR_URL"></string>
<string name="OR_CONSOLE_LOAD_TIMEOUT">5000</string>
<string name="OR_CONSOLE_IGNORE_PAGE_ERRORS">true</string>
diff --git a/console/android/GenericApp/app/src/main/res/xml/shortcuts.xml b/console/android/GenericApp/app/src/main/res/xml/shortcuts.xml
index 1933795ae..fb91052d4 100644
--- a/console/android/GenericApp/app/src/main/res/xml/shortcuts.xml
+++ b/console/android/GenericApp/app/src/main/res/xml/shortcuts.xml
@@ -5,7 +5,7 @@
android:enabled="true"
android:icon="@drawable/cog"
android:shortcutId="project"
- android:shortcutShortLabel="@string/Project">
+ android:shortcutShortLabel="@string/Settings">
<intent
android:action="android.intent.action.VIEW"
android:targetClass="io.openremote.app.ui.SplashActivity"
diff --git a/console/android/ORLib/src/main/java/io/openremote/orlib/ui/OrMainActivity.kt b/console/android/ORLib/src/main/java/io/openremote/orlib/ui/OrMainActivity.kt
index c2bb0ff0a..57a623719 100644
--- a/console/android/ORLib/src/main/java/io/openremote/orlib/ui/OrMainActivity.kt
+++ b/console/android/ORLib/src/main/java/io/openremote/orlib/ui/OrMainActivity.kt
@@ -57,7 +57,8 @@ open class OrMainActivity : Activity() {
private var geofenceProvider: GeofenceProvider? = null
private var qrScannerProvider: QrScannerProvider? = null
private var consoleId: String? = null
- protected var appConfig: ORAppConfig? = null
+ private var appConfig: ORAppConfig? = null
+ private var baseUrl: String? = null
private var onDownloadCompleteReciever: BroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(ctxt: Context, intent: Intent) {
val action = intent.action
@@ -72,10 +73,22 @@ open class OrMainActivity : Activity() {
get() {
var returnValue: String? = null
+ if (appConfig != null) {
+ if (URLUtil.isValidUrl(appConfig!!.initialUrl)) {
+ return appConfig!!.initialUrl
+ } else {
+ sharedPreferences?.let { pref ->
+ pref.getString("host", null)?.let { host ->
+ return host.plus(appConfig!!.initialUrl)
+ }
+ }
+ }
+ }
+
sharedPreferences?.let { pref ->
- pref.getString("project", null)?.let { projectName ->
- pref.getString("realm", null)?.let { realmName ->
- returnValue = "https://${projectName}.openremote.io/api/$realmName"
+ pref.getString("host", null)?.let { host ->
+ pref.getString("realm", null)?.let { realm ->
+ returnValue = host.plus("/api/${realm}")
}
}
}
@@ -120,15 +133,19 @@ open class OrMainActivity : Activity() {
ORAppConfig::class.java
)
}
+ if (intent.hasExtra(BASE_URL_KEY)) {
+ baseUrl = intent.getStringExtra(BASE_URL_KEY)
+ }
if (appConfig == null) {
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
- val project = sharedPreferences!!.getString("project", null)
+ val host = sharedPreferences!!.getString("host", null)
val realm = sharedPreferences!!.getString("realm", null)
- if (!project.isNullOrBlank() && !realm.isNullOrBlank()) {
- val apiManager = ApiManager("https://${project}.openremote.io/api/$realm")
+ if (!host.isNullOrBlank() && !realm.isNullOrBlank()) {
+ val url = host.plus("/api/${realm}")
+ val apiManager = ApiManager(url)
apiManager.getAppConfig(realm) { statusCode, appConfig, error ->
if (statusCode in 200..299) {
this.appConfig = appConfig
@@ -239,10 +256,6 @@ open class OrMainActivity : Activity() {
LOG.fine("Loading web view: $url")
loadUrl(url)
}
- appConfig != null -> {
- LOG.fine("Loading web view: ${appConfig!!.initialUrl}")
- loadUrl(appConfig!!.initialUrl)
- }
else -> {
var url = clientUrl
val intentUrl = intent.getStringExtra("appUrl")
@@ -311,7 +324,6 @@ open class OrMainActivity : Activity() {
LOG.fine("Initializing web view")
val webAppInterface = WebAppInterface(this)
binding.webView.apply {
- clearCache(true)
addJavascriptInterface(webAppInterface, "MobileInterface")
settings.javaScriptEnabled = true
settings.mixedContentMode = WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE
@@ -336,8 +348,7 @@ open class OrMainActivity : Activity() {
handleError(
errorResponse.statusCode,
errorResponse.reasonPhrase,
- request.url.toString(),
- request.isForMainFrame
+ request.url.toString()
)
}
@@ -356,8 +367,7 @@ open class OrMainActivity : Activity() {
handleError(
error.errorCode,
error.description.toString(),
- request.url.toString(),
- request.isForMainFrame
+ request.url.toString()
)
}
@@ -365,7 +375,7 @@ open class OrMainActivity : Activity() {
progressBar!!.visibility = View.VISIBLE
timeOutRunnable = Runnable {
if (!webViewLoaded) {
- handleError(ERROR_TIMEOUT, "Connection timed out", url, true)
+ handleError(ERROR_TIMEOUT, "Connection timed out", url)
}
}
timeOutHandler = Looper.myLooper()?.let { Handler(it) }
@@ -390,6 +400,11 @@ open class OrMainActivity : Activity() {
startActivity(i)
return true
}
+ if (!request.url.isAbsolute && baseUrl?.isNotEmpty()!!) {
+ view.loadUrl("${baseUrl}/${request.url}")
+ return true
+ }
+
return super.shouldOverrideUrlLoading(view, request)
}
}
@@ -479,33 +494,30 @@ open class OrMainActivity : Activity() {
private fun handleError(
errorCode: Int,
description: String,
- failingUrl: String?,
- isForMainFrame: Boolean
+ failingUrl: String?
) {
LOG.warning("Error requesting '$failingUrl': $errorCode($description)")
-
+ //TODO should we always ignore image errors?
+ if (failingUrl != null && (failingUrl.endsWith("png")
+ || failingUrl.endsWith("jpg")
+ || failingUrl.endsWith("ico"))
+ ) {
+ LOG.info("Ignoring error loading image resource")
+ return
+ }
// This will be the URL loaded into the webview itself (false for images etc. of the main page)
- if (isForMainFrame) {
-
- // Check page load error URL
- val errorUrl = getString(R.string.OR_CONSOLE_LOAD_ERROR_URL)
- if (!TextUtils.isEmpty(errorUrl) && failingUrl != errorUrl) {
- LOG.info("Loading error URL: $errorUrl")
- loadUrl(errorUrl)
- return
- }
+ // Check page load error URL
+ if (clientUrl != null) {
+ loadUrl(clientUrl)
+ Toast.makeText(this, description, Toast.LENGTH_LONG).show()
} else {
- if (java.lang.Boolean.parseBoolean(getString(R.string.OR_CONSOLE_IGNORE_PAGE_ERRORS))) {
- return
- }
-
- //TODO should we always ignore image errors?
- if (failingUrl != null && (failingUrl.endsWith("png")
- || failingUrl.endsWith("jpg")
- || failingUrl.endsWith("ico"))
- ) {
- LOG.info("Ignoring error loading image resource")
- return
+ val launchIntent = packageManager.getLaunchIntentForPackage(packageName)
+ if (launchIntent != null) {
+ startActivity(launchIntent)
+ finish()
+ Toast.makeText(applicationContext, description, Toast.LENGTH_LONG).show()
+ } else {
+ Toast.makeText(this, description, Toast.LENGTH_LONG).show()
}
}
}
@@ -757,10 +769,10 @@ open class OrMainActivity : Activity() {
action.equals("PROVIDER_ENABLE", ignoreCase = true) -> {
qrScannerProvider?.enable(object : QrScannerProvider.ScannerCallback {
- override fun accept(responseData: Map<String, Any>) {
- notifyClient(responseData)
- }
- })
+ override fun accept(responseData: Map<String, Any>) {
+ notifyClient(responseData)
+ }
+ })
}
action.equals("PROVIDER_DISABLE", ignoreCase = true) -> {
val response = qrScannerProvider?.disable()
@@ -842,5 +854,6 @@ open class OrMainActivity : Activity() {
const val PUSH_PROVIDER_DISABLED_KEY = "PushProviderDisabled"
const val CONSOLE_ID_KEY = "consoleId"
const val APP_CONFIG_KEY = "APP_CONFIG_KEY"
+ const val BASE_URL_KEY = "BASE_URL_KEY"
}
}
diff --git a/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj b/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj
index df0bceba2..73fcb7370 100644
--- a/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj
+++ b/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj
@@ -524,7 +524,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = GenericApp/OpenRemote.entitlements;
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 30;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = 4AC88KZHJZ;
ENABLE_PREVIEWS = YES;
@@ -534,7 +534,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.0.5;
+ MARKETING_VERSION = 1.0.6;
PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;
PRODUCT_NAME = OpenRemote;
SWIFT_VERSION = 5.0;
@@ -550,7 +550,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = GenericApp/OpenRemote.entitlements;
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 29;
+ CURRENT_PROJECT_VERSION = 30;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = 4AC88KZHJZ;
ENABLE_PREVIEWS = YES;
@@ -560,7 +560,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.0.5;
+ MARKETING_VERSION = 1.0.6;
PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;
PRODUCT_NAME = OpenRemote;
SWIFT_VERSION = 5.0;
diff --git a/console/iOS/GenericApp/GenericApp/AppDelegate.swift b/console/iOS/GenericApp/GenericApp/AppDelegate.swift
index 1d5d2fc66..24c63f893 100644
--- a/console/iOS/GenericApp/GenericApp/AppDelegate.swift
+++ b/console/iOS/GenericApp/GenericApp/AppDelegate.swift
@@ -73,7 +73,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate {
}
func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
- if shortcutItem.type == "projects" {
+ if shortcutItem.type == "settings" {
let userDefaults = UserDefaults(suiteName: DefaultsKey.groupEntitlement)
userDefaults?.removeObject(forKey: DefaultsKey.projectKey)
userDefaults?.removeObject(forKey: DefaultsKey.realmKey)
diff --git a/console/iOS/GenericApp/GenericApp/Info.plist b/console/iOS/GenericApp/GenericApp/Info.plist
index fd47d2164..03d97536a 100644
--- a/console/iOS/GenericApp/GenericApp/Info.plist
+++ b/console/iOS/GenericApp/GenericApp/Info.plist
@@ -42,9 +42,9 @@
<key>UIApplicationShortcutItemIconFile</key>
<string>ic_settings</string>
<key>UIApplicationShortcutItemTitle</key>
- <string>Projects</string>
+ <string>Settings</string>
<key>UIApplicationShortcutItemType</key>
- <string>projects</string>
+ <string>settings</string>
</dict>
</array>
<key>UIBackgroundModes</key>
diff --git a/console/iOS/ORLib/Media.xcassets/Contents.json b/console/iOS/ORLib/Media.xcassets/Contents.json
new file mode 100644
index 000000000..73c00596a
--- /dev/null
+++ b/console/iOS/ORLib/Media.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}
diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/ic_menu.imageset/Contents.json b/console/iOS/ORLib/Media.xcassets/ic_menu.imageset/Contents.json
similarity index 100%
rename from console/iOS/GenericApp/GenericApp/Assets.xcassets/ic_menu.imageset/Contents.json
rename to console/iOS/ORLib/Media.xcassets/ic_menu.imageset/Contents.json
diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/ic_menu.imageset/menu.png b/console/iOS/ORLib/Media.xcassets/ic_menu.imageset/menu.png
similarity index 100%
rename from console/iOS/GenericApp/GenericApp/Assets.xcassets/ic_menu.imageset/menu.png
rename to console/iOS/ORLib/Media.xcassets/ic_menu.imageset/menu.png
diff --git a/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj b/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj
index 13dc9c16b..9bd274d87 100644
--- a/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj
+++ b/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj
@@ -7,41 +7,51 @@
objects = {
/* Begin PBXBuildFile section */
- 4CC64C4827C3CEE700A2FA4C /* ORLibrary.h in Headers */ = {isa = PBXBuildFile; fileRef = 4CC64C4727C3CEE600A2FA4C /* ORLibrary.h */; settings = {ATTRIBUTES = (Public, ); }; };
- 4CC64C4C27C3CEF400A2FA4C /* GeofenceProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05327143F1F00D705BE /* GeofenceProvider.swift */; };
- 4CC64C4D27C3CEF400A2FA4C /* PushNotificationProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05427143F1F00D705BE /* PushNotificationProvider.swift */; };
- 4CC64C4E27C3CEF400A2FA4C /* StorageProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05227143F1F00D705BE /* StorageProvider.swift */; };
- 4CC64C4F27C3CEF400A2FA4C /* QrScannerProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0E4A11274BE411008CB352 /* QrScannerProvider.swift */; };
- 4CC64C5027C3CEF800A2FA4C /* ORAppConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06227143F1F00D705BE /* ORAppConfig.swift */; };
- 4CC64C5127C3CEF800A2FA4C /* ORLinkConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06327143F1F00D705BE /* ORLinkConfig.swift */; };
- 4CC64C5227C3CEF800A2FA4C /* ORPushNotificationButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06427143F1F00D705BE /* ORPushNotificationButton.swift */; };
- 4CC64C5327C3CEF800A2FA4C /* ORPushNotificationAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06527143F1F00D705BE /* ORPushNotificationAction.swift */; };
- 4CC64C5427C3CEFE00A2FA4C /* ORNotificationResource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06727143F1F00D705BE /* ORNotificationResource.swift */; };
- 4CC64C5527C3CEFE00A2FA4C /* ApiManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06827143F1F00D705BE /* ApiManager.swift */; };
- 4CC64C5627C3CF0200A2FA4C /* ErrorManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05A27143F1F00D705BE /* ErrorManager.swift */; };
- 4CC64C5727C3CF0200A2FA4C /* ORTextInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05727143F1F00D705BE /* ORTextInput.swift */; };
- 4CC64C5827C3CF0200A2FA4C /* QrScannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C2CE793274BB48500416B1A /* QrScannerViewController.swift */; };
- 4CC64C5927C3CF0200A2FA4C /* ScannerOverlayPreviewLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0E4A0F274BDCE0008CB352 /* ScannerOverlayPreviewLayer.swift */; };
- 4CC64C5A27C3CF0200A2FA4C /* ORViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05827143F1F00D705BE /* ORViewController.swift */; };
- 4CC64C5B27C3CF0700A2FA4C /* Window+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05D27143F1F00D705BE /* Window+Utils.swift */; };
- 4CC64C5C27C3CF0700A2FA4C /* Reachability.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05F27143F1F00D705BE /* Reachability.swift */; };
- 4CC64C5D27C3CF0700A2FA4C /* ORLib.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D04A27143EEC00D705BE /* ORLib.swift */; };
- 4CC64C5E27C3CF0700A2FA4C /* UIColor+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05E27143F1F00D705BE /* UIColor+Utils.swift */; };
- 4CC64C5F27C3CF0700A2FA4C /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4CC64C3F27C3CDF500A2FA4C /* Media.xcassets */; };
- 4CC64C6027C3CF0700A2FA4C /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05C27143F1F00D705BE /* Constants.swift */; };
- 4CC64C6127C3CF0700A2FA4C /* String+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06027143F1F00D705BE /* String+Utils.swift */; };
- CCB3ACDD615F70E66F4B4FA6 /* Pods_ORLib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F721AAB633C4A25ACBDD59EE /* Pods_ORLib.framework */; };
+ 4C0E4A10274BDCE0008CB352 /* ScannerOverlayPreviewLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0E4A0F274BDCE0008CB352 /* ScannerOverlayPreviewLayer.swift */; };
+ 4C0E4A12274BE411008CB352 /* QrScannerProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C0E4A11274BE411008CB352 /* QrScannerProvider.swift */; };
+ 4C2CE794274BB48500416B1A /* QrScannerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C2CE793274BB48500416B1A /* QrScannerViewController.swift */; };
+ 4CF5D04B27143EEC00D705BE /* ORLib.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D04A27143EEC00D705BE /* ORLib.swift */; };
+ 4CF5D06927143F2000D705BE /* StorageProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05227143F1F00D705BE /* StorageProvider.swift */; };
+ 4CF5D06A27143F2000D705BE /* GeofenceProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05327143F1F00D705BE /* GeofenceProvider.swift */; };
+ 4CF5D06B27143F2000D705BE /* PushNotificationProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05427143F1F00D705BE /* PushNotificationProvider.swift */; };
+ 4CF5D06D27143F2000D705BE /* ORTextInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05727143F1F00D705BE /* ORTextInput.swift */; };
+ 4CF5D06E27143F2000D705BE /* ORViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05827143F1F00D705BE /* ORViewController.swift */; };
+ 4CF5D07027143F2000D705BE /* ErrorManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05A27143F1F00D705BE /* ErrorManager.swift */; };
+ 4CF5D07127143F2000D705BE /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05C27143F1F00D705BE /* Constants.swift */; };
+ 4CF5D07227143F2000D705BE /* Window+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05D27143F1F00D705BE /* Window+Utils.swift */; };
+ 4CF5D07327143F2000D705BE /* UIColor+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05E27143F1F00D705BE /* UIColor+Utils.swift */; };
+ 4CF5D07427143F2000D705BE /* Reachability.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D05F27143F1F00D705BE /* Reachability.swift */; };
+ 4CF5D07527143F2000D705BE /* String+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06027143F1F00D705BE /* String+Utils.swift */; };
+ 4CF5D07627143F2000D705BE /* ORAppConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06227143F1F00D705BE /* ORAppConfig.swift */; };
+ 4CF5D07727143F2000D705BE /* ORLinkConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06327143F1F00D705BE /* ORLinkConfig.swift */; };
+ 4CF5D07827143F2000D705BE /* ORPushNotificationButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06427143F1F00D705BE /* ORPushNotificationButton.swift */; };
+ 4CF5D07927143F2000D705BE /* ORPushNotificationAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06527143F1F00D705BE /* ORPushNotificationAction.swift */; };
+ 4CF5D07A27143F2000D705BE /* ORNotificationResource.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06727143F1F00D705BE /* ORNotificationResource.swift */; };
+ 4CF5D07B27143F2000D705BE /* ApiManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4CF5D06827143F1F00D705BE /* ApiManager.swift */; };
+ ABD81191A88B3D7A8B2E66B6 /* Pods_ORLib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 41E56A0D7E49334C15A35CB4 /* Pods_ORLib.framework */; };
/* End PBXBuildFile section */
+/* Begin PBXCopyFilesBuildPhase section */
+ 4CF5D04527143EEC00D705BE /* CopyFiles */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "include/$(PRODUCT_NAME)";
+ dstSubfolderSpec = 16;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
/* Begin PBXFileReference section */
- 1C9C6FD79D9EB69E704225EB /* Pods-ORLib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.debug.xcconfig"; path = "../../../michael/Documents/OR/Code/k2/console/iOS/K2/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.debug.xcconfig"; sourceTree = "<group>"; };
- 3883826F504367290A57B876 /* Pods-ORLibrary.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLibrary.debug.xcconfig"; path = "../../../michael/Documents/OR/Code/eindhoven/console/beatrixkanaal/iOS/Beatrixkanaal/Pods/Target Support Files/Pods-ORLibrary/Pods-ORLibrary.debug.xcconfig"; sourceTree = "<group>"; };
+
+ 3F2140D7DCE68D42273B346B /* Pods-ORLib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.debug.xcconfig"; path = "../../../Users/michael/Documents/OR/Code/openremote/console/iOS/GenericApp/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.debug.xcconfig"; sourceTree = "<group>"; };
+ 41E56A0D7E49334C15A35CB4 /* Pods_ORLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ORLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4C0E4A0F274BDCE0008CB352 /* ScannerOverlayPreviewLayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScannerOverlayPreviewLayer.swift; sourceTree = "<group>"; };
4C0E4A11274BE411008CB352 /* QrScannerProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrScannerProvider.swift; sourceTree = "<group>"; };
4C2CE793274BB48500416B1A /* QrScannerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QrScannerViewController.swift; sourceTree = "<group>"; };
- 4CC64C3F27C3CDF500A2FA4C /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = "<group>"; };
- 4CC64C4527C3CEE600A2FA4C /* ORLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ORLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- 4CC64C4727C3CEE600A2FA4C /* ORLibrary.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ORLibrary.h; sourceTree = "<group>"; };
+ 4CC64C3E27C3CDD400A2FA4C /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = "<group>"; };
+ 4CF5D04727143EEC00D705BE /* libORLib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libORLib.a; sourceTree = BUILT_PRODUCTS_DIR; };
4CF5D04A27143EEC00D705BE /* ORLib.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ORLib.swift; sourceTree = "<group>"; };
4CF5D05227143F1F00D705BE /* StorageProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StorageProvider.swift; sourceTree = "<group>"; };
4CF5D05327143F1F00D705BE /* GeofenceProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeofenceProvider.swift; sourceTree = "<group>"; };
@@ -63,14 +73,15 @@
6622F2FF5F233FCAA9475FCC /* Pods-ORLib.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.release.xcconfig"; path = "../../../michael/Documents/OR/Code/k2/console/iOS/K2/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.release.xcconfig"; sourceTree = "<group>"; };
9AE68221D73F2C0743A39184 /* Pods-ORLibrary.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLibrary.release.xcconfig"; path = "../../../michael/Documents/OR/Code/eindhoven/console/beatrixkanaal/iOS/Beatrixkanaal/Pods/Target Support Files/Pods-ORLibrary/Pods-ORLibrary.release.xcconfig"; sourceTree = "<group>"; };
F721AAB633C4A25ACBDD59EE /* Pods_ORLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ORLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
- 4CC64C4227C3CEE600A2FA4C /* Frameworks */ = {
+ 4CF5D04427143EEC00D705BE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- CCB3ACDD615F70E66F4B4FA6 /* Pods_ORLib.framework in Frameworks */,
+ ABD81191A88B3D7A8B2E66B6 /* Pods_ORLib.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -80,28 +91,18 @@
15E46D9A67E43A8180E89721 /* Pods */ = {
isa = PBXGroup;
children = (
- 3883826F504367290A57B876 /* Pods-ORLibrary.debug.xcconfig */,
- 9AE68221D73F2C0743A39184 /* Pods-ORLibrary.release.xcconfig */,
- 1C9C6FD79D9EB69E704225EB /* Pods-ORLib.debug.xcconfig */,
- 6622F2FF5F233FCAA9475FCC /* Pods-ORLib.release.xcconfig */,
+ 3F2140D7DCE68D42273B346B /* Pods-ORLib.debug.xcconfig */,
+ 37A59C1C5EEB5A3027F557D0 /* Pods-ORLib.release.xcconfig */,
);
name = Pods;
path = ../../../../../../../../../Desktop/K2/Pods;
sourceTree = "<group>";
};
- 4CC64C4627C3CEE600A2FA4C /* ORLibrary */ = {
- isa = PBXGroup;
- children = (
- 4CC64C4727C3CEE600A2FA4C /* ORLibrary.h */,
- );
- path = ORLibrary;
- sourceTree = "<group>";
- };
4CF5D03E27143EEB00D705BE = {
isa = PBXGroup;
children = (
+ 4CC64C3E27C3CDD400A2FA4C /* Media.xcassets */,
4CF5D04927143EEC00D705BE /* ORLib */,
- 4CC64C4627C3CEE600A2FA4C /* ORLibrary */,
4CF5D04827143EEC00D705BE /* Products */,
15E46D9A67E43A8180E89721 /* Pods */,
717C35290053DAF6024CFEA7 /* Frameworks */,
@@ -111,7 +112,7 @@
4CF5D04827143EEC00D705BE /* Products */ = {
isa = PBXGroup;
children = (
- 4CC64C4527C3CEE600A2FA4C /* ORLib.framework */,
+ 4CF5D04727143EEC00D705BE /* libORLib.a */,
);
name = Products;
sourceTree = "<group>";
@@ -125,7 +126,6 @@
4CF5D05527143F1F00D705BE /* UI */,
4CF5D05B27143F1F00D705BE /* Utils */,
4CF5D04A27143EEC00D705BE /* ORLib.swift */,
- 4CC64C3F27C3CDF500A2FA4C /* Media.xcassets */,
);
path = ORLib;
sourceTree = "<group>";
@@ -188,43 +188,31 @@
717C35290053DAF6024CFEA7 /* Frameworks */ = {
isa = PBXGroup;
children = (
- F721AAB633C4A25ACBDD59EE /* Pods_ORLib.framework */,
+ 41E56A0D7E49334C15A35CB4 /* Pods_ORLib.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
-/* Begin PBXHeadersBuildPhase section */
- 4CC64C4027C3CEE600A2FA4C /* Headers */ = {
- isa = PBXHeadersBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4CC64C4827C3CEE700A2FA4C /* ORLibrary.h in Headers */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXHeadersBuildPhase section */
-
/* Begin PBXNativeTarget section */
- 4CC64C4427C3CEE600A2FA4C /* ORLib */ = {
+ 4CF5D04627143EEC00D705BE /* ORLib */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 4CC64C4927C3CEE700A2FA4C /* Build configuration list for PBXNativeTarget "ORLib" */;
+ buildConfigurationList = 4CF5D04E27143EEC00D705BE /* Build configuration list for PBXNativeTarget "ORLib" */;
buildPhases = (
- BF62B0A0A20A43B7967194FA /* [CP] Check Pods Manifest.lock */,
- 4CC64C4027C3CEE600A2FA4C /* Headers */,
- 4CC64C4127C3CEE600A2FA4C /* Sources */,
- 4CC64C4227C3CEE600A2FA4C /* Frameworks */,
- 4CC64C4327C3CEE600A2FA4C /* Resources */,
+ 8FD1291A07546E0F98084666 /* [CP] Check Pods Manifest.lock */,
+ 4CF5D04327143EEC00D705BE /* Sources */,
+ 4CF5D04427143EEC00D705BE /* Frameworks */,
+ 4CF5D04527143EEC00D705BE /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = ORLib;
- productName = ORLibrary;
- productReference = 4CC64C4527C3CEE600A2FA4C /* ORLib.framework */;
- productType = "com.apple.product-type.framework";
+ productName = ORLib;
+ productReference = 4CF5D04727143EEC00D705BE /* libORLib.a */;
+ productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
@@ -235,8 +223,8 @@
LastSwiftUpdateCheck = 1250;
LastUpgradeCheck = 1250;
TargetAttributes = {
- 4CC64C4427C3CEE600A2FA4C = {
- CreatedOnToolsVersion = 13.2.1;
+ 4CF5D04627143EEC00D705BE = {
+ CreatedOnToolsVersion = 12.5.1;
};
};
};
@@ -253,24 +241,13 @@
projectDirPath = "";
projectRoot = "";
targets = (
- 4CC64C4427C3CEE600A2FA4C /* ORLib */,
+ 4CF5D04627143EEC00D705BE /* ORLib */,
);
};
/* End PBXProject section */
-/* Begin PBXResourcesBuildPhase section */
- 4CC64C4327C3CEE600A2FA4C /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 4CC64C5F27C3CF0700A2FA4C /* Media.xcassets in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
/* Begin PBXShellScriptBuildPhase section */
- BF62B0A0A20A43B7967194FA /* [CP] Check Pods Manifest.lock */ = {
+ 8FD1291A07546E0F98084666 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@@ -295,105 +272,37 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
- 4CC64C4127C3CEE600A2FA4C /* Sources */ = {
+ 4CF5D04327143EEC00D705BE /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 4CC64C5127C3CEF800A2FA4C /* ORLinkConfig.swift in Sources */,
- 4CC64C5B27C3CF0700A2FA4C /* Window+Utils.swift in Sources */,
- 4CC64C4C27C3CEF400A2FA4C /* GeofenceProvider.swift in Sources */,
- 4CC64C5527C3CEFE00A2FA4C /* ApiManager.swift in Sources */,
- 4CC64C5427C3CEFE00A2FA4C /* ORNotificationResource.swift in Sources */,
- 4CC64C6127C3CF0700A2FA4C /* String+Utils.swift in Sources */,
- 4CC64C5627C3CF0200A2FA4C /* ErrorManager.swift in Sources */,
- 4CC64C5C27C3CF0700A2FA4C /* Reachability.swift in Sources */,
- 4CC64C4E27C3CEF400A2FA4C /* StorageProvider.swift in Sources */,
- 4CC64C5727C3CF0200A2FA4C /* ORTextInput.swift in Sources */,
- 4CC64C5A27C3CF0200A2FA4C /* ORViewController.swift in Sources */,
- 4CC64C5D27C3CF0700A2FA4C /* ORLib.swift in Sources */,
- 4CC64C5827C3CF0200A2FA4C /* QrScannerViewController.swift in Sources */,
- 4CC64C4F27C3CEF400A2FA4C /* QrScannerProvider.swift in Sources */,
- 4CC64C5227C3CEF800A2FA4C /* ORPushNotificationButton.swift in Sources */,
- 4CC64C4D27C3CEF400A2FA4C /* PushNotificationProvider.swift in Sources */,
- 4CC64C6027C3CF0700A2FA4C /* Constants.swift in Sources */,
- 4CC64C5027C3CEF800A2FA4C /* ORAppConfig.swift in Sources */,
- 4CC64C5927C3CF0200A2FA4C /* ScannerOverlayPreviewLayer.swift in Sources */,
- 4CC64C5327C3CEF800A2FA4C /* ORPushNotificationAction.swift in Sources */,
- 4CC64C5E27C3CF0700A2FA4C /* UIColor+Utils.swift in Sources */,
+ 4CF5D07027143F2000D705BE /* ErrorManager.swift in Sources */,
+ 4CF5D07227143F2000D705BE /* Window+Utils.swift in Sources */,
+ 4C0E4A12274BE411008CB352 /* QrScannerProvider.swift in Sources */,
+ 4CF5D07727143F2000D705BE /* ORLinkConfig.swift in Sources */,
+ 4C2CE794274BB48500416B1A /* QrScannerViewController.swift in Sources */,
+ 4CF5D06E27143F2000D705BE /* ORViewController.swift in Sources */,
+ 4CF5D07327143F2000D705BE /* UIColor+Utils.swift in Sources */,
+ 4CF5D06D27143F2000D705BE /* ORTextInput.swift in Sources */,
+ 4CF5D07A27143F2000D705BE /* ORNotificationResource.swift in Sources */,
+ 4CF5D07827143F2000D705BE /* ORPushNotificationButton.swift in Sources */,
+ 4CF5D06A27143F2000D705BE /* GeofenceProvider.swift in Sources */,
+ 4CF5D06927143F2000D705BE /* StorageProvider.swift in Sources */,
+ 4CF5D07127143F2000D705BE /* Constants.swift in Sources */,
+ 4CF5D07B27143F2000D705BE /* ApiManager.swift in Sources */,
+ 4CF5D04B27143EEC00D705BE /* ORLib.swift in Sources */,
+ 4CF5D06B27143F2000D705BE /* PushNotificationProvider.swift in Sources */,
+ 4CF5D07527143F2000D705BE /* String+Utils.swift in Sources */,
+ 4C0E4A10274BDCE0008CB352 /* ScannerOverlayPreviewLayer.swift in Sources */,
+ 4CF5D07427143F2000D705BE /* Reachability.swift in Sources */,
+ 4CF5D07627143F2000D705BE /* ORAppConfig.swift in Sources */,
+ 4CF5D07927143F2000D705BE /* ORPushNotificationAction.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
- 4CC64C4A27C3CEE700A2FA4C /* Debug */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 1C9C6FD79D9EB69E704225EB /* Pods-ORLib.debug.xcconfig */;
- buildSettings = {
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- DEFINES_MODULE = YES;
- DEVELOPMENT_TEAM = 4AC88KZHJZ;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- GENERATE_INFOPLIST_FILE = YES;
- INFOPLIST_KEY_NSHumanReadableCopyright = "";
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 14.5;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = org.openremote.ORLib;
- PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
- SKIP_INSTALL = YES;
- SUPPORTS_MACCATALYST = NO;
- SWIFT_EMIT_LOC_STRINGS = YES;
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Debug;
- };
- 4CC64C4B27C3CEE700A2FA4C /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 6622F2FF5F233FCAA9475FCC /* Pods-ORLib.release.xcconfig */;
- buildSettings = {
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
- CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
- DEFINES_MODULE = YES;
- DEVELOPMENT_TEAM = 4AC88KZHJZ;
- DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 1;
- DYLIB_INSTALL_NAME_BASE = "@rpath";
- GENERATE_INFOPLIST_FILE = YES;
- INFOPLIST_KEY_NSHumanReadableCopyright = "";
- INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
- IPHONEOS_DEPLOYMENT_TARGET = 14.5;
- LD_RUNPATH_SEARCH_PATHS = (
- "$(inherited)",
- "@executable_path/Frameworks",
- "@loader_path/Frameworks",
- );
- MARKETING_VERSION = 1.0;
- PRODUCT_BUNDLE_IDENTIFIER = org.openremote.ORLib;
- PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
- SKIP_INSTALL = YES;
- SUPPORTS_MACCATALYST = NO;
- SWIFT_EMIT_LOC_STRINGS = YES;
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = "1,2";
- VERSIONING_SYSTEM = "apple-generic";
- VERSION_INFO_PREFIX = "";
- };
- name = Release;
- };
4CF5D04C27143EEC00D705BE /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -512,23 +421,57 @@
};
name = Release;
};
+ 4CF5D04F27143EEC00D705BE /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 3F2140D7DCE68D42273B346B /* Pods-ORLib.debug.xcconfig */;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = 4AC88KZHJZ;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "$(inherited)",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 4CF5D05027143EEC00D705BE /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 37A59C1C5EEB5A3027F557D0 /* Pods-ORLib.release.xcconfig */;
+ buildSettings = {
+ CODE_SIGN_STYLE = Automatic;
+ DEVELOPMENT_TEAM = 4AC88KZHJZ;
+ OTHER_LDFLAGS = (
+ "-ObjC",
+ "$(inherited)",
+ );
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SKIP_INSTALL = YES;
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 4CC64C4927C3CEE700A2FA4C /* Build configuration list for PBXNativeTarget "ORLib" */ = {
+ 4CF5D04227143EEC00D705BE /* Build configuration list for PBXProject "ORLib" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 4CC64C4A27C3CEE700A2FA4C /* Debug */,
- 4CC64C4B27C3CEE700A2FA4C /* Release */,
+ 4CF5D04C27143EEC00D705BE /* Debug */,
+ 4CF5D04D27143EEC00D705BE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 4CF5D04227143EEC00D705BE /* Build configuration list for PBXProject "ORLib" */ = {
+ 4CF5D04E27143EEC00D705BE /* Build configuration list for PBXNativeTarget "ORLib" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 4CF5D04C27143EEC00D705BE /* Debug */,
- 4CF5D04D27143EEC00D705BE /* Release */,
+ 4CF5D04F27143EEC00D705BE /* Debug */,
+ 4CF5D05027143EEC00D705BE /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
diff --git a/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/michael.xcuserdatad/xcschemes/xcschememanagement.plist b/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/michael.xcuserdatad/xcschemes/xcschememanagement.plist
index 9e65c27c9..2c16fafc8 100644
--- a/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/michael.xcuserdatad/xcschemes/xcschememanagement.plist
+++ b/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/michael.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -7,12 +7,7 @@
<key>ORLib.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
- <integer>19</integer>
- </dict>
- <key>ORLibrary.xcscheme_^#shared#^_</key>
- <dict>
- <key>orderHint</key>
- <integer>21</integer>
+ <integer>23</integer>
</dict>
</dict>
</dict>
diff --git a/console/iOS/ORLib/ORLib/UI/ORViewController.swift b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
index 4e33a6207..e1c1b5a2f 100644
--- a/console/iOS/ORLib/ORLib/UI/ORViewController.swift
+++ b/console/iOS/ORLib/ORLib/UI/ORViewController.swift
@@ -233,17 +233,23 @@ open class ORViewcontroller : UIViewController {
let alertView = UIAlertController(title: "Error", message: "Error requesting '\(failingUrl)': \(errorCode) (\(description))", preferredStyle: .alert)
alertView.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
- self.present(alertView, animated: true, completion: nil)
-
if let applicationConfig = appConfig {
+ self.present(alertView, animated: true, completion: nil)
var url = applicationConfig.url
if !url.starts(with: "http") {
url = baseUrl!.appending(url)
}
self.myWebView?.load(URLRequest(url: URL(string: url.stringByURLEncoding()!)!))
+ } else {
+ if self.presentingViewController != nil {
+ self.dismiss(animated: true) {
+ self.presentingViewController!.present(alertView, animated: true, completion: nil)
+ }
+ } else {
+ self.present(alertView, animated: true, completion: nil)
+ }
}
}
-
}
extension ORViewcontroller: UITableViewDelegate {