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
Implemented GeofenceProvider in generic app
Michael Rademaker2d2ffa3a1a39
diff --git a/console/generic_app/.buildignore b/console/generic_app/.buildignorenew file mode 100644index 000000000..5322bb279--- /dev/null+++ b/console/generic_app/.buildignore@@ -0,0 +1 @@+# Ignore this project in composite/superproject build\ No newline at end of filediff --git a/console/generic_app/.gitignore b/console/generic_app/.gitignorenew file mode 100644index 000000000..ae1f1838e--- /dev/null+++ b/console/generic_app/.gitignore@@ -0,0 +1,37 @@+# Miscellaneous+*.class+*.log+*.pyc+*.swp+.DS_Store+.atom/+.buildlog/+.history+.svn/++# IntelliJ related+*.iml+*.ipr+*.iws+.idea/++# The .vscode folder contains launch configuration and tasks you configure in+# VS Code which you may wish to be included in version control, so this line+# is commented out by default.+#.vscode/++# Flutter/Dart/Pub related+**/doc/api/+.dart_tool/+.flutter-plugins+.flutter-plugins-dependencies+.packages+.pub-cache/+.pub/+/build/++# Web related+lib/generated_plugin_registrant.dart++# Exceptions to above rules.+!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packagesdiff --git a/console/generic_app/.metadata b/console/generic_app/.metadatanew file mode 100644index 000000000..4adf4bf02--- /dev/null+++ b/console/generic_app/.metadata@@ -0,0 +1,10 @@+# This file tracks properties of this Flutter project.+# Used by Flutter tool to assess capabilities and perform upgrades etc.+#+# This file should be version controlled and should not be manually edited.++version:+ revision: f139b11009aeb8ed2a3a3aa8b0066e482709dde3+ channel: stable++project_type: appdiff --git a/console/generic_app/README.md b/console/generic_app/README.mdnew file mode 100644index 000000000..70a7a7beb--- /dev/null+++ b/console/generic_app/README.md@@ -0,0 +1,16 @@+# generic_app++A new Flutter project.++## Getting Started++This project is a starting point for a Flutter application.++A few resources to get you started if this is your first Flutter project:++- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)+- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)++For help getting started with Flutter, view our+[online documentation](https://flutter.dev/docs), which offers tutorials,+samples, guidance on mobile development, and a full API reference.diff --git a/console/generic_app/android/.gitignore b/console/generic_app/android/.gitignorenew file mode 100644index 000000000..bc2100d8f--- /dev/null+++ b/console/generic_app/android/.gitignore@@ -0,0 +1,7 @@+gradle-wrapper.jar+/.gradle+/captures/+/gradlew+/gradlew.bat+/local.properties+GeneratedPluginRegistrant.javadiff --git a/console/generic_app/android/app/build.gradle b/console/generic_app/android/app/build.gradlenew file mode 100644index 000000000..186e61876--- /dev/null+++ b/console/generic_app/android/app/build.gradle@@ -0,0 +1,67 @@+def localProperties = new Properties()+def localPropertiesFile = rootProject.file('local.properties')+if (localPropertiesFile.exists()) {+ localPropertiesFile.withReader('UTF-8') { reader ->+ localProperties.load(reader)+ }+}++def flutterRoot = localProperties.getProperty('flutter.sdk')+if (flutterRoot == null) {+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")+}++def flutterVersionCode = localProperties.getProperty('flutter.versionCode')+if (flutterVersionCode == null) {+ flutterVersionCode = '1'+}++def flutterVersionName = localProperties.getProperty('flutter.versionName')+if (flutterVersionName == null) {+ flutterVersionName = '1.0'+}++apply plugin: 'com.android.application'+apply plugin: 'kotlin-android'+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"++android {+ compileSdkVersion 28++ sourceSets {+ main.java.srcDirs += 'src/main/kotlin'+ }++ lintOptions {+ disable 'InvalidPackage'+ }++ defaultConfig {+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).+ applicationId "io.openremote.generic_app"+ minSdkVersion 16+ targetSdkVersion 28+ versionCode flutterVersionCode.toInteger()+ versionName flutterVersionName+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"+ }++ buildTypes {+ release {+ // TODO: Add your own signing config for the release build.+ // Signing with the debug keys for now, so `flutter run --release` works.+ signingConfig signingConfigs.debug+ }+ }+}++flutter {+ source '../..'+}++dependencies {+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"+ testImplementation 'junit:junit:4.12'+ androidTestImplementation 'androidx.test:runner:1.1.1'+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'+}diff --git a/console/generic_app/android/app/src/main/AndroidManifest.xml b/console/generic_app/android/app/src/main/AndroidManifest.xmlnew file mode 100644index 000000000..04304ba4a--- /dev/null+++ b/console/generic_app/android/app/src/main/AndroidManifest.xml@@ -0,0 +1,41 @@+<manifest xmlns:android="http://schemas.android.com/apk/res/android"+ package="io.openremote.generic_app">+ <!-- io.flutter.app.FlutterApplication is an android.app.Application that+ calls FlutterMain.startInitialization(this); in its onCreate method.+ In most cases you can leave this as-is, but you if you want to provide+ additional functionality it is fine to subclass or reimplement+ FlutterApplication and put your custom class here. -->++ <uses-permission android:name="android.permission.INTERNET"/>+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />+ <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />++ <application+ android:name="io.flutter.app.FlutterApplication"+ android:label="generic_app"+ android:icon="@mipmap/ic_launcher">+ <activity+ android:name=".MainActivity"+ android:launchMode="singleTop"+ android:theme="@style/LaunchTheme"+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"+ android:hardwareAccelerated="true"+ android:windowSoftInputMode="adjustResize">+ <intent-filter>+ <action android:name="android.intent.action.MAIN"/>+ <category android:name="android.intent.category.LAUNCHER"/>+ </intent-filter>+ </activity>+ <!-- Don't delete the meta-data below.+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->+ <meta-data+ android:name="flutterEmbedding"+ android:value="2" />++ <receiver android:name="com.intivoto.geofence.GeofenceBroadcastReceiver"+ android:enabled="true" android:exported="true"/>+ <service android:name="com.intivoto.geofence.GeofencePlugin"+ android:permission="android.permission.BIND_JOB_SERVICE" android:exported="true"/>+ </application>+</manifest>diff --git a/console/generic_app/android/build.gradle b/console/generic_app/android/build.gradlenew file mode 100644index 000000000..6901e4ac0--- /dev/null+++ b/console/generic_app/android/build.gradle@@ -0,0 +1,31 @@+buildscript {+ ext.kotlin_version = '1.3.72'+ repositories {+ google()+ jcenter()+ }++ dependencies {+ classpath 'com.android.tools.build:gradle:3.5.3'+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"+ }+}++allprojects {+ repositories {+ google()+ jcenter()+ }+}++rootProject.buildDir = '../build'+subprojects {+ project.buildDir = "${rootProject.buildDir}/${project.name}"+}+subprojects {+ project.evaluationDependsOn(':app')+}++task clean(type: Delete) {+ delete rootProject.buildDir+}diff --git a/console/generic_app/android/settings.gradle b/console/generic_app/android/settings.gradlenew file mode 100644index 000000000..5a2f14fb1--- /dev/null+++ b/console/generic_app/android/settings.gradle@@ -0,0 +1,15 @@+include ':app'++def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()++def plugins = new Properties()+def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')+if (pluginsFile.exists()) {+ pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }+}++plugins.each { name, path ->+ def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()+ include ":$name"+ project(":$name").projectDir = pluginDirectory+}diff --git a/console/generic_app/ios/.gitignore b/console/generic_app/ios/.gitignorenew file mode 100644index 000000000..e96ef602b--- /dev/null+++ b/console/generic_app/ios/.gitignore@@ -0,0 +1,32 @@+*.mode1v3+*.mode2v3+*.moved-aside+*.pbxuser+*.perspectivev3+**/*sync/+.sconsign.dblite+.tags*+**/.vagrant/+**/DerivedData/+Icon?+**/Pods/+**/.symlinks/+profile+xcuserdata+**/.generated/+Flutter/App.framework+Flutter/Flutter.framework+Flutter/Flutter.podspec+Flutter/Generated.xcconfig+Flutter/app.flx+Flutter/app.zip+Flutter/flutter_assets/+Flutter/flutter_export_environment.sh+ServiceDefinitions.json+Runner/GeneratedPluginRegistrant.*++# Exceptions to above rules.+!default.mode1v3+!default.mode2v3+!default.pbxuser+!default.perspectivev3diff --git a/console/generic_app/ios/Flutter/AppFrameworkInfo.plist b/console/generic_app/ios/Flutter/AppFrameworkInfo.plistnew file mode 100644index 000000000..6b4c0f78a--- /dev/null+++ b/console/generic_app/ios/Flutter/AppFrameworkInfo.plist@@ -0,0 +1,26 @@+<?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>App</string>+ <key>CFBundleIdentifier</key>+ <string>io.flutter.flutter.app</string>+ <key>CFBundleInfoDictionaryVersion</key>+ <string>6.0</string>+ <key>CFBundleName</key>+ <string>App</string>+ <key>CFBundlePackageType</key>+ <string>FMWK</string>+ <key>CFBundleShortVersionString</key>+ <string>1.0</string>+ <key>CFBundleSignature</key>+ <string>????</string>+ <key>CFBundleVersion</key>+ <string>1.0</string>+ <key>MinimumOSVersion</key>+ <string>8.0</string>+</dict>+</plist>diff --git a/console/generic_app/ios/Flutter/Debug.xcconfig b/console/generic_app/ios/Flutter/Debug.xcconfignew file mode 100644index 000000000..e8efba114--- /dev/null+++ b/console/generic_app/ios/Flutter/Debug.xcconfig@@ -0,0 +1,2 @@+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"+#include "Generated.xcconfig"diff --git a/console/generic_app/ios/Flutter/Release.xcconfig b/console/generic_app/ios/Flutter/Release.xcconfignew file mode 100644index 000000000..399e9340e--- /dev/null+++ b/console/generic_app/ios/Flutter/Release.xcconfig@@ -0,0 +1,2 @@+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"+#include "Generated.xcconfig"diff --git a/console/generic_app/ios/Podfile b/console/generic_app/ios/Podfilenew file mode 100644index 000000000..9a27b4897--- /dev/null+++ b/console/generic_app/ios/Podfile@@ -0,0 +1,87 @@+# Uncomment this line to define a global platform for your project+platform :ios, '13.0'++# CocoaPods analytics sends network stats synchronously affecting flutter build latency.+ENV['COCOAPODS_DISABLE_STATS'] = 'true'++project 'Runner', {+ 'Debug' => :debug,+ 'Profile' => :release,+ 'Release' => :release,+}++def parse_KV_file(file, separator='=')+ file_abs_path = File.expand_path(file)+ if !File.exists? file_abs_path+ return [];+ end+ generated_key_values = {}+ skip_line_start_symbols = ["#", "/"]+ File.foreach(file_abs_path) do |line|+ next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }+ plugin = line.split(pattern=separator)+ if plugin.length == 2+ podname = plugin[0].strip()+ path = plugin[1].strip()+ podpath = File.expand_path("#{path}", file_abs_path)+ generated_key_values[podname] = podpath+ else+ puts "Invalid plugin specification: #{line}"+ end+ end+ generated_key_values+end++target 'Runner' do+ use_frameworks!+ use_modular_headers!++ # Flutter Pod++ copied_flutter_dir = File.join(__dir__, 'Flutter')+ copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')+ copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')+ unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)+ # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.+ # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.+ # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.++ generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')+ unless File.exist?(generated_xcode_build_settings_path)+ raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"+ end+ generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)+ cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];++ unless File.exist?(copied_framework_path)+ FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)+ end+ unless File.exist?(copied_podspec_path)+ FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)+ end+ end++ # Keep pod path relative so it can be checked into Podfile.lock.+ pod 'Flutter', :path => 'Flutter'++ # Plugin Pods++ # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock+ # referring to absolute paths on developers' machines.+ system('rm -rf .symlinks')+ system('mkdir -p .symlinks/plugins')+ plugin_pods = parse_KV_file('../.flutter-plugins')+ plugin_pods.each do |name, path|+ symlink = File.join('.symlinks', 'plugins', name)+ File.symlink(path, symlink)+ pod name, :path => File.join(symlink, 'ios')+ end+end++post_install do |installer|+ installer.pods_project.targets.each do |target|+ target.build_configurations.each do |config|+ config.build_settings['ENABLE_BITCODE'] = 'NO'+ end+ end+enddiff --git a/console/generic_app/ios/Podfile.lock b/console/generic_app/ios/Podfile.locknew file mode 100644index 000000000..02f27369f--- /dev/null+++ b/console/generic_app/ios/Podfile.lock@@ -0,0 +1,70 @@+PODS:+ - apple_maps_flutter (0.0.1):+ - Flutter+ - cryptography_flutter (0.1.0):+ - Flutter+ - Flutter (1.0.0)+ - flutter_geofence (0.1.1):+ - Flutter+ - flutter_local_notifications (0.0.1):+ - Flutter+ - share (0.0.1):+ - Flutter+ - url_launcher (0.0.1):+ - Flutter+ - url_launcher_macos (0.0.1):+ - Flutter+ - url_launcher_web (0.0.1):+ - Flutter+ - webview_flutter (0.0.1):+ - Flutter++DEPENDENCIES:+ - apple_maps_flutter (from `.symlinks/plugins/apple_maps_flutter/ios`)+ - cryptography_flutter (from `.symlinks/plugins/cryptography_flutter/ios`)+ - Flutter (from `Flutter`)+ - flutter_geofence (from `.symlinks/plugins/flutter_geofence/ios`)+ - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`)+ - share (from `.symlinks/plugins/share/ios`)+ - url_launcher (from `.symlinks/plugins/url_launcher/ios`)+ - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)+ - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)+ - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`)++EXTERNAL SOURCES:+ apple_maps_flutter:+ :path: ".symlinks/plugins/apple_maps_flutter/ios"+ cryptography_flutter:+ :path: ".symlinks/plugins/cryptography_flutter/ios"+ Flutter:+ :path: Flutter+ flutter_geofence:+ :path: ".symlinks/plugins/flutter_geofence/ios"+ flutter_local_notifications:+ :path: ".symlinks/plugins/flutter_local_notifications/ios"+ share:+ :path: ".symlinks/plugins/share/ios"+ url_launcher:+ :path: ".symlinks/plugins/url_launcher/ios"+ url_launcher_macos:+ :path: ".symlinks/plugins/url_launcher_macos/ios"+ url_launcher_web:+ :path: ".symlinks/plugins/url_launcher_web/ios"+ webview_flutter:+ :path: ".symlinks/plugins/webview_flutter/ios"++SPEC CHECKSUMS:+ apple_maps_flutter: 45925bdf704b86f713fcf6979ee1999d17b2a6e0+ cryptography_flutter: a2c541ba25ff28549f989f856dde126c961defcd+ Flutter: 0e3d915762c693b495b44d77113d4970485de6ec+ flutter_geofence: 08e5427c56c540ffac97425b8e10dd598912fb3d+ flutter_local_notifications: 9e4738ce2471c5af910d961a6b7eadcf57c50186+ share: 0b2c3e82132f5888bccca3351c504d0003b3b410+ url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef+ url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313+ url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c+ webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96++PODFILE CHECKSUM: 4923279f5a690dada6ed755b078b8c49ecbeedda++COCOAPODS: 1.9.1diff --git a/console/generic_app/ios/Runner.xcodeproj/project.pbxproj b/console/generic_app/ios/Runner.xcodeproj/project.pbxprojnew file mode 100644index 000000000..2701f7c4e--- /dev/null+++ b/console/generic_app/ios/Runner.xcodeproj/project.pbxproj@@ -0,0 +1,592 @@+// !$*UTF8*$!+{+ archiveVersion = 1;+ classes = {+ };+ objectVersion = 46;+ objects = {++/* Begin PBXBuildFile section */+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };+ 9B6C1C9586FB380E3393F71C /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6BCC9896775CFEDCCE384D35 /* Pods_Runner.framework */; };+/* End PBXBuildFile section */++/* Begin PBXCopyFilesBuildPhase section */+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 10;+ files = (+ );+ name = "Embed Frameworks";+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXCopyFilesBuildPhase section */++/* Begin PBXFileReference section */+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };+ 1CFF1733714D5E6047310E9F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };+ 22F4AECA8DB2788DCE5E11F8 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };+ 584E2B9AD7744102DD3DFD0E /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };+ 6BCC9896775CFEDCCE384D35 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };+/* End PBXFileReference section */++/* Begin PBXFrameworksBuildPhase section */+ 97C146EB1CF9000F007C117D /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 9B6C1C9586FB380E3393F71C /* Pods_Runner.framework in Frameworks */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXFrameworksBuildPhase section */++/* Begin PBXGroup section */+ 3664A0ADDA5E1A55BB613DF5 /* Pods */ = {+ isa = PBXGroup;+ children = (+ 22F4AECA8DB2788DCE5E11F8 /* Pods-Runner.debug.xcconfig */,+ 584E2B9AD7744102DD3DFD0E /* Pods-Runner.release.xcconfig */,+ 1CFF1733714D5E6047310E9F /* Pods-Runner.profile.xcconfig */,+ );+ path = Pods;+ sourceTree = "<group>";+ };+ 57736F341263449A81B6F2ED /* Frameworks */ = {+ isa = PBXGroup;+ children = (+ 6BCC9896775CFEDCCE384D35 /* Pods_Runner.framework */,+ );+ name = Frameworks;+ sourceTree = "<group>";+ };+ 9740EEB11CF90186004384FC /* Flutter */ = {+ isa = PBXGroup;+ children = (+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,+ );+ name = Flutter;+ sourceTree = "<group>";+ };+ 97C146E51CF9000F007C117D = {+ isa = PBXGroup;+ children = (+ 9740EEB11CF90186004384FC /* Flutter */,+ 97C146F01CF9000F007C117D /* Runner */,+ 97C146EF1CF9000F007C117D /* Products */,+ 3664A0ADDA5E1A55BB613DF5 /* Pods */,+ 57736F341263449A81B6F2ED /* Frameworks */,+ );+ sourceTree = "<group>";+ };+ 97C146EF1CF9000F007C117D /* Products */ = {+ isa = PBXGroup;+ children = (+ 97C146EE1CF9000F007C117D /* Runner.app */,+ );+ name = Products;+ sourceTree = "<group>";+ };+ 97C146F01CF9000F007C117D /* Runner */ = {+ isa = PBXGroup;+ children = (+ 97C146FA1CF9000F007C117D /* Main.storyboard */,+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,+ 97C147021CF9000F007C117D /* Info.plist */,+ 97C146F11CF9000F007C117D /* Supporting Files */,+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,+ );+ path = Runner;+ sourceTree = "<group>";+ };+ 97C146F11CF9000F007C117D /* Supporting Files */ = {+ isa = PBXGroup;+ children = (+ );+ name = "Supporting Files";+ sourceTree = "<group>";+ };+/* End PBXGroup section */++/* Begin PBXNativeTarget section */+ 97C146ED1CF9000F007C117D /* Runner */ = {+ isa = PBXNativeTarget;+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;+ buildPhases = (+ C7330569C7EBF4D1AEA93466 /* [CP] Check Pods Manifest.lock */,+ 9740EEB61CF901F6004384FC /* Run Script */,+ 97C146EA1CF9000F007C117D /* Sources */,+ 97C146EB1CF9000F007C117D /* Frameworks */,+ 97C146EC1CF9000F007C117D /* Resources */,+ 9705A1C41CF9048500538489 /* Embed Frameworks */,+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,+ EEC19896CF4CEF1F07DC6E5F /* [CP] Embed Pods Frameworks */,+ );+ buildRules = (+ );+ dependencies = (+ );+ name = Runner;+ productName = Runner;+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;+ productType = "com.apple.product-type.application";+ };+/* End PBXNativeTarget section */++/* Begin PBXProject section */+ 97C146E61CF9000F007C117D /* Project object */ = {+ isa = PBXProject;+ attributes = {+ LastUpgradeCheck = 1020;+ ORGANIZATIONNAME = "The Chromium Authors";+ TargetAttributes = {+ 97C146ED1CF9000F007C117D = {+ CreatedOnToolsVersion = 7.3.1;+ DevelopmentTeam = 4AC88KZHJZ;+ LastSwiftMigration = 1100;+ };+ };+ };+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;+ compatibilityVersion = "Xcode 3.2";+ developmentRegion = en;+ hasScannedForEncodings = 0;+ knownRegions = (+ en,+ Base,+ );+ mainGroup = 97C146E51CF9000F007C117D;+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;+ projectDirPath = "";+ projectRoot = "";+ targets = (+ 97C146ED1CF9000F007C117D /* Runner */,+ );+ };+/* End PBXProject section */++/* Begin PBXResourcesBuildPhase section */+ 97C146EC1CF9000F007C117D /* Resources */ = {+ isa = PBXResourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXResourcesBuildPhase section */++/* Begin PBXShellScriptBuildPhase section */+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputPaths = (+ );+ name = "Thin Binary";+ outputPaths = (+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";+ };+ 9740EEB61CF901F6004384FC /* Run Script */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputPaths = (+ );+ name = "Run Script";+ outputPaths = (+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";+ };+ C7330569C7EBF4D1AEA93466 /* [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-Runner-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;+ };+ EEC19896CF4CEF1F07DC6E5F /* [CP] Embed Pods Frameworks */ = {+ isa = PBXShellScriptBuildPhase;+ buildActionMask = 2147483647;+ files = (+ );+ inputPaths = (+ "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",+ "${PODS_ROOT}/../Flutter/Flutter.framework",+ "${BUILT_PRODUCTS_DIR}/apple_maps_flutter/apple_maps_flutter.framework",+ "${BUILT_PRODUCTS_DIR}/cryptography_flutter/cryptography_flutter.framework",+ "${BUILT_PRODUCTS_DIR}/flutter_geofence/flutter_geofence.framework",+ "${BUILT_PRODUCTS_DIR}/flutter_local_notifications/flutter_local_notifications.framework",+ "${BUILT_PRODUCTS_DIR}/share/share.framework",+ "${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",+ "${BUILT_PRODUCTS_DIR}/webview_flutter/webview_flutter.framework",+ );+ name = "[CP] Embed Pods Frameworks";+ outputPaths = (+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/apple_maps_flutter.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cryptography_flutter.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_geofence.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_local_notifications.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/share.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/webview_flutter.framework",+ );+ runOnlyForDeploymentPostprocessing = 0;+ shellPath = /bin/sh;+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";+ showEnvVarsInLog = 0;+ };+/* End PBXShellScriptBuildPhase section */++/* Begin PBXSourcesBuildPhase section */+ 97C146EA1CF9000F007C117D /* Sources */ = {+ isa = PBXSourcesBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXSourcesBuildPhase section */++/* Begin PBXVariantGroup section */+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {+ isa = PBXVariantGroup;+ children = (+ 97C146FB1CF9000F007C117D /* Base */,+ );+ name = Main.storyboard;+ sourceTree = "<group>";+ };+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {+ isa = PBXVariantGroup;+ children = (+ 97C147001CF9000F007C117D /* Base */,+ );+ name = LaunchScreen.storyboard;+ sourceTree = "<group>";+ };+/* End PBXVariantGroup section */++/* Begin XCBuildConfiguration section */+ 249021D3217E4FDB00AE95B9 /* Profile */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;+ buildSettings = {+ ALWAYS_SEARCH_USER_PATHS = NO;+ CLANG_ANALYZER_NONNULL = YES;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";+ CLANG_CXX_LIBRARY = "libc++";+ CLANG_ENABLE_MODULES = YES;+ CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES;+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";+ COPY_PHASE_STRIP = NO;+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";+ ENABLE_NS_ASSERTIONS = NO;+ ENABLE_STRICT_OBJC_MSGSEND = YES;+ GCC_C_LANGUAGE_STANDARD = gnu99;+ 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 = 8.0;+ MTL_ENABLE_DEBUG_INFO = NO;+ SDKROOT = iphoneos;+ SUPPORTED_PLATFORMS = iphoneos;+ TARGETED_DEVICE_FAMILY = "1,2";+ VALIDATE_PRODUCT = YES;+ };+ name = Profile;+ };+ 249021D4217E4FDB00AE95B9 /* Profile */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;+ buildSettings = {+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;+ CLANG_ENABLE_MODULES = YES;+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ ENABLE_BITCODE = NO;+ FRAMEWORK_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";+ LIBRARY_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.genericApp;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";+ SWIFT_VERSION = 5.0;+ VERSIONING_SYSTEM = "apple-generic";+ };+ name = Profile;+ };+ 97C147031CF9000F007C117D /* Debug */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;+ buildSettings = {+ ALWAYS_SEARCH_USER_PATHS = NO;+ CLANG_ANALYZER_NONNULL = YES;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";+ CLANG_CXX_LIBRARY = "libc++";+ CLANG_ENABLE_MODULES = YES;+ CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES;+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";+ COPY_PHASE_STRIP = NO;+ DEBUG_INFORMATION_FORMAT = dwarf;+ ENABLE_STRICT_OBJC_MSGSEND = YES;+ ENABLE_TESTABILITY = YES;+ GCC_C_LANGUAGE_STANDARD = gnu99;+ 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 = 8.0;+ MTL_ENABLE_DEBUG_INFO = YES;+ ONLY_ACTIVE_ARCH = YES;+ SDKROOT = iphoneos;+ TARGETED_DEVICE_FAMILY = "1,2";+ };+ name = Debug;+ };+ 97C147041CF9000F007C117D /* Release */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;+ buildSettings = {+ ALWAYS_SEARCH_USER_PATHS = NO;+ CLANG_ANALYZER_NONNULL = YES;+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";+ CLANG_CXX_LIBRARY = "libc++";+ CLANG_ENABLE_MODULES = YES;+ CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES;+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";+ COPY_PHASE_STRIP = NO;+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";+ ENABLE_NS_ASSERTIONS = NO;+ ENABLE_STRICT_OBJC_MSGSEND = YES;+ GCC_C_LANGUAGE_STANDARD = gnu99;+ 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 = 8.0;+ MTL_ENABLE_DEBUG_INFO = NO;+ SDKROOT = iphoneos;+ SUPPORTED_PLATFORMS = iphoneos;+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";+ TARGETED_DEVICE_FAMILY = "1,2";+ VALIDATE_PRODUCT = YES;+ };+ name = Release;+ };+ 97C147061CF9000F007C117D /* Debug */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;+ buildSettings = {+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;+ CLANG_ENABLE_MODULES = YES;+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ ENABLE_BITCODE = NO;+ FRAMEWORK_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";+ LIBRARY_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.genericApp;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";+ SWIFT_VERSION = 5.0;+ VERSIONING_SYSTEM = "apple-generic";+ };+ name = Debug;+ };+ 97C147071CF9000F007C117D /* Release */ = {+ isa = XCBuildConfiguration;+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;+ buildSettings = {+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;+ CLANG_ENABLE_MODULES = YES;+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";+ DEVELOPMENT_TEAM = 4AC88KZHJZ;+ ENABLE_BITCODE = NO;+ FRAMEWORK_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ INFOPLIST_FILE = Runner/Info.plist;+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";+ LIBRARY_SEARCH_PATHS = (+ "$(inherited)",+ "$(PROJECT_DIR)/Flutter",+ );+ PRODUCT_BUNDLE_IDENTIFIER = io.openremote.genericApp;+ PRODUCT_NAME = "$(TARGET_NAME)";+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";+ SWIFT_VERSION = 5.0;+ VERSIONING_SYSTEM = "apple-generic";+ };+ name = Release;+ };+/* End XCBuildConfiguration section */++/* Begin XCConfigurationList section */+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 97C147031CF9000F007C117D /* Debug */,+ 97C147041CF9000F007C117D /* Release */,+ 249021D3217E4FDB00AE95B9 /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {+ isa = XCConfigurationList;+ buildConfigurations = (+ 97C147061CF9000F007C117D /* Debug */,+ 97C147071CF9000F007C117D /* Release */,+ 249021D4217E4FDB00AE95B9 /* Profile */,+ );+ defaultConfigurationIsVisible = 0;+ defaultConfigurationName = Release;+ };+/* End XCConfigurationList section */+ };+ rootObject = 97C146E61CF9000F007C117D /* Project object */;+}diff --git a/console/generic_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/console/generic_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedatanew file mode 100644index 000000000..1d526a16e--- /dev/null+++ b/console/generic_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata@@ -0,0 +1,7 @@+<?xml version="1.0" encoding="UTF-8"?>+<Workspace+ version = "1.0">+ <FileRef+ location = "group:Runner.xcodeproj">+ </FileRef>+</Workspace>diff --git a/console/generic_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/console/generic_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcschemenew file mode 100644index 000000000..a28140cfd--- /dev/null+++ b/console/generic_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme@@ -0,0 +1,91 @@+<?xml version="1.0" encoding="UTF-8"?>+<Scheme+ LastUpgradeVersion = "1020"+ version = "1.3">+ <BuildAction+ parallelizeBuildables = "YES"+ buildImplicitDependencies = "YES">+ <BuildActionEntries>+ <BuildActionEntry+ buildForTesting = "YES"+ buildForRunning = "YES"+ buildForProfiling = "YES"+ buildForArchiving = "YES"+ buildForAnalyzing = "YES">+ <BuildableReference+ BuildableIdentifier = "primary"+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"+ BuildableName = "Runner.app"+ BlueprintName = "Runner"+ ReferencedContainer = "container:Runner.xcodeproj">+ </BuildableReference>+ </BuildActionEntry>+ </BuildActionEntries>+ </BuildAction>+ <TestAction+ buildConfiguration = "Debug"+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"+ shouldUseLaunchSchemeArgsEnv = "YES">+ <Testables>+ </Testables>+ <MacroExpansion>+ <BuildableReference+ BuildableIdentifier = "primary"+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"+ BuildableName = "Runner.app"+ BlueprintName = "Runner"+ ReferencedContainer = "container:Runner.xcodeproj">+ </BuildableReference>+ </MacroExpansion>+ <AdditionalOptions>+ </AdditionalOptions>+ </TestAction>+ <LaunchAction+ buildConfiguration = "Debug"+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"+ launchStyle = "0"+ useCustomWorkingDirectory = "NO"+ ignoresPersistentStateOnLaunch = "NO"+ debugDocumentVersioning = "YES"+ debugServiceExtension = "internal"+ allowLocationSimulation = "YES">+ <BuildableProductRunnable+ runnableDebuggingMode = "0">+ <BuildableReference+ BuildableIdentifier = "primary"+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"+ BuildableName = "Runner.app"+ BlueprintName = "Runner"+ ReferencedContainer = "container:Runner.xcodeproj">+ </BuildableReference>+ </BuildableProductRunnable>+ <AdditionalOptions>+ </AdditionalOptions>+ </LaunchAction>+ <ProfileAction+ buildConfiguration = "Profile"+ shouldUseLaunchSchemeArgsEnv = "YES"+ savedToolIdentifier = ""+ useCustomWorkingDirectory = "NO"+ debugDocumentVersioning = "YES">+ <BuildableProductRunnable+ runnableDebuggingMode = "0">+ <BuildableReference+ BuildableIdentifier = "primary"+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"+ BuildableName = "Runner.app"+ BlueprintName = "Runner"+ ReferencedContainer = "container:Runner.xcodeproj">+ </BuildableReference>+ </BuildableProductRunnable>+ </ProfileAction>+ <AnalyzeAction+ buildConfiguration = "Debug">+ </AnalyzeAction>+ <ArchiveAction+ buildConfiguration = "Release"+ revealArchiveInOrganizer = "YES">+ </ArchiveAction>+</Scheme>diff --git a/console/generic_app/ios/Runner.xcworkspace/contents.xcworkspacedata b/console/generic_app/ios/Runner.xcworkspace/contents.xcworkspacedatanew file mode 100644index 000000000..21a3cc14c--- /dev/null+++ b/console/generic_app/ios/Runner.xcworkspace/contents.xcworkspacedata@@ -0,0 +1,10 @@+<?xml version="1.0" encoding="UTF-8"?>+<Workspace+ version = "1.0">+ <FileRef+ location = "group:Runner.xcodeproj">+ </FileRef>+ <FileRef+ location = "group:Pods/Pods.xcodeproj">+ </FileRef>+</Workspace>diff --git a/console/generic_app/ios/Runner/AppDelegate.swift b/console/generic_app/ios/Runner/AppDelegate.swiftnew file mode 100644index 000000000..70693e4a8--- /dev/null+++ b/console/generic_app/ios/Runner/AppDelegate.swift@@ -0,0 +1,13 @@+import UIKit+import Flutter++@UIApplicationMain+@objc class AppDelegate: FlutterAppDelegate {+ override func application(+ _ application: UIApplication,+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?+ ) -> Bool {+ GeneratedPluginRegistrant.register(with: self)+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)+ }+}diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew file mode 100644index 000000000..d36b1fab2--- /dev/null+++ b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json@@ -0,0 +1,122 @@+{+ "images" : [+ {+ "size" : "20x20",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "20x20",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "3x"+ },+ {+ "size" : "29x29",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "1x"+ },+ {+ "size" : "29x29",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "29x29",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "3x"+ },+ {+ "size" : "40x40",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "40x40",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "3x"+ },+ {+ "size" : "60x60",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "60x60",+ "idiom" : "iphone",+ "filename" : "[email protected]",+ "scale" : "3x"+ },+ {+ "size" : "20x20",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "1x"+ },+ {+ "size" : "20x20",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "29x29",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "1x"+ },+ {+ "size" : "29x29",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "40x40",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "1x"+ },+ {+ "size" : "40x40",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "76x76",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "1x"+ },+ {+ "size" : "76x76",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "83.5x83.5",+ "idiom" : "ipad",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "size" : "1024x1024",+ "idiom" : "ios-marketing",+ "filename" : "[email protected]",+ "scale" : "1x"+ }+ ],+ "info" : {+ "version" : 1,+ "author" : "xcode"+ }+}diff --git a/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.jsonnew file mode 100644index 000000000..0bedcf2fd--- /dev/null+++ b/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json@@ -0,0 +1,23 @@+{+ "images" : [+ {+ "idiom" : "universal",+ "filename" : "LaunchImage.png",+ "scale" : "1x"+ },+ {+ "idiom" : "universal",+ "filename" : "[email protected]",+ "scale" : "2x"+ },+ {+ "idiom" : "universal",+ "filename" : "[email protected]",+ "scale" : "3x"+ }+ ],+ "info" : {+ "version" : 1,+ "author" : "xcode"+ }+}diff --git a/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.mdnew file mode 100644index 000000000..89c2725b7--- /dev/null+++ b/console/generic_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md@@ -0,0 +1,5 @@+# Launch Screen Assets++You can customize the launch screen with your own desired assets by replacing the image files in this directory.++You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.\ No newline at end of filediff --git a/console/generic_app/ios/Runner/Runner-Bridging-Header.h b/console/generic_app/ios/Runner/Runner-Bridging-Header.hnew file mode 100644index 000000000..7335fdf90--- /dev/null+++ b/console/generic_app/ios/Runner/Runner-Bridging-Header.h@@ -0,0 +1 @@+#import "GeneratedPluginRegistrant.h"\ No newline at end of filediff --git a/console/generic_app/lib/ConsoleProviders/GeoLocation.dart b/console/generic_app/lib/ConsoleProviders/GeoLocation.dartnew file mode 100644index 000000000..0220e17c3--- /dev/null+++ b/console/generic_app/lib/ConsoleProviders/GeoLocation.dart@@ -0,0 +1,9 @@++import 'package:generic_app/models/GeofenceDefinition.dart';++class GeoLocation {+ final GeofenceDefinition geofenceDefinition;+ final Map<String, dynamic> data;++ GeoLocation(this.geofenceDefinition, {this.data});+}\ No newline at end of filediff --git a/console/generic_app/lib/ConsoleProviders/GeofenceProvider.dart b/console/generic_app/lib/ConsoleProviders/GeofenceProvider.dartnew file mode 100644index 000000000..0ca6722c7--- /dev/null+++ b/console/generic_app/lib/ConsoleProviders/GeofenceProvider.dart@@ -0,0 +1,305 @@+import 'dart:collection';+import 'dart:convert';+import 'dart:html';++import 'package:flutter/material.dart';+import 'package:flutter_geofence/Geolocation.dart';+import 'package:flutter_geofence/geofence.dart';+import 'package:generic_app/ConsoleProviders/GeoLocation.dart';+import 'package:generic_app/models/GeofenceDefinition.dart';+import 'package:generic_app/network/ApiManager.dart';+import 'package:permission_handler/permission_handler.dart';+import 'package:shared_preferences/shared_preferences.dart';++typedef GeofenceCallback = Function(Map<String, dynamic>);++class GeofenceProvider {+ static const String baseUrlKey = "baseUrl";+ static const String consoleIdKey = "consoleId";+ static const String geofencesKey = "geofences";+ static const String geoDisabledKey = "geoDisabled";++ final String _version = "ORConsole";+ final String _geofenceFetchEndpoint = "rules/geofences/";+ final SharedPreferences _sharedPreferences;+ final ApiManager _apiManager;++ GeofenceCallback _enableCallback;+ GeofenceCallback _getLocationCallback;++ String _baseURL;+ String _consoleId;+ List<GeofenceDefinition> geofences;++ GeoLocation _enteredLocation;+ GeoLocation _exitedLocation;+ bool _sendQueued;++ GeofenceProvider._internal(this._baseURL, this._consoleId, this.geofences,+ this._sharedPreferences, this._apiManager);++ factory GeofenceProvider(SharedPreferences sharedPreferences) {+ String geofenceString = sharedPreferences.getString(geofencesKey);+ List<GeofenceDefinition> geofences;+ if (geofenceString != null) {+ geofences = List<GeofenceDefinition>.from(json.decode(geofenceString));+ } else {+ geofences = new List<GeofenceDefinition>();+ }++ return GeofenceProvider._internal(+ sharedPreferences.getString(baseUrlKey),+ sharedPreferences.getString(consoleIdKey),+ geofences,+ sharedPreferences,+ ApiManager(sharedPreferences.getString(baseUrlKey)));+ }++ static Future<GeofenceProvider> getInstance() async {+ return GeofenceProvider(await SharedPreferences.getInstance());+ }++ initialize() async {+ return {+ "action": "PROVIDER_INIT",+ "provider": "geofence",+ "version": _version,+ "requiresPermission": true,+ "hasPermission": await Permission.locationAlways.isGranted,+ "success": true,+ "enabled": false,+ "disabled": _sharedPreferences.containsKey(geoDisabledKey)+ };+ }++ enable(String baseUrl, String consoleId, GeofenceCallback callback) async {+ this._baseURL = baseUrl;+ this._consoleId = consoleId;+ this._apiManager.baseUrl = baseUrl;+ await this._sharedPreferences.setString(baseUrlKey, baseUrl);+ await this._sharedPreferences.setString(consoleIdKey, consoleId);+ await this._sharedPreferences.setBool(geoDisabledKey, false);+ await this._sharedPreferences.setString(baseUrlKey, baseUrl);+ this._enableCallback = callback;++ if (await Permission.locationAlways.isGranted) {+ Geofence.initialize();+ Geofence.startListening(GeolocationEvent.entry, (geolocation) {+ _queueSendLocation(geofences.firstWhere((element) => element.id == geolocation.id), {"type": "Point", "coordinates": [geolocation.longitude, geolocation.latitude]});+ });+ Geofence.startListening(GeolocationEvent.exit, (geolocation) {+ _queueSendLocation(geofences.firstWhere((element) => element.id == geolocation.id), null);+ });+ _enableCallback?.call({+ "action": "PROVIDER_ENABLE",+ "provider": "geofence",+ "hasPermission": await Permission.locationAlways.isGranted,+ "success": true+ });+ } else {+ if (await Permission.locationAlways.isUndetermined) {+ Permission.locationAlways.request().then((value) {+ _enableCallback?.call({+ "action": "PROVIDER_ENABLE",+ "provider": "geofence",+ "hasPermission": value.isGranted,+ "success": true+ });+ if (value.isGranted) {+ Geofence.initialize();+ }+ });+ } else {+ _enableCallback?.call({+ "action": "PROVIDER_ENABLE",+ "provider": "geofence",+ "hasPermission": false,+ "success": true+ });+ }+ }+ }++ disable() async {+ for (String geofenceId in geofences.map((e) => e.id)) {+ Geofence.removeGeolocation(+ new Geolocation(id: geofenceId), GeolocationEvent.exit);+ Geofence.removeGeolocation(+ new Geolocation(id: geofenceId), GeolocationEvent.entry);+ }++ await _sharedPreferences.setBool(geoDisabledKey, true);+ await _sharedPreferences.remove(baseUrlKey);+ await _sharedPreferences.remove(consoleIdKey);+ return {+ "action": "PROVIDER_DISABLE",+ "provider": "geofence",+ };+ }++ addGeofence(GeofenceDefinition geofenceDefinition) {+ Geolocation geolocation = new Geolocation(+ id: geofenceDefinition.id,+ latitude: geofenceDefinition.lat,+ longitude: geofenceDefinition.lng,+ radius: geofenceDefinition.radius);+ Geofence.addGeolocation(geolocation, GeolocationEvent.entry);+ Geofence.addGeolocation(geolocation, GeolocationEvent.exit);+ }++ removeGeofence(String id) {+ Geofence.removeGeolocation(new Geolocation(id: id), GeolocationEvent.exit);+ Geofence.removeGeolocation(new Geolocation(id: id), GeolocationEvent.entry);+ }++ refreshGeofences() {+ _apiManager.getAll<GeofenceDefinition>(["rules", "geofences", _consoleId],+ GeofenceDefinition.fromJson).then((geofenceDefinitions) {+ print("Fetched geofences=${geofenceDefinitions.length}");++ List<GeofenceDefinition> remainingGeofences =+ new List<GeofenceDefinition>();+ geofences.forEach((oldGeofence) {+ if (!geofenceDefinitions+ .any((definition) => definition.id == oldGeofence.id)) {+ removeGeofence(oldGeofence.id);+ } else {+ remainingGeofences.add(oldGeofence);+ }+ });++ geofenceDefinitions.forEach((definition) {+ if (!geofences.any((element) => element.id == definition.id)) {+ addGeofence(definition);+ }+ });++ _sharedPreferences+ .setString(geofencesKey,+ json.encode(geofenceDefinitions.map((e) => e.toJson())))+ .then((value) => geofences = geofenceDefinitions);+ });+ }++ _queueSendLocation(GeofenceDefinition geofenceDefinition,+ Map<String, dynamic> locationData) {+ if (locationData == null) {+ _exitedLocation = GeoLocation(geofenceDefinition);++ // If exit is for same geofence as queued enter then remove enter to avoid incorrectly setting location+ if (_enteredLocation?.geofenceDefinition?.id == geofenceDefinition.id) {+ _exitedLocation = null;+ }+ } else {+ _enteredLocation = GeoLocation(geofenceDefinition, data: locationData);+ }++ if (!_sendQueued) {+ _sendQueued = true;+ print("Schedule send location");+ Future.delayed(Duration(seconds: 2)).then((value) {+ _doSendLocation();+ });+ }+ }++ _doSendLocation() {+ print("Do send location");+ bool success = false;++ if (_exitedLocation != null) {+ if (_sendLocation(+ _exitedLocation.geofenceDefinition, _exitedLocation.data)) {+ _exitedLocation = null;+ success = true;+ }+ } else if (_enteredLocation != null) {+ if (_sendLocation(+ _enteredLocation.geofenceDefinition, _enteredLocation.data)) {+ _enteredLocation = null;+ success = true;+ }+ }++ if (_exitedLocation != null || _enteredLocation != null) {+ if (!success) {+ print("Send failed so re-scheduling");+ } else {+ print("More locations to send so scheduling another run");+ }+ // Schedule another send+ Future.delayed(Duration(seconds: success ? 5 : 10)).then((value) {+ _doSendLocation();+ });+ } else {+ _sendQueued = false;+ }+ }++ _sendLocation(GeofenceDefinition geofenceDefinition,+ Map<String, dynamic> locationData) {+ return _apiManager+ .post(overrideUrl: geofenceDefinition.url, rawModel: locationData != null ? jsonEncode(locationData) : null.toString())+ .then((value) => true)+ .catchError((error) => false);+ }++ getLocation(GeofenceCallback callback, BuildContext context) async {+ _getLocationCallback = callback;++ if (await Permission.locationAlways.isGranted) {+ Coordinate coordinate = await Geofence.getCurrentLocation();+ _getLocationCallback({+ "action": "GET_LOCATION",+ "provider": "geofence",+ "data": {+ "latitude": coordinate.latitude,+ "longitude": coordinate.longitude+ }+ });+ } else {+ if (await Permission.locationAlways.isUndetermined) {+ Permission.locationAlways.request().then((value) {+ if (value.isGranted) {+ Geofence.getCurrentLocation().then((coordinate) {+ _getLocationCallback({+ "action": "GET_LOCATION",+ "provider": "geofence",+ "data": {+ "latitude": coordinate.latitude,+ "longitude": coordinate.longitude+ }+ });+ });+ }+ });+ } else {+ if (await Permission.locationAlways.isDenied) {+ showDialog(+ context: context,+ builder: (BuildContext context) {+ return AlertDialog(+ title: new Text("Location permission denied"),+ content: new Text(+ "In order to get the location it's necessary to give permissions to the app. Do you want to open the settings?"),+ actions: <Widget>[+ new FlatButton(+ child: new Text("Yes"),+ onPressed: () {+ openAppSettings();+ },+ ),+ new FlatButton(+ child: new Text("No"),+ onPressed: () {+ Navigator.of(context).pop();+ },+ ),+ ],+ );+ });+ }+ }+ }+ }+}diff --git a/console/generic_app/lib/config/CurrentConsoleAppConfig.dart b/console/generic_app/lib/config/CurrentConsoleAppConfig.dartnew file mode 100644index 000000000..189bc89a9--- /dev/null+++ b/console/generic_app/lib/config/CurrentConsoleAppConfig.dart@@ -0,0 +1,70 @@+import 'dart:ui';++import 'package:generic_app/models/LinkConfig.dart';+import 'package:generic_app/models/ConsoleAppConfig.dart';+import 'package:generic_app/utils/HexColor.dart';++class CurrentConsoleAppConfig {+ static final CurrentConsoleAppConfig instance =+ CurrentConsoleAppConfig._privateConstructor();++ CurrentConsoleAppConfig._privateConstructor();++ updateConfig(ConsoleAppConfig appConfig) {+ this._realm = appConfig.realm;+ this._url = appConfig.url;+ this._menuEnabled = appConfig.menuEnabled;+ this._menuPosition = appConfig.menuPosition;+ this._primaryColor = appConfig.primaryColor;+ this._secondaryColor = appConfig.secondaryColor;+ this._links = appConfig.links;+ }++ String _realm;++ String _url;++ bool _menuEnabled;++ String _menuPosition;++ String _menuImage;++ String _primaryColor;++ String _secondaryColor;++ List<LinkConfig> _links;++ String get realm {+ return _realm;+ }++ String get url {+ return _url;+ }++ bool get menuEnabled {+ return _menuEnabled;+ }++ String get menuPosition {+ return _menuPosition ?? "BOTTOM_LEFT";+ }++ String get menuImage {+ return _menuImage ?? "menu";+ }++ Color get primaryColor {+ return HexColor(_primaryColor ?? "#43A047");+ }++ Color get secondaryColor {+ return HexColor(_secondaryColor ?? "#C1D72E");+ }++ List<LinkConfig> get links {+ return _links;+ }+}diff --git a/console/generic_app/lib/main.dart b/console/generic_app/lib/main.dartnew file mode 100644index 000000000..0ff096fa0--- /dev/null+++ b/console/generic_app/lib/main.dart@@ -0,0 +1,81 @@+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';++import 'package:generic_app/ui/ProjectPage.dart';++void main() {+ WidgetsFlutterBinding.ensureInitialized();+ SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])+ .then((_) {+ runApp(new ORApp());+ });+}+class ORApp extends StatelessWidget {+ // This widget is the root of your application.+ @override+ Widget build(BuildContext context) {+ return MaterialApp(+ title: 'OR App',+ theme: ThemeData(+ // This is the theme of your application.+ //+ // Try running your application with "flutter run". You'll see the+ // application has a blue toolbar. Then, without quitting the app, try+ // changing the primarySwatch below to Colors.green and then invoke+ // "hot reload" (press "r" in the console where you ran "flutter run",+ // or simply save your changes to "hot reload" in a Flutter IDE).+ // Notice that the counter didn't reset back to zero; the application+ // is not restarted.+ primarySwatch: Colors.blue,+ ),+ home: ProjectPage(),+ );+ }+}++class MyHomePage extends StatefulWidget {+ MyHomePage({Key key, this.title}) : super(key: key);++ // This widget is the home page of your application. It is stateful, meaning+ // that it has a State object (defined below) that contains fields that affect+ // how it looks.++ // This class is the configuration for the state. It holds the values (in this+ // case the title) provided by the parent (in this case the App widget) and+ // used by the build method of the State. Fields in a Widget subclass are+ // always marked "final".++ final String title;++ @override+ _MyHomePageState createState() => _MyHomePageState();+}++class _MyHomePageState extends State<MyHomePage> {++ @override+ void initState() {+ // TODO: implement initState+ super.initState();+++ }++ @override+ Widget build(BuildContext context) {+ // This method is rerun every time setState is called, for instance as done+ // by the _incrementCounter method above.+ //+ // The Flutter framework has been optimized to make rerunning build methods+ // fast, so that you can just rebuild anything that needs updating rather+ // than having to individually change instances of widgets.+ return Scaffold(+ appBar: AppBar(+ // Here we take the value from the MyHomePage object that was created by+ // the App.build method, and use it to set our appbar title.+ title: Text(widget.title),+ ),+ body: Container()+ );+ }+}diff --git a/console/generic_app/lib/models/ConsoleAppConfig.dart b/console/generic_app/lib/models/ConsoleAppConfig.dartindex 9537cf45d..9b08bbfb6 100644--- a/console/generic_app/lib/models/ConsoleAppConfig.dart+++ b/console/generic_app/lib/models/ConsoleAppConfig.dart@@ -1,4 +1,5 @@+import 'package:generic_app/models/LinkConfig.dart';import 'package:json_annotation/json_annotation.dart';import 'BaseModel.dart';@@ -23,7 +24,7 @@ class ConsoleAppConfig implements BaseModel {final String secondaryColor;- final Map<String, dynamic> links;+ final List<LinkConfig> links;ConsoleAppConfig({this.id,diff --git a/console/generic_app/lib/models/ConsoleAppConfig.g.dart b/console/generic_app/lib/models/ConsoleAppConfig.g.dartnew file mode 100644index 000000000..422c7a764--- /dev/null+++ b/console/generic_app/lib/models/ConsoleAppConfig.g.dart@@ -0,0 +1,37 @@+// GENERATED CODE - DO NOT MODIFY BY HAND++part of 'ConsoleAppConfig.dart';++// **************************************************************************+// JsonSerializableGenerator+// **************************************************************************++ConsoleAppConfig _$ConsoleAppConfigFromJson(Map<String, dynamic> json) {+ return ConsoleAppConfig(+ id: json['id'] as int,+ realm: json['realm'] as String,+ url: json['url'] as String,+ menuEnabled: json['menuEnabled'] as bool,+ menuPosition: json['menuPosition'] as String,+ menuImage: json['menuImage'] as String,+ primaryColor: json['primaryColor'] as String,+ secondaryColor: json['secondaryColor'] as String,+ links: (json['links'] as List)+ ?.map((e) =>+ e == null ? null : LinkConfig.fromJson(e as Map<String, dynamic>))+ ?.toList(),+ );+}++Map<String, dynamic> _$ConsoleAppConfigToJson(ConsoleAppConfig instance) =>+ <String, dynamic>{+ 'id': instance.id,+ 'realm': instance.realm,+ 'url': instance.url,+ 'menuEnabled': instance.menuEnabled,+ 'menuPosition': instance.menuPosition,+ 'menuImage': instance.menuImage,+ 'primaryColor': instance.primaryColor,+ 'secondaryColor': instance.secondaryColor,+ 'links': instance.links,+ };diff --git a/console/generic_app/lib/models/GeofenceDefinition.dart b/console/generic_app/lib/models/GeofenceDefinition.dartnew file mode 100644index 000000000..756a79d36--- /dev/null+++ b/console/generic_app/lib/models/GeofenceDefinition.dart@@ -0,0 +1,25 @@+++import 'package:generic_app/models/BaseModel.dart';+import 'package:json_annotation/json_annotation.dart';++part 'GeofenceDefinition.g.dart';++@JsonSerializable()+class GeofenceDefinition implements BaseModel{+ final String id;+ final double lat;+ final double lng;+ final double radius;+ final String httpMethod;+ final String url;++ GeofenceDefinition({this.id, this.lat, this.lng, this.radius, this.httpMethod, this.url});++ static GeofenceDefinition fromJson(Map<String, dynamic> json) => _$GeofenceDefinitionFromJson(json);+ Map<String, dynamic> toJson() => _$GeofenceDefinitionToJson(this);++ @override+ String toString() =>+ "GeofenceDefinition(id='$id', lat=$lat, lng=$lng, radius=$radius, httpMethod='$httpMethod', url='$url')";+}diff --git a/console/generic_app/lib/models/GeofenceDefinition.g.dart b/console/generic_app/lib/models/GeofenceDefinition.g.dartnew file mode 100644index 000000000..415bc0448--- /dev/null+++ b/console/generic_app/lib/models/GeofenceDefinition.g.dart@@ -0,0 +1,28 @@+// GENERATED CODE - DO NOT MODIFY BY HAND++part of 'GeofenceDefinition.dart';++// **************************************************************************+// JsonSerializableGenerator+// **************************************************************************++GeofenceDefinition _$GeofenceDefinitionFromJson(Map<String, dynamic> json) {+ return GeofenceDefinition(+ id: json['id'] as String,+ lat: (json['lat'] as num)?.toDouble(),+ lng: (json['lng'] as num)?.toDouble(),+ radius: (json['radius'] as num)?.toDouble(),+ httpMethod: json['httpMethod'] as String,+ url: json['url'] as String,+ );+}++Map<String, dynamic> _$GeofenceDefinitionToJson(GeofenceDefinition instance) =>+ <String, dynamic>{+ 'id': instance.id,+ 'lat': instance.lat,+ 'lng': instance.lng,+ 'radius': instance.radius,+ 'httpMethod': instance.httpMethod,+ 'url': instance.url,+ };diff --git a/console/generic_app/lib/models/LinkConfig.dart b/console/generic_app/lib/models/LinkConfig.dartnew file mode 100644index 000000000..bb488b35c--- /dev/null+++ b/console/generic_app/lib/models/LinkConfig.dart@@ -0,0 +1,19 @@++import 'package:json_annotation/json_annotation.dart';++import 'BaseModel.dart';++part 'LinkConfig.g.dart';++@JsonSerializable()+class LinkConfig implements BaseModel {++ final String displayText;+ final String pageLink;+ final Map<String, String> queryParams;++ LinkConfig(this.displayText, this.pageLink, this.queryParams);++ static LinkConfig fromJson(Map<String, dynamic> json) => _$LinkConfigFromJson(json);+ Map<String, dynamic> toJson() => _$LinkConfigToJson(this);+}\ No newline at end of filediff --git a/console/generic_app/lib/models/LinkConfig.g.dart b/console/generic_app/lib/models/LinkConfig.g.dartnew file mode 100644index 000000000..828ea5973--- /dev/null+++ b/console/generic_app/lib/models/LinkConfig.g.dart@@ -0,0 +1,24 @@+// GENERATED CODE - DO NOT MODIFY BY HAND++part of 'LinkConfig.dart';++// **************************************************************************+// JsonSerializableGenerator+// **************************************************************************++LinkConfig _$LinkConfigFromJson(Map<String, dynamic> json) {+ return LinkConfig(+ json['displayText'] as String,+ json['pageLink'] as String,+ (json['queryParams'] as Map<String, dynamic>)?.map(+ (k, e) => MapEntry(k, e as String),+ ),+ );+}++Map<String, dynamic> _$LinkConfigToJson(LinkConfig instance) =>+ <String, dynamic>{+ 'displayText': instance.displayText,+ 'pageLink': instance.pageLink,+ 'queryParams': instance.queryParams,+ };diff --git a/console/generic_app/lib/network/ApiManager.dart b/console/generic_app/lib/network/ApiManager.dartindex 3cf050942..882e63fb3 100644--- a/console/generic_app/lib/network/ApiManager.dart+++ b/console/generic_app/lib/network/ApiManager.dart@@ -38,7 +38,8 @@ class ApiManager {}}- Map<String, String> headers = baseHeaders != null ? new HashMap.from(baseHeaders) : new HashMap();+ Map<String, String> headers =+ baseHeaders != null ? new HashMap.from(baseHeaders) : new HashMap();if (additionalHeaders != null) {headers.addAll(additionalHeaders);}@@ -91,7 +92,8 @@ class ApiManager {}}- Map<String, String> headers = baseHeaders != null ? new HashMap.from(baseHeaders) : new HashMap();+ Map<String, String> headers =+ baseHeaders != null ? new HashMap.from(baseHeaders) : new HashMap();if (additionalHeaders != null) {headers.addAll(additionalHeaders);}@@ -124,4 +126,50 @@ class ApiManager {return returnValue;}++ Future<T> post<T extends BaseModel>({ResponseParser responseParser,+ List<String> pathComponents, T model, String rawModel,+ Map<String, String> additionalHeaders, String overrideUrl}) async {+ StringBuffer urlBuffer = new StringBuffer(baseUrl);++ pathComponents?.forEach((pathComponent) => urlBuffer.write("/" + pathComponent));++ Map<String, String> headers =+ baseHeaders != null ? new HashMap.from(baseHeaders) : new HashMap();+ if (additionalHeaders != null) {+ headers.addAll(additionalHeaders);+ }++ T returnValue;++ await http+ .post(overrideUrl ?? urlBuffer.toString(),+ headers: headers, body: model?.toJson() ?? rawModel)+ .then((response) {+ if (response.statusCode == 201) {+ try {+ var json = jsonDecode(response.body);+ var jsonData = json;+ if (responseBodyDataKey != null && responseBodyDataKey != "") {+ jsonData = json[responseBodyDataKey];+ }+ if (jsonData is List) {+ throw new Exception("Expected json object");+ } else {+ returnValue = responseParser(jsonData) as T;+ }+ } catch (e) {+ print(e);+ rethrow;+ }+ } else if (response.statusCode >= 200 && response.statusCode <= 299) {+ returnValue = null;+ } else {+ throw new Exception(+ "Response error: ${response.statusCode} - ${response.body}");+ }+ });++ return returnValue;+ }}diff --git a/console/generic_app/lib/ui/ProjectPage.dart b/console/generic_app/lib/ui/ProjectPage.dartindex 1b93db777..3f98d395d 100644--- a/console/generic_app/lib/ui/ProjectPage.dart+++ b/console/generic_app/lib/ui/ProjectPage.dart@@ -1,6 +1,8 @@import 'package:flutter/material.dart';+import 'package:generic_app/config/CurrentConsoleAppConfig.dart';import 'package:generic_app/models/ConsoleAppConfig.dart';import 'package:generic_app/network/ApiManager.dart';+import 'package:generic_app/ui/WebViewPage.dart';class ProjectPage extends StatefulWidget {ProjectPage({Key key}) : super(key: key);@@ -46,8 +48,16 @@ class _ProjectPageState extends State<ProjectPage> {children: <Widget>[Container(child: TextField(+ cursorColor: CurrentConsoleAppConfig.instance.primaryColor,decoration:- InputDecoration(labelText: 'Project'),+ InputDecoration(labelText: 'Project',+ labelStyle: TextStyle(+ color: CurrentConsoleAppConfig.instance.primaryColor+ ),+ focusedBorder: UnderlineInputBorder(+ borderSide: BorderSide(color: CurrentConsoleAppConfig.instance.primaryColor),+ ),+ ),textInputAction: TextInputAction.next,onChanged: (inputText) {_projectName = inputText;@@ -59,8 +69,16 @@ class _ProjectPageState extends State<ProjectPage> {),Container(child: TextField(+ cursorColor: CurrentConsoleAppConfig.instance.primaryColor,decoration:- InputDecoration(labelText: 'Realm'),+ InputDecoration(labelText: 'Realm',+ labelStyle: TextStyle(+ color: CurrentConsoleAppConfig.instance.primaryColor+ ),+ focusedBorder: UnderlineInputBorder(+ borderSide: BorderSide(color: CurrentConsoleAppConfig.instance.primaryColor),+ )+ ),textInputAction: TextInputAction.done,onChanged: (inputText) {_realmName = inputText;@@ -75,6 +93,9 @@ class _ProjectPageState extends State<ProjectPage> {child: Align(alignment: Alignment.centerRight,child: RaisedButton(+ color: CurrentConsoleAppConfig.instance.primaryColor,+ focusColor: CurrentConsoleAppConfig.instance.secondaryColor,+ textColor: Colors.white,onPressed: () {_getConsoleAppConfig();},@@ -89,9 +110,13 @@ class _ProjectPageState extends State<ProjectPage> {}void _getConsoleAppConfig() {- var apiManager = new ApiManager("http://localhost:8080/api/${_realmName}");+ var apiManager = new ApiManager("http://10.0.2.2:8080/api/${_realmName}");// new ApiManager("https://${_projectName}.openremote.io/${_realmName}");apiManager.get(["app", "config"], ConsoleAppConfig.fromJson).then(- (value) => print(value));+ (value) {+ print(value);+ CurrentConsoleAppConfig.instance.updateConfig(value);+ Navigator.push(context, MaterialPageRoute(builder: (context)=>WebViewPage(initialUrl: CurrentConsoleAppConfig.instance.url,)));+ });}}diff --git a/console/generic_app/lib/ui/WebViewPage.dart b/console/generic_app/lib/ui/WebViewPage.dartindex 44187a1a3..07d52dd6a 100644--- a/console/generic_app/lib/ui/WebViewPage.dart+++ b/console/generic_app/lib/ui/WebViewPage.dart@@ -1,6 +1,9 @@import 'dart:async';import 'package:flutter/material.dart';+import 'package:generic_app/ConsoleProviders/GeofenceProvider.dart';+import 'package:generic_app/config/CurrentConsoleAppConfig.dart';+import 'package:generic_app/models/LinkConfig.dart';import 'package:webview_flutter/webview_flutter.dart';class WebViewPage extends StatefulWidget {@@ -15,13 +18,20 @@ class WebViewPage extends StatefulWidget {class _WebViewPageState extends State<WebViewPage> {final Completer<WebViewController> _controller =- Completer<WebViewController>();+ Completer<WebViewController>();++ GeofenceProvider _geofenceProvider;++ @override+ void initState() {+ GeofenceProvider.getInstance().then((value) => _geofenceProvider = value);+ super.initState();+ }@overrideWidget build(BuildContext context) {- return Scaffold(- body: SafeArea(- child: WebView(+ var stack = Stack(children: <Widget>[+ WebView(onPageStarted: (url) {print("started: $url");},@@ -36,8 +46,28 @@ class _WebViewPageState extends State<WebViewPage> {navigationDelegate: (navigationRequest) {return NavigationDecision.navigate;},- ),- ));+ )+ ]);++ if (CurrentConsoleAppConfig.instance.menuEnabled) {+ switch (CurrentConsoleAppConfig.instance.menuPosition) {+ case "BOTTOM_RIGHT":+ stack.children.add(Positioned(bottom: 25, right: 25, child: _menuPopup()));+ break;+ case "TOP_LEFT":+ stack.children.add(Positioned(top: 25, left: 25, child: _menuPopup()));+ break;+ case "TOP_RIGHT":+ stack.children.add(Positioned(top: 25, right: 25, child: _menuPopup()));+ break;+ case "BOTTOM_LEFT":+ default:+ stack.children.add(Positioned(bottom: 25, left: 25, child: _menuPopup()));+ break;+ }+ }++ return Scaffold(body: SafeArea(child: stack));}JavascriptChannel _toasterJavascriptChannel(BuildContext context) {@@ -49,4 +79,42 @@ class _WebViewPageState extends State<WebViewPage> {);});}++ Widget _menuPopup() =>+ PopupMenuButton<int>(+ itemBuilder: (context) {+ List<PopupMenuItem<int>> items = new List<PopupMenuItem<int>>();++ if (CurrentConsoleAppConfig.instance.links == null) return items;++ int index = 0;+ for (LinkConfig linkConfig+ in CurrentConsoleAppConfig.instance.links) {+ items.add(PopupMenuItem(+ value: index++,+ child: Text(+ linkConfig.displayText,+ style: TextStyle(color: Colors.black87),+ ),+ ));+ }+ return items;+ },+ child: Container(+ height: 50,+ width: 50,+ decoration: BoxDecoration(+ shape: BoxShape.circle,+ color: CurrentConsoleAppConfig.instance.primaryColor,+ ),+ child: Icon(Icons.menu),+ ),+ offset: Offset(0, -100),+ elevation: 2,+ onSelected: (selectedValue) {+ LinkConfig linkConfig =+ CurrentConsoleAppConfig.instance.links[selectedValue];+ print(linkConfig);+ },+ );}diff --git a/console/generic_app/lib/utils/HexColor.dart b/console/generic_app/lib/utils/HexColor.dartnew file mode 100644index 000000000..379eb45f5--- /dev/null+++ b/console/generic_app/lib/utils/HexColor.dart@@ -0,0 +1,13 @@+import 'dart:ui';++class HexColor extends Color {+ static int _getColorFromHex(String hexColor) {+ hexColor = hexColor.toUpperCase().replaceAll("#", "");+ if (hexColor.length == 6) {+ hexColor = "FF" + hexColor;+ }+ return int.parse(hexColor, radix: 16);+ }++ HexColor(final String hexColor) : super(_getColorFromHex(hexColor));+}\ No newline at end of filediff --git a/console/generic_app/pubspec.lock b/console/generic_app/pubspec.locknew file mode 100644index 000000000..5714e8bf3--- /dev/null+++ b/console/generic_app/pubspec.lock@@ -0,0 +1,551 @@+# Generated by pub+# See https://dart.dev/tools/pub/glossary#lockfile+packages:+ _fe_analyzer_shared:+ dependency: transitive+ description:+ name: _fe_analyzer_shared+ url: "https://pub.dartlang.org"+ source: hosted+ version: "4.0.0"+ analyzer:+ dependency: transitive+ description:+ name: analyzer+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.39.10"+ archive:+ dependency: transitive+ description:+ name: archive+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.13"+ args:+ dependency: transitive+ description:+ name: args+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.6.0"+ async:+ dependency: transitive+ description:+ name: async+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.4.1"+ boolean_selector:+ dependency: transitive+ description:+ name: boolean_selector+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0"+ build:+ dependency: transitive+ description:+ name: build+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.2.2"+ build_config:+ dependency: transitive+ description:+ name: build_config+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.4.2"+ build_daemon:+ dependency: transitive+ description:+ name: build_daemon+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.1.4"+ build_resolvers:+ dependency: transitive+ description:+ name: build_resolvers+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.3.7"+ build_runner:+ dependency: "direct dev"+ description:+ name: build_runner+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.8.1"+ build_runner_core:+ dependency: transitive+ description:+ name: build_runner_core+ url: "https://pub.dartlang.org"+ source: hosted+ version: "5.1.0"+ built_collection:+ dependency: transitive+ description:+ name: built_collection+ url: "https://pub.dartlang.org"+ source: hosted+ version: "4.3.2"+ built_value:+ dependency: transitive+ description:+ name: built_value+ url: "https://pub.dartlang.org"+ source: hosted+ version: "7.1.0"+ charcode:+ dependency: transitive+ description:+ name: charcode+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.3"+ checked_yaml:+ dependency: transitive+ description:+ name: checked_yaml+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.0.2"+ code_builder:+ dependency: transitive+ description:+ name: code_builder+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.3.0"+ collection:+ dependency: transitive+ description:+ name: collection+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.14.12"+ convert:+ dependency: transitive+ description:+ name: convert+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.1.1"+ crypto:+ dependency: transitive+ description:+ name: crypto+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.1.4"+ csslib:+ dependency: transitive+ description:+ name: csslib+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.16.1"+ cupertino_icons:+ dependency: "direct main"+ description:+ name: cupertino_icons+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.3"+ dart_style:+ dependency: transitive+ description:+ name: dart_style+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.3.6"+ fixnum:+ dependency: transitive+ description:+ name: fixnum+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.10.11"+ flutter:+ dependency: "direct main"+ description: flutter+ source: sdk+ version: "0.0.0"+ flutter_geofence:+ dependency: "direct main"+ description:+ name: flutter_geofence+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.2.0"+ flutter_test:+ dependency: "direct dev"+ description: flutter+ source: sdk+ version: "0.0.0"+ flutter_web_plugins:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.0"+ glob:+ dependency: transitive+ description:+ name: glob+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.2.0"+ graphs:+ dependency: transitive+ description:+ name: graphs+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.2.0"+ html:+ dependency: transitive+ description:+ name: html+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.14.0+3"+ http:+ dependency: "direct main"+ description:+ name: http+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.12.1"+ http_multi_server:+ dependency: transitive+ description:+ name: http_multi_server+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.2.0"+ http_parser:+ dependency: transitive+ description:+ name: http_parser+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.1.4"+ image:+ dependency: transitive+ description:+ name: image+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.1.12"+ io:+ dependency: transitive+ description:+ name: io+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.3.4"+ js:+ dependency: transitive+ description:+ name: js+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.6.2"+ json_annotation:+ dependency: "direct main"+ description:+ name: json_annotation+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.0.1"+ json_serializable:+ dependency: "direct dev"+ description:+ name: json_serializable+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.3.0"+ logging:+ dependency: transitive+ description:+ name: logging+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.11.4"+ matcher:+ dependency: transitive+ description:+ name: matcher+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.12.6"+ meta:+ dependency: transitive+ description:+ name: meta+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.8"+ mime:+ dependency: transitive+ description:+ name: mime+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.9.6+3"+ node_interop:+ dependency: transitive+ description:+ name: node_interop+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.1"+ node_io:+ dependency: transitive+ description:+ name: node_io+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.1"+ package_config:+ dependency: transitive+ description:+ name: package_config+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.9.3"+ path:+ dependency: transitive+ description:+ name: path+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.6.4"+ pedantic:+ dependency: transitive+ description:+ name: pedantic+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.9.0"+ permission_handler:+ dependency: "direct main"+ description:+ name: permission_handler+ url: "https://pub.dartlang.org"+ source: hosted+ version: "5.0.1+1"+ permission_handler_platform_interface:+ dependency: transitive+ description:+ name: permission_handler_platform_interface+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.1"+ petitparser:+ dependency: transitive+ description:+ name: petitparser+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.4.0"+ plugin_platform_interface:+ dependency: transitive+ description:+ name: plugin_platform_interface+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.0.2"+ pool:+ dependency: transitive+ description:+ name: pool+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.4.0"+ pub_semver:+ dependency: transitive+ description:+ name: pub_semver+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.4.4"+ pubspec_parse:+ dependency: transitive+ description:+ name: pubspec_parse+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.5"+ quiver:+ dependency: transitive+ description:+ name: quiver+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.1.3"+ shared_preferences:+ dependency: "direct main"+ description:+ name: shared_preferences+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.5.7+3"+ shared_preferences_macos:+ dependency: transitive+ description:+ name: shared_preferences_macos+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.0.1+10"+ shared_preferences_platform_interface:+ dependency: transitive+ description:+ name: shared_preferences_platform_interface+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.0.4"+ shared_preferences_web:+ dependency: transitive+ description:+ name: shared_preferences_web+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.2+7"+ shelf:+ dependency: transitive+ description:+ name: shelf+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.7.7"+ shelf_web_socket:+ dependency: transitive+ description:+ name: shelf_web_socket+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.2.3"+ sky_engine:+ dependency: transitive+ description: flutter+ source: sdk+ version: "0.0.99"+ source_gen:+ dependency: transitive+ description:+ name: source_gen+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.9.5"+ source_span:+ dependency: transitive+ description:+ name: source_span+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.7.0"+ stack_trace:+ dependency: transitive+ description:+ name: stack_trace+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.9.3"+ stream_channel:+ dependency: transitive+ description:+ name: stream_channel+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.0"+ stream_transform:+ dependency: transitive+ description:+ name: stream_transform+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.2.0"+ string_scanner:+ dependency: transitive+ description:+ name: string_scanner+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.0.5"+ term_glyph:+ dependency: transitive+ description:+ name: term_glyph+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.0"+ test_api:+ dependency: transitive+ description:+ name: test_api+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.2.15"+ timing:+ dependency: transitive+ description:+ name: timing+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.1+2"+ typed_data:+ dependency: transitive+ description:+ name: typed_data+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.6"+ vector_math:+ dependency: transitive+ description:+ name: vector_math+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.0.8"+ watcher:+ dependency: transitive+ description:+ name: watcher+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.9.7+15"+ web_socket_channel:+ dependency: transitive+ description:+ name: web_socket_channel+ url: "https://pub.dartlang.org"+ source: hosted+ version: "1.1.0"+ webview_flutter:+ dependency: "direct main"+ description:+ name: webview_flutter+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.3.22+1"+ xml:+ dependency: transitive+ description:+ name: xml+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.6.1"+ yaml:+ dependency: transitive+ description:+ name: yaml+ url: "https://pub.dartlang.org"+ source: hosted+ version: "2.2.1"+sdks:+ dart: ">=2.7.0 <3.0.0"+ flutter: ">=1.12.13+hotfix.5 <2.0.0"diff --git a/console/generic_app/pubspec.yaml b/console/generic_app/pubspec.yamlnew file mode 100644index 000000000..7fad261d7--- /dev/null+++ b/console/generic_app/pubspec.yaml@@ -0,0 +1,56 @@+name: generic_app+description: A new Flutter project.++# The following defines the version and build number for your application.+# A version number is three numbers separated by dots, like 1.2.43+# followed by an optional build number separated by a +.+# Both the version and the builder number may be overridden in flutter+# build by specifying --build-name and --build-number, respectively.+# In Android, build-name is used as versionName while build-number used as versionCode.+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning+# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.+# Read more about iOS versioning at+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html+version: 1.0.0+1++environment:+ sdk: ">=2.2.0 <3.0.0"++dependencies:+ flutter:+ sdk: flutter++ # The following adds the Cupertino Icons font to your application.+ # Use with the CupertinoIcons class for iOS style icons.+ cupertino_icons: ^0.1.2++ http: ^0.12.0+4+ json_annotation: ^3.0.1++ flutter_geofence: ^0.2.0+ webview_flutter: ^0.3.22+1+ shared_preferences: ^0.5.7+3+ permission_handler: ^5.0.1+1++dev_dependencies:+ flutter_test:+ sdk: flutter++ build_runner: 1.8.1+ json_serializable: 3.3.0+++# For information on the generic Dart part of this file, see the+# following page: https://dart.dev/tools/pub/pubspec++# The following section is specific to Flutter.+flutter:++ # The following line ensures that the Material Icons font is+ # included with your application, so that you can use the icons in+ # the material Icons class.+ uses-material-design: true++ # To add assets to your application, add an assets section, like this:+ assets:+ - assets/images/