100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
First start on Generic App
Michael Rademaker372a10e516ec
diff --git a/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj b/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxprojnew file mode 100644index 000000000..ca12abd5a--- /dev/null+++ b/console/iOS/GenericApp/GenericApp.xcodeproj/project.pbxproj@@ -0,0 +1,621 @@+// !$*UTF8*$!+{+ archiveVersion = 1;+ classes = {+ };+ objectVersion = 51;+ objects = {++/* Begin PBXBuildFile section */+ 5952998DA2B50AFF73DDCAE1 /* Pods_NotificationService.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 570B5A477F4AA747A62A45EF /* Pods_NotificationService.framework */; };+ 756FA8BF24545CB0CC18CA6E /* Pods_GenericApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E012F268F107177E6B242E8 /* Pods_GenericApp.framework */; };+ 878D2D0D249A490300011484 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 878D2D0C249A490300011484 /* AppDelegate.swift */; };+ 878D2D0F249A490300011484 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 878D2D0E249A490300011484 /* SceneDelegate.swift */; };+ 878D2D11249A490300011484 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 878D2D10249A490300011484 /* ContentView.swift */; };+ 878D2D13249A490400011484 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 878D2D12249A490400011484 /* Assets.xcassets */; };+ 878D2D16249A490400011484 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 878D2D15249A490400011484 /* Preview Assets.xcassets */; };+ 878D2D19249A490400011484 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 878D2D17249A490400011484 /* LaunchScreen.storyboard */; };+ 878D2D27249A498900011484 /* NotificationService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 878D2D26249A498900011484 /* NotificationService.swift */; };+ 878D2D2B249A498900011484 /* NotificationService.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 878D2D24249A498900011484 /* NotificationService.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };+ 878D2D31249A4D3700011484 /* ORLib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 878D2D30249A4D3700011484 /* ORLib.framework */; };+ 878D2D32249A4D3700011484 /* ORLib.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 878D2D30249A4D3700011484 /* ORLib.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };+ 878D2D36249A50FC00011484 /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 878D2D35249A50FC00011484 /* LoginView.swift */; };+/* End PBXBuildFile section */++/* Begin PBXContainerItemProxy section */+ 878D2D29249A498900011484 /* PBXContainerItemProxy */ = {+ isa = PBXContainerItemProxy;+ containerPortal = 878D2D01249A490300011484 /* Project object */;+ proxyType = 1;+ remoteGlobalIDString = 878D2D23249A498900011484;+ remoteInfo = NotificationService;+ };+/* End PBXContainerItemProxy section */++/* Begin PBXCopyFilesBuildPhase section */+ 878D2D2C249A498900011484 /* Embed App Extensions */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 13;+ files = (+ 878D2D2B249A498900011484 /* NotificationService.appex in Embed App Extensions */,+ );+ name = "Embed App Extensions";+ runOnlyForDeploymentPostprocessing = 0;+ };+ 878D2D33249A4D3700011484 /* Embed Frameworks */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 10;+ files = (+ 878D2D32249A4D3700011484 /* ORLib.framework in Embed Frameworks */,+ );+ name = "Embed Frameworks";+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXCopyFilesBuildPhase section */++/* Begin PBXFileReference section */+ 3B0E05618605D241D5A82AA3 /* Pods-NotificationService.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationService.debug.xcconfig"; path = "Target Support Files/Pods-NotificationService/Pods-NotificationService.debug.xcconfig"; sourceTree = "<group>"; };+ 46FD90D41833A0E2C4C7DDA6 /* Pods-NotificationService.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NotificationService.release.xcconfig"; path = "Target Support Files/Pods-NotificationService/Pods-NotificationService.release.xcconfig"; sourceTree = "<group>"; };+ 4E012F268F107177E6B242E8 /* Pods_GenericApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GenericApp.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 570B5A477F4AA747A62A45EF /* Pods_NotificationService.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NotificationService.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 878D2D09249A490300011484 /* OpenRemote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenRemote.app; sourceTree = BUILT_PRODUCTS_DIR; };+ 878D2D0C249A490300011484 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };+ 878D2D0E249A490300011484 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };+ 878D2D10249A490300011484 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };+ 878D2D12249A490400011484 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };+ 878D2D15249A490400011484 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };+ 878D2D18249A490400011484 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };+ 878D2D1A249A490400011484 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };+ 878D2D24249A498900011484 /* NotificationService.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NotificationService.appex; sourceTree = BUILT_PRODUCTS_DIR; };+ 878D2D26249A498900011484 /* NotificationService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationService.swift; sourceTree = "<group>"; };+ 878D2D28249A498900011484 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };+ 878D2D30249A4D3700011484 /* ORLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = ORLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 878D2D35249A50FC00011484 /* LoginView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginView.swift; sourceTree = "<group>"; };+ A994B3D3E3853BA4D16AA5A8 /* Pods-GenericApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GenericApp.debug.xcconfig"; path = "Target Support Files/Pods-GenericApp/Pods-GenericApp.debug.xcconfig"; sourceTree = "<group>"; };+ D61E1E0434CC1446EAF20BA0 /* Pods-GenericApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GenericApp.release.xcconfig"; path = "Target Support Files/Pods-GenericApp/Pods-GenericApp.release.xcconfig"; sourceTree = "<group>"; };+/* End PBXFileReference section */++/* Begin PBXFrameworksBuildPhase section */+ 878D2D06249A490300011484 /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 756FA8BF24545CB0CC18CA6E /* Pods_GenericApp.framework in Frameworks */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+ 878D2D21249A498900011484 /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 5952998DA2B50AFF73DDCAE1 /* Pods_NotificationService.framework in Frameworks */,+ 878D2D31249A4D3700011484 /* ORLib.framework in Frameworks */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXFrameworksBuildPhase section */++/* Begin PBXGroup section */+ 6E621588C821060939F236DC /* Pods */ = {+ isa = PBXGroup;+ children = (+ A994B3D3E3853BA4D16AA5A8 /* Pods-GenericApp.debug.xcconfig */,+ D61E1E0434CC1446EAF20BA0 /* Pods-GenericApp.release.xcconfig */,+ 3B0E05618605D241D5A82AA3 /* Pods-NotificationService.debug.xcconfig */,+ 46FD90D41833A0E2C4C7DDA6 /* Pods-NotificationService.release.xcconfig */,+ );+ path = Pods;+ sourceTree = "<group>";+ };+ 878D2D00249A490300011484 = {+ isa = PBXGroup;+ children = (+ 878D2D0B249A490300011484 /* GenericApp */,+ 878D2D25249A498900011484 /* NotificationService */,+ 878D2D0A249A490300011484 /* Products */,+ 6E621588C821060939F236DC /* Pods */,+ E76367874E329A8C268BC128 /* Frameworks */,+ );+ sourceTree = "<group>";+ };+ 878D2D0A249A490300011484 /* Products */ = {+ isa = PBXGroup;+ children = (+ 878D2D09249A490300011484 /* OpenRemote.app */,+ 878D2D24249A498900011484 /* NotificationService.appex */,+ );+ name = Products;+ sourceTree = "<group>";+ };+ 878D2D0B249A490300011484 /* GenericApp */ = {+ isa = PBXGroup;+ children = (+ 878D2D34249A50E500011484 /* UI */,+ 878D2D0C249A490300011484 /* AppDelegate.swift */,+ 878D2D0E249A490300011484 /* SceneDelegate.swift */,+ 878D2D10249A490300011484 /* ContentView.swift */,+ 878D2D12249A490400011484 /* Assets.xcassets */,+ 878D2D17249A490400011484 /* LaunchScreen.storyboard */,+ 878D2D1A249A490400011484 /* Info.plist */,+ 878D2D14249A490400011484 /* Preview Content */,+ );+ path = GenericApp;+ sourceTree = "<group>";+ };+ 878D2D14249A490400011484 /* Preview Content */ = {+ isa = PBXGroup;+ children = (+ 878D2D15249A490400011484 /* Preview Assets.xcassets */,+ );+ path = "Preview Content";+ sourceTree = "<group>";+ };+ 878D2D25249A498900011484 /* NotificationService */ = {+ isa = PBXGroup;+ children = (+ 878D2D26249A498900011484 /* NotificationService.swift */,+ 878D2D28249A498900011484 /* Info.plist */,+ );+ path = NotificationService;+ sourceTree = "<group>";+ };+ 878D2D34249A50E500011484 /* UI */ = {+ isa = PBXGroup;+ children = (+ 878D2D35249A50FC00011484 /* LoginView.swift */,+ );+ path = UI;+ sourceTree = "<group>";+ };+ E76367874E329A8C268BC128 /* Frameworks */ = {+ isa = PBXGroup;+ children = (+ 878D2D30249A4D3700011484 /* ORLib.framework */,+ 4E012F268F107177E6B242E8 /* Pods_GenericApp.framework */,+ 570B5A477F4AA747A62A45EF /* Pods_NotificationService.framework */,+ );+ name = Frameworks;+ sourceTree = "<group>";+ };+/* End PBXGroup section */++/* Begin PBXNativeTarget section */+ 878D2D08249A490300011484 /* GenericApp */ = {+ isa = PBXNativeTarget;+ buildConfigurationList = 878D2D1D249A490400011484 /* Build configuration list for PBXNativeTarget "GenericApp" */;+ buildPhases = (+ 7F1699925EFEE1D36D8896ED /* [CP] Check Pods Manifest.lock */,+ 878D2D05249A490300011484 /* Sources */,+ 878D2D06249A490300011484 /* Frameworks */,+ 878D2D07249A490300011484 /* Resources */,+ 878D2D2C249A498900011484 /* Embed App Extensions */,+ 1916A4B7304981F2A7B97168 /* [CP] Embed Pods Frameworks */,+ );+ buildRules = (+ );+ dependencies = (+ 878D2D2A249A498900011484 /* PBXTargetDependency */,+ );+ name = GenericApp;+ productName = GenericApp;+ productReference = 878D2D09249A490300011484 /* OpenRemote.app */;+ productType = "com.apple.product-type.application";+ };+ 878D2D23249A498900011484 /* NotificationService */ = {+ isa = PBXNativeTarget;+ buildConfigurationList = 878D2D2F249A498900011484 /* Build configuration list for PBXNativeTarget "NotificationService" */;+ buildPhases = (+ F53E589BC4E8F287867199F0 /* [CP] Check Pods Manifest.lock */,+ 878D2D20249A498900011484 /* Sources */,+ 878D2D21249A498900011484 /* Frameworks */,+ 878D2D22249A498900011484 /* Resources */,+ 878D2D33249A4D3700011484 /* Embed Frameworks */,+ );+ buildRules = (+ );+ dependencies = (+ );+ name = NotificationService;+ productName = NotificationService;+ productReference = 878D2D24249A498900011484 /* NotificationService.appex */;+ productType = "com.apple.product-type.app-extension";+ };+/* End PBXNativeTarget section */++/* Begin PBXProject section */+ 878D2D01249A490300011484 /* Project object */ = {+ isa = PBXProject;+ attributes = {+ LastSwiftUpdateCheck = 1140;+ LastUpgradeCheck = 1140;+ ORGANIZATIONNAME = OpenRemote;+ TargetAttributes = {+ 878D2D08249A490300011484 = {+ CreatedOnToolsVersion = 11.4;+ };+ 878D2D23249A498900011484 = {+ CreatedOnToolsVersion = 11.4;+ };+ };+ };+ buildConfigurationList = 878D2D04249A490300011484 /* Build configuration list for PBXProject "GenericApp" */;+ compatibilityVersion = "Xcode 9.3";+ developmentRegion = en;+ hasScannedForEncodings = 0;+ knownRegions = (+ en,+ Base,+ );+ mainGroup = 878D2D00249A490300011484;+ productRefGroup = 878D2D0A249A490300011484 /* Products */;+ projectDirPath = "";+ projectRoot = "";+ targets = (+ 878D2D08249A490300011484 /* GenericApp */,+ 878D2D23249A498900011484 /* NotificationService */,+ );+ };+/* End PBXProject section */++/* Begin PBXResourcesBuildPhase section */+ 878D2D07249A490300011484 /* Resources */ = {+ isa = PBXResourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 878D2D19249A490400011484 /* LaunchScreen.storyboard in Resources */,+ 878D2D16249A490400011484 /* Preview Assets.xcassets in Resources */,+ 878D2D13249A490400011484 /* Assets.xcassets in Resources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+ 878D2D22249A498900011484 /* Resources */ = {+ isa = PBXResourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXResourcesBuildPhase section */++/* Begin PBXShellScriptBuildPhase section */+ 1916A4B7304981F2A7B97168 /* [CP] Embed Pods Frameworks */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-GenericApp/Pods-GenericApp-frameworks-${CONFIGURATION}-input-files.xcfilelist",+ );+ name = "[CP] Embed Pods Frameworks";+ outputFileListPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-GenericApp/Pods-GenericApp-frameworks-${CONFIGURATION}-output-files.xcfilelist",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-GenericApp/Pods-GenericApp-frameworks.sh\"\n";+ showEnvVarsInLog = 0;+ };+ 7F1699925EFEE1D36D8896ED /* [CP] Check Pods Manifest.lock */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputFileListPaths = (+ );+ inputPaths = (+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",+ "${PODS_ROOT}/Manifest.lock",+ );+ name = "[CP] Check Pods Manifest.lock";+ outputFileListPaths = (+ );+ outputPaths = (+ "$(DERIVED_FILE_DIR)/Pods-GenericApp-checkManifestLockResult.txt",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";+ showEnvVarsInLog = 0;+ };+ F53E589BC4E8F287867199F0 /* [CP] Check Pods Manifest.lock */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputFileListPaths = (+ );+ inputPaths = (+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",+ "${PODS_ROOT}/Manifest.lock",+ );+ name = "[CP] Check Pods Manifest.lock";+ outputFileListPaths = (+ );+ outputPaths = (+ "$(DERIVED_FILE_DIR)/Pods-NotificationService-checkManifestLockResult.txt",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";+ showEnvVarsInLog = 0;+ };+/* End PBXShellScriptBuildPhase section */++/* Begin PBXSourcesBuildPhase section */+ 878D2D05249A490300011484 /* Sources */ = {+ isa = PBXSourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 878D2D0D249A490300011484 /* AppDelegate.swift in Sources */,+ 878D2D0F249A490300011484 /* SceneDelegate.swift in Sources */,+ 878D2D36249A50FC00011484 /* LoginView.swift in Sources */,+ 878D2D11249A490300011484 /* ContentView.swift in Sources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+ 878D2D20249A498900011484 /* Sources */ = {+ isa = PBXSourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 878D2D27249A498900011484 /* NotificationService.swift in Sources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXSourcesBuildPhase section */++/* Begin PBXTargetDependency section */+ 878D2D2A249A498900011484 /* PBXTargetDependency */ = {+ isa = PBXTargetDependency;+ target = 878D2D23249A498900011484 /* NotificationService */;+ targetProxy = 878D2D29249A498900011484 /* PBXContainerItemProxy */;+ };+/* End PBXTargetDependency section */++/* Begin PBXVariantGroup section */+ 878D2D17249A490400011484 /* LaunchScreen.storyboard */ = {+ isa = PBXVariantGroup;+ children = (+ 878D2D18249A490400011484 /* Base */,+ );+ name = LaunchScreen.storyboard;+ sourceTree = "<group>";+ };+/* End PBXVariantGroup section */++/* Begin XCBuildConfiguration section */+ 878D2D1B249A490400011484 /* Debug */ = {+ isa = XCBuildConfiguration;+ buildSettings = {+ ALWAYS_SEARCH_USER_PATHS = NO;+ CLANG_ANALYZER_NONNULL = YES;+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";+ CLANG_CXX_LIBRARY = "libc++";+ CLANG_ENABLE_MODULES = YES;+ CLANG_ENABLE_OBJC_ARC = YES;+ CLANG_ENABLE_OBJC_WEAK = YES;+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;+ CLANG_WARN_BOOL_CONVERSION = YES;+ CLANG_WARN_COMMA = YES;+ CLANG_WARN_CONSTANT_CONVERSION = YES;+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;+ CLANG_WARN_EMPTY_BODY = YES;+ CLANG_WARN_ENUM_CONVERSION = YES;+ CLANG_WARN_INFINITE_RECURSION = YES;+ CLANG_WARN_INT_CONVERSION = YES;+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;+ CLANG_WARN_STRICT_PROTOTYPES = YES;+ CLANG_WARN_SUSPICIOUS_MOVE = YES;+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;+ CLANG_WARN_UNREACHABLE_CODE = YES;+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;+ COPY_PHASE_STRIP = NO;+ DEBUG_INFORMATION_FORMAT = dwarf;+ ENABLE_STRICT_OBJC_MSGSEND = YES;+ ENABLE_TESTABILITY = YES;+ GCC_C_LANGUAGE_STANDARD = gnu11;+ GCC_DYNAMIC_NO_PIC = NO;+ GCC_NO_COMMON_BLOCKS = YES;+ GCC_OPTIMIZATION_LEVEL = 0;+ GCC_PREPROCESSOR_DEFINITIONS = (+ "DEBUG=1",+ "$(inherited)",+ );+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;+ GCC_WARN_UNDECLARED_SELECTOR = YES;+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;+ GCC_WARN_UNUSED_FUNCTION = YES;+ GCC_WARN_UNUSED_VARIABLE = YES;+ IPHONEOS_DEPLOYMENT_TARGET = 13.4;+ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;+ MTL_FAST_MATH = YES;+ ONLY_ACTIVE_ARCH = YES;+ SDKROOT = iphoneos;+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";+ };+ name = Debug;+ };+ 878D2D1C249A490400011484 /* Release */ = {+ isa = XCBuildConfiguration;+ buildSettings = {+ ALWAYS_SEARCH_USER_PATHS = NO;+ CLANG_ANALYZER_NONNULL = YES;+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";+ CLANG_CXX_LIBRARY = "libc++";+ CLANG_ENABLE_MODULES = YES;+ CLANG_ENABLE_OBJC_ARC = YES;+ CLANG_ENABLE_OBJC_WEAK = YES;+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;+ CLANG_WARN_BOOL_CONVERSION = YES;+ CLANG_WARN_COMMA = YES;+ CLANG_WARN_CONSTANT_CONVERSION = YES;+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;+ CLANG_WARN_EMPTY_BODY = YES;+ CLANG_WARN_ENUM_CONVERSION = YES;+ CLANG_WARN_INFINITE_RECURSION = YES;+ CLANG_WARN_INT_CONVERSION = YES;+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;+ CLANG_WARN_STRICT_PROTOTYPES = YES;+ CLANG_WARN_SUSPICIOUS_MOVE = YES;+ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;+ CLANG_WARN_UNREACHABLE_CODE = YES;+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;+ COPY_PHASE_STRIP = NO;+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";+ ENABLE_NS_ASSERTIONS = NO;+ ENABLE_STRICT_OBJC_MSGSEND = YES;+ GCC_C_LANGUAGE_STANDARD = gnu11;+ GCC_NO_COMMON_BLOCKS = YES;+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;+ GCC_WARN_UNDECLARED_SELECTOR = YES;+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;+ GCC_WARN_UNUSED_FUNCTION = YES;+ GCC_WARN_UNUSED_VARIABLE = YES;+ IPHONEOS_DEPLOYMENT_TARGET = 13.4;+ MTL_ENABLE_DEBUG_INFO = NO;+ MTL_FAST_MATH = YES;+ SDKROOT = iphoneos;+ SWIFT_COMPILATION_MODE = wholemodule;+ SWIFT_OPTIMIZATION_LEVEL = "-O";+ VALIDATE_PRODUCT = YES;+ };+ name = Release;+ };+ 878D2D1E249A490400011484 /* Debug */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = A994B3D3E3853BA4D16AA5A8 /* Pods-GenericApp.debug.xcconfig */;+ buildSettings = {+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;+ CODE_SIGN_STYLE = Automatic;+ DEVELOPMENT_ASSET_PATHS = "\"GenericApp/Preview Content\"";+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ ENABLE_PREVIEWS = YES;+ INFOPLIST_FILE = GenericApp/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;+ PRODUCT_NAME = OpenRemote;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Debug;+ };+ 878D2D1F249A490400011484 /* Release */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = D61E1E0434CC1446EAF20BA0 /* Pods-GenericApp.release.xcconfig */;+ buildSettings = {+ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;+ CODE_SIGN_STYLE = Automatic;+ DEVELOPMENT_ASSET_PATHS = "\"GenericApp/Preview Content\"";+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ ENABLE_PREVIEWS = YES;+ INFOPLIST_FILE = GenericApp/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;+ PRODUCT_NAME = OpenRemote;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Release;+ };+ 878D2D2D249A498900011484 /* Debug */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 3B0E05618605D241D5A82AA3 /* Pods-NotificationService.debug.xcconfig */;+ buildSettings = {+ CODE_SIGN_STYLE = Automatic;+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ INFOPLIST_FILE = NotificationService/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app.NotificationService;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SKIP_INSTALL = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Debug;+ };+ 878D2D2E249A498900011484 /* Release */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 46FD90D41833A0E2C4C7DDA6 /* Pods-NotificationService.release.xcconfig */;+ buildSettings = {+ CODE_SIGN_STYLE = Automatic;+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ INFOPLIST_FILE = NotificationService/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = (+ "$(inherited)",+ "@executable_path/Frameworks",+ "@executable_path/../../Frameworks",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app.NotificationService;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SKIP_INSTALL = YES;+ SWIFT_VERSION = 5.0;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Release;+ };+/* End XCBuildConfiguration section */++/* Begin XCConfigurationList section */+ 878D2D04249A490300011484 /* Build configuration list for PBXProject "GenericApp" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 878D2D1B249A490400011484 /* Debug */,+ 878D2D1C249A490400011484 /* Release */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+ 878D2D1D249A490400011484 /* Build configuration list for PBXNativeTarget "GenericApp" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 878D2D1E249A490400011484 /* Debug */,+ 878D2D1F249A490400011484 /* Release */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+ 878D2D2F249A498900011484 /* Build configuration list for PBXNativeTarget "NotificationService" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 878D2D2D249A498900011484 /* Debug */,+ 878D2D2E249A498900011484 /* Release */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+/* End XCConfigurationList section */+ };+ rootObject = 878D2D01249A490300011484 /* Project object */;+}diff --git a/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/contents.xcworkspacedatanew file mode 100644index 000000000..55f955058--- /dev/null+++ b/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="UTF-8"?>+<Workspace+ version = "1.0">+ <FileRef+ location = "self:GenericApp.xcodeproj">+ </FileRef>+</Workspace>diff --git a/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistnew file mode 100644index 000000000..18d981003--- /dev/null+++ b/console/iOS/GenericApp/GenericApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>IDEDidComputeMac32BitWarning</key>+ <true/>+</dict>+</plist>diff --git a/console/iOS/GenericApp/GenericApp/AppDelegate.swift b/console/iOS/GenericApp/GenericApp/AppDelegate.swiftnew file mode 100644index 000000000..5d7f20b0a--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/AppDelegate.swift@@ -0,0 +1,38 @@+//+// AppDelegate.swift+// GenericApp+//+// Created by nuc on 17/06/2020.+// Copyright © 2020 OpenRemote. All rights reserved.+//++import UIKit+import ORLib++@UIApplicationMain+class AppDelegate: UIResponder, UIApplicationDelegate {++++ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {+ // Override point for customization after application launch.+ return true+ }++ // MARK: UISceneSession Lifecycle++ func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {+ // Called when a new scene session is being created.+ // Use this method to select a configuration to create the new scene with.+ return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)+ }++ func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {+ // Called when the user discards a scene session.+ // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.+ // Use this method to release any resources that were specific to the discarded scenes, as they will not return.+ }+++}+diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/console/iOS/GenericApp/GenericApp/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew file mode 100644index 000000000..9221b9bb1--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Assets.xcassets/AppIcon.appiconset/Contents.json@@ -0,0 +1,98 @@+{+ "images" : [+ {+ "idiom" : "iphone",+ "scale" : "2x",+ "size" : "20x20"+ },+ {+ "idiom" : "iphone",+ "scale" : "3x",+ "size" : "20x20"+ },+ {+ "idiom" : "iphone",+ "scale" : "2x",+ "size" : "29x29"+ },+ {+ "idiom" : "iphone",+ "scale" : "3x",+ "size" : "29x29"+ },+ {+ "idiom" : "iphone",+ "scale" : "2x",+ "size" : "40x40"+ },+ {+ "idiom" : "iphone",+ "scale" : "3x",+ "size" : "40x40"+ },+ {+ "idiom" : "iphone",+ "scale" : "2x",+ "size" : "60x60"+ },+ {+ "idiom" : "iphone",+ "scale" : "3x",+ "size" : "60x60"+ },+ {+ "idiom" : "ipad",+ "scale" : "1x",+ "size" : "20x20"+ },+ {+ "idiom" : "ipad",+ "scale" : "2x",+ "size" : "20x20"+ },+ {+ "idiom" : "ipad",+ "scale" : "1x",+ "size" : "29x29"+ },+ {+ "idiom" : "ipad",+ "scale" : "2x",+ "size" : "29x29"+ },+ {+ "idiom" : "ipad",+ "scale" : "1x",+ "size" : "40x40"+ },+ {+ "idiom" : "ipad",+ "scale" : "2x",+ "size" : "40x40"+ },+ {+ "idiom" : "ipad",+ "scale" : "1x",+ "size" : "76x76"+ },+ {+ "idiom" : "ipad",+ "scale" : "2x",+ "size" : "76x76"+ },+ {+ "idiom" : "ipad",+ "scale" : "2x",+ "size" : "83.5x83.5"+ },+ {+ "idiom" : "ios-marketing",+ "scale" : "1x",+ "size" : "1024x1024"+ }+ ],+ "info" : {+ "author" : "xcode",+ "version" : 1+ }+}diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/Contents.json b/console/iOS/GenericApp/GenericApp/Assets.xcassets/Contents.jsonnew file mode 100644index 000000000..73c00596a--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Assets.xcassets/Contents.json@@ -0,0 +1,6 @@+{+ "info" : {+ "author" : "xcode",+ "version" : 1+ }+}diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/Contents.json b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/Contents.jsonnew file mode 100644index 000000000..b0da3f097--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/Contents.json@@ -0,0 +1,21 @@+{+ "images" : [+ {+ "idiom" : "universal",+ "scale" : "1x"+ },+ {+ "idiom" : "universal",+ "scale" : "2x"+ },+ {+ "filename" : "logo-mobile.png",+ "idiom" : "universal",+ "scale" : "3x"+ }+ ],+ "info" : {+ "author" : "xcode",+ "version" : 1+ }+}diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/logo-mobile.png b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/logo-mobile.pngnew file mode 100644index 000000000..15ace0048Binary files /dev/null and b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo-mobile.imageset/logo-mobile.png differdiff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/Contents.json b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/Contents.jsonnew file mode 100644index 000000000..aae68a599--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/Contents.json@@ -0,0 +1,21 @@+{+ "images" : [+ {+ "idiom" : "universal",+ "scale" : "1x"+ },+ {+ "idiom" : "universal",+ "scale" : "2x"+ },+ {+ "filename" : "logo.png",+ "idiom" : "universal",+ "scale" : "3x"+ }+ ],+ "info" : {+ "author" : "xcode",+ "version" : 1+ }+}diff --git a/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/logo.png b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/logo.pngnew file mode 100644index 000000000..2179b259dBinary files /dev/null and b/console/iOS/GenericApp/GenericApp/Assets.xcassets/logo.imageset/logo.png differdiff --git a/console/iOS/GenericApp/GenericApp/Base.lproj/LaunchScreen.storyboard b/console/iOS/GenericApp/GenericApp/Base.lproj/LaunchScreen.storyboardnew file mode 100644index 000000000..865e9329f--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Base.lproj/LaunchScreen.storyboard@@ -0,0 +1,25 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">+ <dependencies>+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>+ </dependencies>+ <scenes>+ <!--View Controller-->+ <scene sceneID="EHf-IW-A2E">+ <objects>+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>+ <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>+ <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>+ </view>+ </viewController>+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>+ </objects>+ <point key="canvasLocation" x="53" y="375"/>+ </scene>+ </scenes>+</document>diff --git a/console/iOS/GenericApp/GenericApp/ContentView.swift b/console/iOS/GenericApp/GenericApp/ContentView.swiftnew file mode 100644index 000000000..4d41117d9--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/ContentView.swift@@ -0,0 +1,21 @@+//+// ContentView.swift+// GenericApp+//+// Created by nuc on 17/06/2020.+// Copyright © 2020 OpenRemote. All rights reserved.+//++import SwiftUI++struct ContentView: View {+ var body: some View {+ Text("Hello, World!")+ }+}++struct ContentView_Previews: PreviewProvider {+ static var previews: some View {+ ContentView()+ }+}diff --git a/console/iOS/GenericApp/GenericApp/GoogleService-Info.plist b/console/iOS/GenericApp/GenericApp/GoogleService-Info.plistnew file mode 100644index 000000000..bbc96593f--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/GoogleService-Info.plist@@ -0,0 +1,36 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>CLIENT_ID</key>+ <string>667022545910-9fee9uvb8iguprjtimmq8uea6cqt2p5i.apps.googleusercontent.com</string>+ <key>REVERSED_CLIENT_ID</key>+ <string>com.googleusercontent.apps.667022545910-9fee9uvb8iguprjtimmq8uea6cqt2p5i</string>+ <key>API_KEY</key>+ <string>AIzaSyB9T09jK4r0Cvc8Yy_D2cMo96GZQZr3qBI</string>+ <key>GCM_SENDER_ID</key>+ <string>667022545910</string>+ <key>PLIST_VERSION</key>+ <string>1</string>+ <key>BUNDLE_ID</key>+ <string>io.openremote.app</string>+ <key>PROJECT_ID</key>+ <string>openremoteapp-a6a60</string>+ <key>STORAGE_BUCKET</key>+ <string>openremoteapp-a6a60.appspot.com</string>+ <key>IS_ADS_ENABLED</key>+ <false></false>+ <key>IS_ANALYTICS_ENABLED</key>+ <false></false>+ <key>IS_APPINVITE_ENABLED</key>+ <true></true>+ <key>IS_GCM_ENABLED</key>+ <true></true>+ <key>IS_SIGNIN_ENABLED</key>+ <true></true>+ <key>GOOGLE_APP_ID</key>+ <string>1:667022545910:ios:d757be33609bc318a5add7</string>+ <key>DATABASE_URL</key>+ <string>https://openremoteapp-a6a60.firebaseio.com</string>+</dict>+</plist>\ No newline at end of filediff --git a/console/iOS/GenericApp/GenericApp/Info.plist b/console/iOS/GenericApp/GenericApp/Info.plistnew file mode 100644index 000000000..9742bf0f4--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Info.plist@@ -0,0 +1,60 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>CFBundleDevelopmentRegion</key>+ <string>$(DEVELOPMENT_LANGUAGE)</string>+ <key>CFBundleExecutable</key>+ <string>$(EXECUTABLE_NAME)</string>+ <key>CFBundleIdentifier</key>+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>+ <key>CFBundleInfoDictionaryVersion</key>+ <string>6.0</string>+ <key>CFBundleName</key>+ <string>$(PRODUCT_NAME)</string>+ <key>CFBundlePackageType</key>+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>+ <key>CFBundleShortVersionString</key>+ <string>1.0</string>+ <key>CFBundleVersion</key>+ <string>1</string>+ <key>LSRequiresIPhoneOS</key>+ <true/>+ <key>UIApplicationSceneManifest</key>+ <dict>+ <key>UIApplicationSupportsMultipleScenes</key>+ <false/>+ <key>UISceneConfigurations</key>+ <dict>+ <key>UIWindowSceneSessionRoleApplication</key>+ <array>+ <dict>+ <key>UISceneConfigurationName</key>+ <string>Default Configuration</string>+ <key>UISceneDelegateClassName</key>+ <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>+ </dict>+ </array>+ </dict>+ </dict>+ <key>UILaunchStoryboardName</key>+ <string>LaunchScreen</string>+ <key>UIRequiredDeviceCapabilities</key>+ <array>+ <string>armv7</string>+ </array>+ <key>UISupportedInterfaceOrientations</key>+ <array>+ <string>UIInterfaceOrientationPortrait</string>+ <string>UIInterfaceOrientationLandscapeLeft</string>+ <string>UIInterfaceOrientationLandscapeRight</string>+ </array>+ <key>UISupportedInterfaceOrientations~ipad</key>+ <array>+ <string>UIInterfaceOrientationPortrait</string>+ <string>UIInterfaceOrientationPortraitUpsideDown</string>+ <string>UIInterfaceOrientationLandscapeLeft</string>+ <string>UIInterfaceOrientationLandscapeRight</string>+ </array>+</dict>+</plist>diff --git a/console/iOS/GenericApp/GenericApp/Preview Content/Preview Assets.xcassets/Contents.json b/console/iOS/GenericApp/GenericApp/Preview Content/Preview Assets.xcassets/Contents.jsonnew file mode 100644index 000000000..73c00596a--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/Preview Content/Preview Assets.xcassets/Contents.json@@ -0,0 +1,6 @@+{+ "info" : {+ "author" : "xcode",+ "version" : 1+ }+}diff --git a/console/iOS/GenericApp/GenericApp/SceneDelegate.swift b/console/iOS/GenericApp/GenericApp/SceneDelegate.swiftnew file mode 100644index 000000000..857c68ad7--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/SceneDelegate.swift@@ -0,0 +1,64 @@+//+// SceneDelegate.swift+// GenericApp+//+// Created by nuc on 17/06/2020.+// Copyright © 2020 OpenRemote. All rights reserved.+//++import UIKit+import SwiftUI++class SceneDelegate: UIResponder, UIWindowSceneDelegate {++ var window: UIWindow?+++ func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {+ // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.+ // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.+ // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).++ // Create the SwiftUI view that provides the window contents.+ let contentView = ContentView()++ // Use a UIHostingController as window root view controller.+ if let windowScene = scene as? UIWindowScene {+ let window = UIWindow(windowScene: windowScene)+ window.rootViewController = UIHostingController(rootView: contentView)+ self.window = window+ window.makeKeyAndVisible()+ }+ }++ func sceneDidDisconnect(_ scene: UIScene) {+ // Called as the scene is being released by the system.+ // This occurs shortly after the scene enters the background, or when its session is discarded.+ // Release any resources associated with this scene that can be re-created the next time the scene connects.+ // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).+ }++ func sceneDidBecomeActive(_ scene: UIScene) {+ // Called when the scene has moved from an inactive state to an active state.+ // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.+ }++ func sceneWillResignActive(_ scene: UIScene) {+ // Called when the scene will move from an active state to an inactive state.+ // This may occur due to temporary interruptions (ex. an incoming phone call).+ }++ func sceneWillEnterForeground(_ scene: UIScene) {+ // Called as the scene transitions from the background to the foreground.+ // Use this method to undo the changes made on entering the background.+ }++ func sceneDidEnterBackground(_ scene: UIScene) {+ // Called as the scene transitions from the foreground to the background.+ // Use this method to save data, release shared resources, and store enough scene-specific state information+ // to restore the scene back to its current state.+ }+++}+diff --git a/console/iOS/GenericApp/GenericApp/UI/LoginView.swift b/console/iOS/GenericApp/GenericApp/UI/LoginView.swiftnew file mode 100644index 000000000..215b8a873--- /dev/null+++ b/console/iOS/GenericApp/GenericApp/UI/LoginView.swift@@ -0,0 +1,52 @@+//+// LoginView.swift+// GenericApp+//+// Created by nuc on 17/06/2020.+// Copyright © 2020 OpenRemote. All rights reserved.+//++import SwiftUI++struct LoginView: View {+ @State private var realm: String = ""++ var body: some View {+ VStack{+ Image("logo").resizable().aspectRatio(contentMode: .fit)+ Text("Connect to your application")+ .font(.title)+ TextField("Project", text: $realm)+ .font(.title)+ .padding()+ .background(Color.gray)+ .cornerRadius(10)+ .padding()+ TextField("Realm", text: $realm)+ .font(.title)+ .padding()+ .background(Color.gray)+ .cornerRadius(10)+ .padding()+ HStack {+ Spacer()+ Button(action: {+ print("Hey")+ }, label: {+ Text("Connect")+ })+ .foregroundColor(Color.white)+ .padding()+ .background(Color.green)+ .cornerRadius(10)+ .padding()+ }+ }+ }+}++struct LoginView_Previews: PreviewProvider {+ static var previews: some View {+ LoginView()+ }+}diff --git a/console/iOS/GenericApp/NotificationService/Info.plist b/console/iOS/GenericApp/NotificationService/Info.plistnew file mode 100644index 000000000..7db9ec9cb--- /dev/null+++ b/console/iOS/GenericApp/NotificationService/Info.plist@@ -0,0 +1,31 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>CFBundleDevelopmentRegion</key>+ <string>$(DEVELOPMENT_LANGUAGE)</string>+ <key>CFBundleDisplayName</key>+ <string>NotificationService</string>+ <key>CFBundleExecutable</key>+ <string>$(EXECUTABLE_NAME)</string>+ <key>CFBundleIdentifier</key>+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>+ <key>CFBundleInfoDictionaryVersion</key>+ <string>6.0</string>+ <key>CFBundleName</key>+ <string>$(PRODUCT_NAME)</string>+ <key>CFBundlePackageType</key>+ <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>+ <key>CFBundleShortVersionString</key>+ <string>1.0</string>+ <key>CFBundleVersion</key>+ <string>1</string>+ <key>NSExtension</key>+ <dict>+ <key>NSExtensionPointIdentifier</key>+ <string>com.apple.usernotifications.service</string>+ <key>NSExtensionPrincipalClass</key>+ <string>$(PRODUCT_MODULE_NAME).NotificationService</string>+ </dict>+</dict>+</plist>diff --git a/console/iOS/GenericApp/NotificationService/NotificationService.swift b/console/iOS/GenericApp/NotificationService/NotificationService.swiftnew file mode 100644index 000000000..9fe5cbe2c--- /dev/null+++ b/console/iOS/GenericApp/NotificationService/NotificationService.swift@@ -0,0 +1,18 @@+//+// NotificationService.swift+// NotificationService+//+// Created by nuc on 17/06/2020.+// Copyright © 2020 OpenRemote. All rights reserved.+//++import UserNotifications+import ORLib++class NotificationService: ORNotificationService {++ override init() {+ ORAppGroup.entitlement = "io.openremote.app"+ super.init()+ }+}diff --git a/console/iOS/GenericApp/Podfile b/console/iOS/GenericApp/Podfilenew file mode 100644index 000000000..c97dbcd7a--- /dev/null+++ b/console/iOS/GenericApp/Podfile@@ -0,0 +1,26 @@+workspace 'GenericApp'+platform :ios, '13.0'++use_frameworks!++def shared_pods+ pod 'Firebase/Messaging'+ pod 'Firebase/Crashlytics'+ pod 'Firebase/Analytics'+end+++target 'GenericApp' do+ project 'GenericApp'+ shared_pods+end++target 'NotificationService' do+ project 'GenericApp'+ shared_pods+end++target 'ORLib' do+ project '../ORLib/ORLib'+ shared_pods+enddiff --git a/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj b/console/iOS/ORLib/ORLib.xcodeproj/project.pbxprojindex 8ebbd21f3..d0d85ae4d 100644--- a/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj+++ b/console/iOS/ORLib/ORLib.xcodeproj/project.pbxproj@@ -45,9 +45,9 @@4C9FC2F0211B2F8100D8FD18 /* ORPushNotificationAction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ORPushNotificationAction.swift; sourceTree = "<group>"; };4C9FC2F1211B2F8100D8FD18 /* ORNotificationResource.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ORNotificationResource.swift; sourceTree = "<group>"; };4CBC0D461FD6DDA1000BE8B1 /* Reachability.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Reachability.swift; sourceTree = "<group>"; };- 572EED7F064AF79DDABE9FC8 /* Pods-ORLib.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.release.xcconfig"; path = "../../../../console/eindhoven/iOS/Eindhoven/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.release.xcconfig"; sourceTree = "<group>"; };+ 572EED7F064AF79DDABE9FC8 /* Pods-ORLib.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.release.xcconfig"; path = "../GenericApp/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.release.xcconfig"; sourceTree = "<group>"; };978B95045017E64853668497 /* Pods_ORLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ORLib.framework; sourceTree = BUILT_PRODUCTS_DIR; };- C641D9E59892499E90E68616 /* Pods-ORLib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.debug.xcconfig"; path = "../../../../console/eindhoven/iOS/Eindhoven/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.debug.xcconfig"; sourceTree = "<group>"; };+ C641D9E59892499E90E68616 /* Pods-ORLib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ORLib.debug.xcconfig"; path = "../GenericApp/Pods/Target Support Files/Pods-ORLib/Pods-ORLib.debug.xcconfig"; sourceTree = "<group>"; };/* End PBXFileReference section *//* Begin PBXFrameworksBuildPhase section */diff --git a/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/nuc.xcuserdatad/xcschemes/xcschememanagement.plist b/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/nuc.xcuserdatad/xcschemes/xcschememanagement.plistnew file mode 100644index 000000000..7eee96b8d--- /dev/null+++ b/console/iOS/ORLib/ORLib.xcodeproj/xcuserdata/nuc.xcuserdatad/xcschemes/xcschememanagement.plist@@ -0,0 +1,14 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>SchemeUserState</key>+ <dict>+ <key>ORLib.xcscheme_^#shared#^_</key>+ <dict>+ <key>orderHint</key>+ <integer>0</integer>+ </dict>+ </dict>+</dict>+</plist>diff --git a/console/iOS/ORLib/ORLib/ORAppDelegate.swift b/console/iOS/ORLib/ORLib/ORAppDelegate.swiftindex 91d02b29f..f6480ec8e 100644--- a/console/iOS/ORLib/ORLib/ORAppDelegate.swift+++ b/console/iOS/ORLib/ORLib/ORAppDelegate.swift@@ -27,25 +27,25 @@ import CoreLocation@UIApplicationMainopen class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate {-+public var window: UIWindow?public let gcmMessageIDKey = "gcm.message_id"public var reachabilityAlert : UIAlertController?public var reachabilityAlertShown = falsepublic let internetReachability = Reachability()-+private var geofenceProvider : GeofenceProvider?-+open func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {UNUserNotificationCenter.current().delegate = self// if the app was launched because of geofencing-- var paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)++ let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)let documentsDirectory = paths[0]let fileName = "\(Date()).log"let logFilePath = (documentsDirectory as NSString).appendingPathComponent(fileName)freopen(logFilePath.cString(using: String.Encoding.ascii)!, "a+", stderr)-+if launchOptions?[UIApplication.LaunchOptionsKey.location] != nil {NSLog("%@", "App started from location update")// create new GeofenceProvider which creates a CLLocationManager that will receive the location update@@ -67,7 +67,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate} else {FirebaseApp.configure()Messaging.messaging().delegate = self-+NotificationCenter.default.addObserver(self,selector: #selector(self.reachabilityChanged(note:)),name: NSNotification.Name.reachabilityChanged,@@ -81,7 +81,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}return true}-+open func applicationWillResignActive(_ application: UIApplication) {// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.@@ -89,7 +89,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegatereachabilityAlertShown = falseinternetReachability?.stopNotifier()}-+open func applicationDidEnterBackground(_ application: UIApplication) {// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.@@ -97,7 +97,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegatereachabilityAlertShown = falseinternetReachability?.stopNotifier()}-+open func applicationWillEnterForeground(_ application: UIApplication) {// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.DispatchQueue.main.asyncAfter(deadline: .now() + 3) {@@ -109,7 +109,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}}}-+open func applicationDidBecomeActive(_ application: UIApplication) {// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.DispatchQueue.main.asyncAfter(deadline: .now() + 3) {@@ -121,26 +121,28 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}}}-+open func applicationWillTerminate(_ application: UIApplication) {// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.reachabilityAlert?.dismiss(animated: true, completion: nil)reachabilityAlertShown = falseinternetReachability?.stopNotifier()}-+open func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {Messaging.messaging().apnsToken = deviceTokenInstanceID.instanceID().getID { (result, error) inif let error = error {print("Error fetching remote instange ID: \(error)")}- if let token = InstanceID.instanceID().token(), let deviceId = result {- TokenManager.sharedInstance.storeDeviceId(token: token, deviceId: deviceId)+ InstanceID.instanceID().instanceID { (tokenResult, tokenError) in+ if let tResult = tokenResult, let deviceId = result {+ TokenManager.sharedInstance.storeDeviceId(token: tResult.token, deviceId: deviceId)+ }}}}-+open func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {if let action = userInfo[DefaultsKey.actionKey] as? String {if action == Actions.geofenceRefresh {@@ -162,7 +164,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}}}-+if let notificationIdString = userInfo[ActionType.notificationId] as? String, let notificationId = Int64(notificationIdString) {if let defaults = UserDefaults(suiteName: ORAppGroup.entitlement), let consoleId = defaults.string(forKey: GeofenceProvider.consoleIdKey) {ORNotificationResource.sharedInstance.notificationDelivered(notificationId: notificationId, targetId: consoleId)@@ -170,24 +172,24 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}completionHandler(UIBackgroundFetchResult.newData)}-+open func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {return true}-+@objc open func reachabilityChanged(note: NSNotification) {if let reachability = note.object as? Reachability {updateReachabilityStatus(reachability: reachability)}}-+private func updateReachabilityStatus(reachability: Reachability) {if reachability.connection == .none {if (!reachabilityAlertShown) {let topWindow = UIWindow(frame: UIScreen.main.bounds)topWindow.rootViewController = UIViewController()topWindow.windowLevel = UIWindow.Level.alert + 1-+reachabilityAlert = UIAlertController(title: "Network Error", message: "Your device seems to be offline", preferredStyle: .alert)let reachabilityRetryAction = UIAlertAction(title: "Retry", style: .default, handler: { (action) inself.reachabilityAlertShown = false@@ -212,7 +214,7 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}}}-+open func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {if (challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust) {if challenge.protectionSpace.host == ORServer.hostURL {@@ -225,37 +227,37 @@ open class ORAppDelegate: UIResponder, UIApplicationDelegate, URLSessionDelegate}extension ORAppDelegate : UNUserNotificationCenterDelegate {-+open func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {let userInfo = notification.request.content.userInfovar notificationId : Int64? = nil-+if let notificationIdString = userInfo[ActionType.notificationId] as? String{notificationId = Int64(notificationIdString)}if let notiId = notificationId, let defaults = UserDefaults(suiteName: ORAppGroup.entitlement), let consoleId = defaults.string(forKey: GeofenceProvider.consoleIdKey) {ORNotificationResource.sharedInstance.notificationDelivered(notificationId: notiId, targetId: consoleId)}-+completionHandler([.alert, .sound])}-+open func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {-+let userInfo = response.notification.request.content.userInfovar notificationId : Int64? = nilvar consoleId : String?-+if let notificationIdString = userInfo[ActionType.notificationId] as? String{notificationId = Int64(notificationIdString)}-+if let defaults = UserDefaults(suiteName: ORAppGroup.entitlement) {consoleId = defaults.string(forKey: GeofenceProvider.consoleIdKey);}-+NSLog("%@", "Action chosen: \(response.actionIdentifier)")-+switch response.actionIdentifier {case UNNotificationDefaultActionIdentifier:if let urlToOpen = userInfo[ActionType.appUrl] as? String, !urlToOpen.isEmpty {@@ -338,20 +340,21 @@ extension ORAppDelegate : MessagingDelegate {if let error = error {print("Error fetching remote instange ID: \(error)")}- if let token = InstanceID.instanceID().token(), let deviceId = result {- TokenManager.sharedInstance.storeDeviceId(token: token, deviceId: deviceId)+ if let deviceId = result {+ TokenManager.sharedInstance.storeDeviceId(token: fcmToken, deviceId: deviceId)}}}-+open func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) {print("Firebase registration token: \(fcmToken)")InstanceID.instanceID().getID { (result, error) inif let error = error {print("Error fetching remote instange ID: \(error)")}- if let token = InstanceID.instanceID().token(), let deviceId = result {- TokenManager.sharedInstance.storeDeviceId(token: token, deviceId: deviceId)++ if let deviceId = result {+ TokenManager.sharedInstance.storeDeviceId(token: fcmToken, deviceId: deviceId)}}}diff --git a/console/iOS/OpenRemoteApp/OpenRemoteApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/console/iOS/OpenRemoteApp/OpenRemoteApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistnew file mode 100644index 000000000..18d981003--- /dev/null+++ b/console/iOS/OpenRemoteApp/OpenRemoteApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>IDEDidComputeMac32BitWarning</key>+ <true/>+</dict>+</plist>