Skip to content

armgit / core

Public Imported from GitHub
0

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

Removed console/generic_app due to gradle build errors and believed to be obsolete

Rich Turner01cf12f51f5b
diff --git a/build.gradle b/build.gradle
deleted file mode 100644
index cbcc25105..000000000
--- a/build.gradle
+++ /dev/null
@@ -1,3 +0,0 @@
-allprojects {
- apply from: "${findProject(":openremote") != null ? project(":openremote").projectDir : rootDir}/project.gradle"
-}
diff --git a/console/generic_app/.gitignore b/console/generic_app/.gitignore
deleted file mode 100644
index ae1f1838e..000000000
--- a/console/generic_app/.gitignore
+++ /dev/null
@@ -1,37 +0,0 @@
-# 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/**/.packages
diff --git a/console/generic_app/.metadata b/console/generic_app/.metadata
deleted file mode 100644
index 4adf4bf02..000000000
--- a/console/generic_app/.metadata
+++ /dev/null
@@ -1,10 +0,0 @@
-# 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: app
diff --git a/console/generic_app/README.md b/console/generic_app/README.md
deleted file mode 100644
index 70a7a7beb..000000000
--- a/console/generic_app/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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/analysis_options.yaml b/console/generic_app/analysis_options.yaml
deleted file mode 100644
index 393775706..000000000
--- a/console/generic_app/analysis_options.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-include: package:lint/analysis_options.yaml
-
-analyzer:
- exclude:
- - "lib/generated/**"
- errors:
- missing_required_param: error
diff --git a/console/generic_app/android/.gitignore b/console/generic_app/android/.gitignore
deleted file mode 100644
index bc2100d8f..000000000
--- a/console/generic_app/android/.gitignore
+++ /dev/null
@@ -1,7 +0,0 @@
-gradle-wrapper.jar
-/.gradle
-/captures/
-/gradlew
-/gradlew.bat
-/local.properties
-GeneratedPluginRegistrant.java
diff --git a/console/generic_app/android/app/build.gradle b/console/generic_app/android/app/build.gradle
deleted file mode 100644
index 938fa1953..000000000
--- a/console/generic_app/android/app/build.gradle
+++ /dev/null
@@ -1,83 +0,0 @@
-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 plugin: 'com.google.gms.google-services'
-apply plugin: 'com.google.firebase.crashlytics'
-apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
-
-def keystoreProperties = new Properties()
-def keystorePropertiesFile = rootProject.file('key.properties')
-if (keystorePropertiesFile.exists()) {
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
-}
-
-android {
- compileSdkVersion 29
-
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
-
- lintOptions {
- disable 'InvalidPackage'
- }
-
- defaultConfig {
- applicationId "io.openremote.app"
- minSdkVersion 23
- targetSdkVersion 29
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
-
- signingConfigs {
- release {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
- storePassword keystoreProperties['storePassword']
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- }
- }
-}
-
-flutter {
- source '../..'
-}
-
-dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
- implementation 'com.google.firebase:firebase-messaging:20.2.4'
- implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
- implementation 'com.google.firebase:firebase-analytics:17.6.0'
- 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/google-services.json b/console/generic_app/android/app/google-services.json
deleted file mode 100644
index 3eb75c537..000000000
--- a/console/generic_app/android/app/google-services.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "project_info": {
- "project_number": "667022545910",
- "firebase_url": "https://openremoteapp-a6a60.firebaseio.com",
- "project_id": "openremoteapp-a6a60",
- "storage_bucket": "openremoteapp-a6a60.appspot.com"
- },
- "client": [
- {
- "client_info": {
- "mobilesdk_app_id": "1:667022545910:android:23c352988b6d3d6ea5add7",
- "android_client_info": {
- "package_name": "io.openremote.app"
- }
- },
- "oauth_client": [
- {
- "client_id": "667022545910-g53k1fiocps3sso32hqvotr34fe2libr.apps.googleusercontent.com",
- "client_type": 3
- }
- ],
- "api_key": [
- {
- "current_key": "AIzaSyCXUqMM_P0Vo_pGmebCLgyD8RWeSN71TxU"
- }
- ],
- "services": {
- "appinvite_service": {
- "other_platform_oauth_client": [
- {
- "client_id": "667022545910-g53k1fiocps3sso32hqvotr34fe2libr.apps.googleusercontent.com",
- "client_type": 3
- },
- {
- "client_id": "667022545910-9fee9uvb8iguprjtimmq8uea6cqt2p5i.apps.googleusercontent.com",
- "client_type": 2,
- "ios_info": {
- "bundle_id": "io.openremote.app"
- }
- }
- ]
- }
- }
- }
- ],
- "configuration_version": "1"
-}
diff --git a/console/generic_app/android/app/src/main/AndroidManifest.xml b/console/generic_app/android/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 6d8e454ea..000000000
--- a/console/generic_app/android/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<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=".Application"
- android:label="OpenRemote"
- android:icon="@mipmap/launcher_icon"
- android:usesCleartextTraffic="true">
- <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>
-
- <intent-filter>
- <action android:name="FLUTTER_NOTIFICATION_CLICK" />
- <category android:name="android.intent.category.DEFAULT" />
- </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" />
-
- <meta-data
- android:name="com.google.firebase.messaging.default_notification_channel_id"
- android:value="@string/notification_channel_id" />
-
- <meta-data
- android:name="com.google.firebase.messaging.default_notification_icon"
- android:resource="@drawable/or_push_icon" />
-
- <receiver android:name="io.flutter.plugins.geofencing.GeofencingBroadcastReceiver"
- android:enabled="true" android:exported="true"/>
- <service android:name="io.flutter.plugins.geofencing.GeofencingService"
- android:permission="android.permission.BIND_JOB_SERVICE" android:exported="true"/>
- </application>
-</manifest>
diff --git a/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/Application.kt b/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/Application.kt
deleted file mode 100644
index 758c80a83..000000000
--- a/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/Application.kt
+++ /dev/null
@@ -1,45 +0,0 @@
-package io.openremote.generic_app
-
-import android.app.NotificationChannel
-import android.app.NotificationManager
-import android.content.Context
-import android.os.Build
-import io.flutter.app.FlutterApplication
-import io.flutter.plugin.common.PluginRegistry
-import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
-import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService
-import io.flutter.plugins.geofencing.GeofencingService
-import io.flutter.embedding.engine.FlutterEngine
-import io.flutter.plugins.GeneratedPluginRegistrant
-
-class Application : FlutterApplication(), PluginRegistrantCallback {
- override fun onCreate() {
- super.onCreate()
- FlutterFirebaseMessagingService.setPluginRegistrant(this)
- GeofencingService.setPluginRegistrant(this)
-
- // Create the NotificationChannel, but only on API 26+ because
- // the NotificationChannel class is new and not in the support library
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- val channelID = getString(R.string.notification_channel_id)
- val name = getString(R.string.notification_channel_name)
- val descriptionText = getString(R.string.notification_channel_desc)
- val importance = NotificationManager.IMPORTANCE_HIGH
- val channel = NotificationChannel(channelID, name, importance).apply {
- description = descriptionText
- }
- // Register the channel with the system
- val notificationManager: NotificationManager =
- getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
- notificationManager.createNotificationChannel(channel)
- }
- }
-
- override fun registerWith(registry: PluginRegistry) {
- io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin"))
- io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin.registerWith(registry?.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
- registry?.registrarFor("io.flutter.plugins.geofencing.GeofencingPlugin")
-
- GeneratedPluginRegistrant.registerWith(FlutterEngine(this))
- }
-}
diff --git a/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/MainActivity.kt b/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/MainActivity.kt
deleted file mode 100644
index 3a792eeee..000000000
--- a/console/generic_app/android/app/src/main/kotlin/io/openremote/generic_app/MainActivity.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-package io.openremote.generic_app
-
-import androidx.annotation.NonNull;
-import io.flutter.embedding.android.FlutterActivity
-import io.flutter.embedding.engine.FlutterEngine
-import io.flutter.plugins.GeneratedPluginRegistrant
-
-class MainActivity: FlutterActivity() {
-
-}
diff --git a/console/generic_app/android/app/src/main/res/drawable/ic_settings.xml b/console/generic_app/android/app/src/main/res/drawable/ic_settings.xml
deleted file mode 100644
index 697f873e0..000000000
--- a/console/generic_app/android/app/src/main/res/drawable/ic_settings.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<vector android:height="24dp" android:tint="#4C4C4C"
- android:viewportHeight="24" android:viewportWidth="24"
- android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
- <path android:fillColor="#4C4C4C" android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
-</vector>
diff --git a/console/generic_app/android/app/src/main/res/drawable/launch_background.xml b/console/generic_app/android/app/src/main/res/drawable/launch_background.xml
deleted file mode 100644
index 304732f88..000000000
--- a/console/generic_app/android/app/src/main/res/drawable/launch_background.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Modify this file to customize your launch splash screen -->
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@android:color/white" />
-
- <!-- You can insert your own image assets here -->
- <!-- <item>
- <bitmap
- android:gravity="center"
- android:src="@mipmap/launch_image" />
- </item> -->
-</layer-list>
diff --git a/console/generic_app/android/app/src/main/res/drawable/or_push_icon.png b/console/generic_app/android/app/src/main/res/drawable/or_push_icon.png
deleted file mode 100644
index e1020884e..000000000
Binary files a/console/generic_app/android/app/src/main/res/drawable/or_push_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/console/generic_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
deleted file mode 100644
index d128696a6..000000000
Binary files a/console/generic_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/console/generic_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
deleted file mode 100644
index d7eb4644c..000000000
Binary files a/console/generic_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/console/generic_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
deleted file mode 100644
index c7b3c5338..000000000
Binary files a/console/generic_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/console/generic_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
deleted file mode 100644
index 1f7f142f7..000000000
Binary files a/console/generic_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/console/generic_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
deleted file mode 100644
index 8d3688ee0..000000000
Binary files a/console/generic_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png and /dev/null differ
diff --git a/console/generic_app/android/app/src/main/res/values-nl/strings.xml b/console/generic_app/android/app/src/main/res/values-nl/strings.xml
deleted file mode 100644
index 8ad7e21bf..000000000
--- a/console/generic_app/android/app/src/main/res/values-nl/strings.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="starting_page">Project veranderen</string>
-</resources>
\ No newline at end of file
diff --git a/console/generic_app/android/app/src/main/res/values/strings.xml b/console/generic_app/android/app/src/main/res/values/strings.xml
deleted file mode 100644
index 94bfa4e40..000000000
--- a/console/generic_app/android/app/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <string name="starting_page">Change project</string>
- <string name="notification_channel_id" translatable="false">or_fcm_id</string>
- <string name="notification_channel_name">OR notifications</string>
- <string name="notification_channel_desc">Receive information about your project.</string>
-</resources>
diff --git a/console/generic_app/android/app/src/main/res/values/styles.xml b/console/generic_app/android/app/src/main/res/values/styles.xml
deleted file mode 100644
index 00fa4417c..000000000
--- a/console/generic_app/android/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
- <!-- Show a splash screen on the activity. Automatically removed when
- Flutter draws its first frame -->
- <item name="android:windowBackground">@drawable/launch_background</item>
- </style>
-</resources>
diff --git a/console/generic_app/android/build.gradle b/console/generic_app/android/build.gradle
deleted file mode 100644
index 42b3896ec..000000000
--- a/console/generic_app/android/build.gradle
+++ /dev/null
@@ -1,33 +0,0 @@
-buildscript {
- ext.kotlin_version = '1.4.10'
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.5.4'
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath 'com.google.gms:google-services:4.3.3'
- classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
- }
-}
-
-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/gradle.properties b/console/generic_app/android/gradle.properties
deleted file mode 100644
index 38c8d4544..000000000
--- a/console/generic_app/android/gradle.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-org.gradle.jvmargs=-Xmx1536M
-android.enableR8=true
-android.useAndroidX=true
-android.enableJetifier=true
diff --git a/console/generic_app/android/gradle/wrapper/gradle-wrapper.properties b/console/generic_app/android/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 296b146b7..000000000
--- a/console/generic_app/android/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,6 +0,0 @@
-#Fri Jun 23 08:50:38 CEST 2017
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
diff --git a/console/generic_app/android/key.properties b/console/generic_app/android/key.properties
deleted file mode 100644
index 2977a88a6..000000000
--- a/console/generic_app/android/key.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-storePassword=sQzDcfOefncnFDQx
-keyPassword=sQzDcfOefncnFDQx
-keyAlias=or_demo
-storeFile=/Users/michael/Documents/AppBriek/OpenRemote/Code/openremote/console/generic_app/android/or_demo.jks
diff --git a/console/generic_app/android/settings.gradle b/console/generic_app/android/settings.gradle
deleted file mode 100644
index 5a2f14fb1..000000000
--- a/console/generic_app/android/settings.gradle
+++ /dev/null
@@ -1,15 +0,0 @@
-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/assets/images/or_app_icon.png b/console/generic_app/assets/images/or_app_icon.png
deleted file mode 100644
index 34fed749a..000000000
Binary files a/console/generic_app/assets/images/or_app_icon.png and /dev/null differ
diff --git a/console/generic_app/assets/images/or_logo.png b/console/generic_app/assets/images/or_logo.png
deleted file mode 100644
index d7154867e..000000000
Binary files a/console/generic_app/assets/images/or_logo.png and /dev/null differ
diff --git a/console/generic_app/assets/images/or_push_icon.png b/console/generic_app/assets/images/or_push_icon.png
deleted file mode 100644
index e1020884e..000000000
Binary files a/console/generic_app/assets/images/or_push_icon.png and /dev/null differ
diff --git a/console/generic_app/assets/images/or_splash.png b/console/generic_app/assets/images/or_splash.png
deleted file mode 100644
index 0464d21b3..000000000
Binary files a/console/generic_app/assets/images/or_splash.png and /dev/null differ
diff --git a/console/generic_app/ios/.gitignore b/console/generic_app/ios/.gitignore
deleted file mode 100644
index e96ef602b..000000000
--- a/console/generic_app/ios/.gitignore
+++ /dev/null
@@ -1,32 +0,0 @@
-*.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.perspectivev3
diff --git a/console/generic_app/ios/Flutter/AppFrameworkInfo.plist b/console/generic_app/ios/Flutter/AppFrameworkInfo.plist
deleted file mode 100644
index 6b4c0f78a..000000000
--- a/console/generic_app/ios/Flutter/AppFrameworkInfo.plist
+++ /dev/null
@@ -1,26 +0,0 @@
-<?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.xcconfig
deleted file mode 100644
index e8efba114..000000000
--- a/console/generic_app/ios/Flutter/Debug.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#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.xcconfig
deleted file mode 100644
index 399e9340e..000000000
--- a/console/generic_app/ios/Flutter/Release.xcconfig
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
-#include "Generated.xcconfig"
diff --git a/console/generic_app/ios/GoogleService-Info.plist b/console/generic_app/ios/GoogleService-Info.plist
deleted file mode 100644
index bbc96593f..000000000
--- a/console/generic_app/ios/GoogleService-Info.plist
+++ /dev/null
@@ -1,36 +0,0 @@
-<?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 file
diff --git a/console/generic_app/ios/Runner.xcodeproj/project.pbxproj b/console/generic_app/ios/Runner.xcodeproj/project.pbxproj
deleted file mode 100644
index df4c779ff..000000000
--- a/console/generic_app/ios/Runner.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,631 +0,0 @@
-// !$*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 */; };
- 4CD7187324C9968C00692984 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 4CD7187224C9968C00692984 /* GoogleService-Info.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>"; };
- 4CD7187224C9968C00692984 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
- 4CD7187424C996B000692984 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; 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 /* OpenRemote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OpenRemote.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 = (
- 4CD7187224C9968C00692984 /* GoogleService-Info.plist */,
- 9740EEB11CF90186004384FC /* Flutter */,
- 97C146F01CF9000F007C117D /* Runner */,
- 97C146EF1CF9000F007C117D /* Products */,
- 3664A0ADDA5E1A55BB613DF5 /* Pods */,
- 57736F341263449A81B6F2ED /* Frameworks */,
- );
- sourceTree = "<group>";
- };
- 97C146EF1CF9000F007C117D /* Products */ = {
- isa = PBXGroup;
- children = (
- 97C146EE1CF9000F007C117D /* OpenRemote.app */,
- );
- name = Products;
- sourceTree = "<group>";
- };
- 97C146F01CF9000F007C117D /* Runner */ = {
- isa = PBXGroup;
- children = (
- 4CD7187424C996B000692984 /* Runner.entitlements */,
- 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 */,
- 4CFA0C4E253EEA4B0060C0EF /* Crashlytics */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = Runner;
- productName = Runner;
- productReference = 97C146EE1CF9000F007C117D /* OpenRemote.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 */,
- 4CD7187324C9968C00692984 /* GoogleService-Info.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";
- };
- 4CFA0C4E253EEA4B0060C0EF /* Crashlytics */ = {
- isa = PBXShellScriptBuildPhase;
- buildActionMask = 2147483647;
- files = (
- );
- inputFileListPaths = (
- );
- inputPaths = (
- "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
- "$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
- );
- name = Crashlytics;
- outputFileListPaths = (
- );
- outputPaths = (
- );
- runOnlyForDeploymentPostprocessing = 0;
- shellPath = /bin/sh;
- shellScript = "${PODS_ROOT}/FirebaseCrashlytics/run\n\n";
- };
- 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}/GoogleUtilities/GoogleUtilities.framework",
- "${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
- "${BUILT_PRODUCTS_DIR}/Protobuf/Protobuf.framework",
- "${BUILT_PRODUCTS_DIR}/geofencing/geofencing.framework",
- "${BUILT_PRODUCTS_DIR}/location/location.framework",
- "${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
- "${BUILT_PRODUCTS_DIR}/quick_actions/quick_actions.framework",
- "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.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}/GoogleUtilities.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Protobuf.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/geofencing.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/location.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/quick_actions.framework",
- "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.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;
- 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 = 12.4;
- 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;
- CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 16;
- 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",
- );
- MARKETING_VERSION = 1.0.2;
- PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;
- PRODUCT_NAME = OpenRemote;
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = 1;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Profile;
- };
- 97C147031CF9000F007C117D /* Debug */ = {
- isa = XCBuildConfiguration;
- 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 = 12.4;
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- };
- name = Debug;
- };
- 97C147041CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- 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 = 12.4;
- 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;
- CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 16;
- 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",
- );
- MARKETING_VERSION = 1.0.2;
- PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;
- PRODUCT_NAME = OpenRemote;
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = 1;
- VERSIONING_SYSTEM = "apple-generic";
- };
- name = Debug;
- };
- 97C147071CF9000F007C117D /* Release */ = {
- isa = XCBuildConfiguration;
- baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
- buildSettings = {
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_ENABLE_MODULES = YES;
- CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CURRENT_PROJECT_VERSION = 16;
- 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",
- );
- MARKETING_VERSION = 1.0.2;
- PRODUCT_BUNDLE_IDENTIFIER = io.openremote.app;
- PRODUCT_NAME = OpenRemote;
- SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
- SWIFT_VERSION = 5.0;
- TARGETED_DEVICE_FAMILY = 1;
- 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.xcworkspacedata
deleted file mode 100644
index 1d526a16e..000000000
--- a/console/generic_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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.xcscheme
deleted file mode 100644
index dcdcff71d..000000000
--- a/console/generic_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
- LastUpgradeVersion = "1160"
- 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 = "OpenRemote.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">
- <MacroExpansion>
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "97C146ED1CF9000F007C117D"
- BuildableName = "OpenRemote.app"
- BlueprintName = "Runner"
- ReferencedContainer = "container:Runner.xcodeproj">
- </BuildableReference>
- </MacroExpansion>
- <Testables>
- </Testables>
- </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 = "OpenRemote.app"
- BlueprintName = "Runner"
- ReferencedContainer = "container:Runner.xcodeproj">
- </BuildableReference>
- </BuildableProductRunnable>
- </LaunchAction>
- <ProfileAction
- buildConfiguration = "Profile"
- shouldUseLaunchSchemeArgsEnv = "YES"
- savedToolIdentifier = ""
- useCustomWorkingDirectory = "NO"
- debugDocumentVersioning = "YES">
- <BuildableProductRunnable
- runnableDebuggingMode = "0">
- <BuildableReference
- BuildableIdentifier = "primary"
- BlueprintIdentifier = "97C146ED1CF9000F007C117D"
- BuildableName = "OpenRemote.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.xcworkspacedata
deleted file mode 100644
index 21a3cc14c..000000000
--- a/console/generic_app/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,10 +0,0 @@
-<?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.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/console/generic_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
deleted file mode 100644
index 18d981003..000000000
--- a/console/generic_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
+++ /dev/null
@@ -1,8 +0,0 @@
-<?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/generic_app/ios/Runner/AppDelegate.swift b/console/generic_app/ios/Runner/AppDelegate.swift
deleted file mode 100644
index b13915c42..000000000
--- a/console/generic_app/ios/Runner/AppDelegate.swift
+++ /dev/null
@@ -1,27 +0,0 @@
-import UIKit
-import Flutter
-import geofencing
-
-@UIApplicationMain
-@objc class AppDelegate: FlutterAppDelegate {
- override func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- GeneratedPluginRegistrant.register(with: self)
-
- GeofencingPlugin.setPluginRegistrantCallback { (registry) in GeneratedPluginRegistrant.register(with: registry) }
-
- UNUserNotificationCenter.current().delegate = self;
-
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
- }
-
- @available(iOS 9.0, *)
- override func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
- let controller = window.rootViewController as? FlutterViewController
-
- let channel = FlutterMethodChannel(name: "plugins.flutter.io/quick_actions", binaryMessenger: controller! as! FlutterBinaryMessenger)
- channel.invokeMethod("launch", arguments: shortcutItem.type)
- }
-}
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.json
deleted file mode 100644
index 19f7ff69a..000000000
--- a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,116 +0,0 @@
-{
- "images" : [
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "20x20"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "3x",
- "size" : "20x20"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "29x29"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "3x",
- "size" : "29x29"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "40x40"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "3x",
- "size" : "40x40"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "2x",
- "size" : "60x60"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "iphone",
- "scale" : "3x",
- "size" : "60x60"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "1x",
- "size" : "20x20"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "2x",
- "size" : "20x20"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "1x",
- "size" : "29x29"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "2x",
- "size" : "29x29"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "1x",
- "size" : "40x40"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "2x",
- "size" : "40x40"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "1x",
- "size" : "76x76"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "2x",
- "size" : "76x76"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ipad",
- "scale" : "2x",
- "size" : "83.5x83.5"
- },
- {
- "filename" : "[email protected]",
- "idiom" : "ios-marketing",
- "scale" : "1x",
- "size" : "1024x1024"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index ad43546ff..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 6e3e1c94f..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 399abf5a0..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 399abf5a0..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 22c6080af..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 98be8ad89..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 297f1f1f8..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 297f1f1f8..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index e382dff07..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 399abf5a0..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 9b51cabd3..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 9b51cabd3..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 1bf66a183..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 1bf66a183..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 692c9eecf..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 14bb13149..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index a7526578e..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]
deleted file mode 100644
index 34cbe60d0..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/Contents.json b/console/generic_app/ios/Runner/Assets.xcassets/Contents.json
deleted file mode 100644
index 73c00596a..000000000
--- a/console/generic_app/ios/Runner/Assets.xcassets/Contents.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/Contents.json b/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/Contents.json
deleted file mode 100644
index 679782945..000000000
--- a/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/Contents.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "cog.png",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/cog.png b/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/cog.png
deleted file mode 100644
index 7d7d8c246..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/ic_settings.imageset/cog.png and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Contents.json b/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Contents.json
deleted file mode 100644
index 1c5dd9b53..000000000
--- a/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Contents.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "images" : [
- {
- "idiom" : "universal",
- "scale" : "1x"
- },
- {
- "idiom" : "universal",
- "scale" : "2x"
- },
- {
- "filename" : "Icon-512.png",
- "idiom" : "universal",
- "scale" : "3x"
- }
- ],
- "info" : {
- "author" : "xcode",
- "version" : 1
- }
-}
diff --git a/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Icon-512.png b/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Icon-512.png
deleted file mode 100644
index 58f43cb8b..000000000
Binary files a/console/generic_app/ios/Runner/Assets.xcassets/or_logo.imageset/Icon-512.png and /dev/null differ
diff --git a/console/generic_app/ios/Runner/Base.lproj/LaunchScreen.storyboard b/console/generic_app/ios/Runner/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index c0e6207bf..000000000
--- a/console/generic_app/ios/Runner/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
- <device id="retina6_1" orientation="portrait" appearance="light"/>
- <dependencies>
- <deployment identifier="iOS"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
- <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">
- <layoutGuides>
- <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
- <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
- </layoutGuides>
- <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
- <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <subviews>
- <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="or_logo" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
- <rect key="frame" x="121.5" y="362.5" width="171" height="171"/>
- </imageView>
- </subviews>
- <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
- <constraints>
- <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
- <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
- </constraints>
- </view>
- </viewController>
- <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
- </objects>
- <point key="canvasLocation" x="76.811594202898561" y="251.11607142857142"/>
- </scene>
- </scenes>
- <resources>
- <image name="or_logo" width="170.66667175292969" height="170.66667175292969"/>
- </resources>
-</document>
diff --git a/console/generic_app/ios/Runner/Base.lproj/Main.storyboard b/console/generic_app/ios/Runner/Base.lproj/Main.storyboard
deleted file mode 100644
index f3c28516f..000000000
--- a/console/generic_app/ios/Runner/Base.lproj/Main.storyboard
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
- <dependencies>
- <deployment identifier="iOS"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
- </dependencies>
- <scenes>
- <!--Flutter View Controller-->
- <scene sceneID="tne-QT-ifu">
- <objects>
- <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
- <layoutGuides>
- <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
- <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
- </layoutGuides>
- <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
- <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
- </view>
- </viewController>
- <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
- </objects>
- </scene>
- </scenes>
-</document>
diff --git a/console/generic_app/ios/Runner/Info.plist b/console/generic_app/ios/Runner/Info.plist
deleted file mode 100644
index c3be213ad..000000000
--- a/console/generic_app/ios/Runner/Info.plist
+++ /dev/null
@@ -1,74 +0,0 @@
-<?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>$(PRODUCT_NAME)</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>generic_app</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>$(MARKETING_VERSION)</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>$(CURRENT_PROJECT_VERSION)</string>
- <key>ITSAppUsesNonExemptEncryption</key>
- <false/>
- <key>LSRequiresIPhoneOS</key>
- <true/>
- <key>NSAppleMusicUsageDescription</key>
- <string>Permission to Apple Music is needed in order to easly share information</string>
- <key>NSCalendarsUsageDescription</key>
- <string>Permission to Calendars is needed in order to easly share information</string>
- <key>NSContactsUsageDescription</key>
- <string>Permission to Contacts is needed in order to easly share information</string>
- <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
- <string>Location is needed in order to get updates on surveys</string>
- <key>NSLocationAlwaysUsageDescription</key>
- <string>Location is needed in order to get updates on surveys</string>
- <key>NSLocationUsageDescription</key>
- <string>Location is needed in order to get updates on surveys</string>
- <key>NSLocationWhenInUseUsageDescription</key>
- <string>Location is needed in order to get updates on surveys</string>
- <key>NSMotionUsageDescription</key>
- <string>Permission to Motion is needed in order to easly share information</string>
- <key>NSSpeechRecognitionUsageDescription</key>
- <string>Permission to Speach Recognition is needed in order to easly share information</string>
- <key>UIBackgroundModes</key>
- <array>
- <string>location</string>
- <string>remote-notification</string>
- </array>
- <key>UILaunchStoryboardName</key>
- <string>LaunchScreen</string>
- <key>UIMainStoryboardFile</key>
- <string>Main</string>
- <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>
- <key>UIViewControllerBasedStatusBarAppearance</key>
- <false/>
- <key>io.flutter.embedded_views_preview</key>
- <true/>
-</dict>
-</plist>
diff --git a/console/generic_app/ios/Runner/Runner-Bridging-Header.h b/console/generic_app/ios/Runner/Runner-Bridging-Header.h
deleted file mode 100644
index 663565c8e..000000000
--- a/console/generic_app/ios/Runner/Runner-Bridging-Header.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#import "GeneratedPluginRegistrant.h"
-#import <geofencing/GeofencingPlugin.h>
diff --git a/console/generic_app/ios/Runner/Runner.entitlements b/console/generic_app/ios/Runner/Runner.entitlements
deleted file mode 100644
index 903def2af..000000000
--- a/console/generic_app/ios/Runner/Runner.entitlements
+++ /dev/null
@@ -1,8 +0,0 @@
-<?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>aps-environment</key>
- <string>development</string>
-</dict>
-</plist>
diff --git a/console/generic_app/ios/Runner/mapstogpx20200923_085404.gpx b/console/generic_app/ios/Runner/mapstogpx20200923_085404.gpx
deleted file mode 100644
index e69de29bb..000000000
diff --git a/console/generic_app/lib/ConsoleProviders/geo_location.dart b/console/generic_app/lib/ConsoleProviders/geo_location.dart
deleted file mode 100644
index fa7592ada..000000000
--- a/console/generic_app/lib/ConsoleProviders/geo_location.dart
+++ /dev/null
@@ -1,9 +0,0 @@
-
-import 'package:generic_app/models/geofence_definition.dart';
-
-class GeoLocation {
- final GeofenceDefinition geofenceDefinition;
- final Map<String, dynamic> data;
-
- GeoLocation(this.geofenceDefinition, {this.data});
-}
diff --git a/console/generic_app/lib/ConsoleProviders/geofence_provider.dart b/console/generic_app/lib/ConsoleProviders/geofence_provider.dart
deleted file mode 100644
index 5773df8d6..000000000
--- a/console/generic_app/lib/ConsoleProviders/geofence_provider.dart
+++ /dev/null
@@ -1,346 +0,0 @@
-import 'dart:convert';
-
-import 'package:flutter/material.dart';
-import 'package:generic_app/ConsoleProviders/geo_location.dart';
-import 'package:generic_app/models/geofence_definition.dart';
-import 'package:generic_app/network/api_manager.dart';
-import 'package:geofencing/geofencing.dart';
-import 'package:location/location.dart' as lm;
-import 'package:permission_handler/permission_handler.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-
-import 'provider_constants.dart';
-
-class GeofenceProvider {
- static GeofenceProvider _instance;
-
- 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;
-
- ProviderCallback _enableCallback;
- ProviderCallback _getLocationCallback;
-
- String _baseURL;
- String _consoleId;
- List<GeofenceDefinition> geofences;
-
- GeoLocation _enteredLocation;
- GeoLocation _exitedLocation;
- bool _sendQueued = false;
- final List<GeofenceEvent> triggers = <GeofenceEvent>[
- GeofenceEvent.enter,
- GeofenceEvent.exit
- ];
-
- static Future geofenceTriggerCallback(
- List<String> ids, Location location, GeofenceEvent event) async {
- final GeofenceProvider instance = await GeofenceProvider.getInstance();
- if (event == GeofenceEvent.enter) {
- ids.forEach((id) {
- final GeofenceDefinition geofenceDefinition =
- instance.geofences.firstWhere((element) => element.id == id, orElse: () => null);
- if (geofenceDefinition != null) {
- instance._queueSendLocation(geofenceDefinition, {
- "type": "Point",
- "coordinates": [location.longitude, location.latitude]
- });
- }
- });
- }
- if (event == GeofenceEvent.exit) {
- ids.forEach((id) {
- final GeofenceDefinition geofenceDefinition =
- instance.geofences.firstWhere((element) => element.id == id, orElse: () => null);
- if (geofenceDefinition != null) {
- instance._queueSendLocation(geofenceDefinition, null);
- }
- });
- }
- }
-
- lm.Location _locationManager;
-
- GeofenceProvider._internal(this._baseURL, this._consoleId, this.geofences,
- this._sharedPreferences, this._apiManager, this._locationManager);
-
- factory GeofenceProvider(SharedPreferences sharedPreferences) {
- final String geofenceString = sharedPreferences.getString(geofencesKey);
- List<GeofenceDefinition> geofences;
- if (geofenceString != null) {
- geofences = List<GeofenceDefinition>.from(json
- .decode(geofenceString)
- .map((item) => GeofenceDefinition.fromJson(item)));
- } else {
- geofences = <GeofenceDefinition>[];
- }
-
- return GeofenceProvider._internal(
- sharedPreferences.getString(baseUrlKey),
- sharedPreferences.getString(consoleIdKey),
- geofences,
- sharedPreferences,
- ApiManager(sharedPreferences.getString(baseUrlKey), baseHeaders: {"Content-Type": "application/json", "Accept": "application/json"}),
- lm.Location());
- }
-
- static Future<GeofenceProvider> getInstance() async {
- return _instance ??= GeofenceProvider(await SharedPreferences.getInstance());
- }
-
- Future<Map<String, dynamic>> 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) &&
- _sharedPreferences.getBool(geoDisabledKey)
- };
- }
-
- Future enable(String baseUrl, String consoleId, ProviderCallback callback) async {
- _baseURL = baseUrl;
- _consoleId = consoleId;
- _apiManager.baseUrl = baseUrl;
- await _sharedPreferences.setString(baseUrlKey, baseUrl);
- await _sharedPreferences.setString(consoleIdKey, consoleId);
- await _sharedPreferences.setBool(geoDisabledKey, false);
- await _sharedPreferences.setString(baseUrlKey, baseUrl);
- _enableCallback = callback;
-
- if (await Permission.locationAlways.isGranted) {
- _startGeofenceProvider();
- _enableCallback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "geofence",
- "hasPermission": await Permission.locationAlways.isGranted,
- "success": true
- });
- Future.delayed(const Duration(seconds: 5)).then((value) => refreshGeofences());
- } else {
- if (await Permission.locationAlways.isUndetermined) {
- Permission.locationAlways.request().then((value) {
- if (value.isGranted) {
- _startGeofenceProvider();
- Future.delayed(const Duration(seconds: 5))
- .then((value) => refreshGeofences());
- }
- _enableCallback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "geofence",
- "hasPermission": value.isGranted,
- "success": true
- });
- });
- } else {
- _enableCallback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "geofence",
- "hasPermission": false,
- "success": true
- });
- }
- }
- }
-
- Future<Map<String, dynamic>> disable() async {
- for (final String geofenceId in geofences.map((e) => e.id)) {
- await GeofencingManager.removeGeofenceById(geofenceId);
- }
-
- await _sharedPreferences.setBool(geoDisabledKey, true);
- await _sharedPreferences.remove(baseUrlKey);
- return {
- "action": "PROVIDER_DISABLE",
- "provider": "geofence",
- };
- }
-
- Future addGeofence(GeofenceDefinition geofenceDefinition) async {
- await GeofencingManager.registerGeofence(
- GeofenceRegion(
- geofenceDefinition.id,
- geofenceDefinition.lat,
- geofenceDefinition.lng,
- geofenceDefinition.radius,
- triggers), geofenceTriggerCallback);
- }
-
- Future _startGeofenceProvider() async {
- await GeofencingManager.initialize();
- geofences.forEach((geofence) async {
- await addGeofence(geofence);
- });
- }
-
- Future removeGeofence(String id) async {
- await GeofencingManager.removeGeofenceById(id);
- }
-
- Future refreshGeofences() async {
- _apiManager.getAll<GeofenceDefinition>(["rules", "geofences", _consoleId],
- GeofenceDefinition.fromJson).then((geofenceDefinitions) async {
- print("Fetched geofences=${geofenceDefinitions.length}");
-
- final List<GeofenceDefinition> remainingGeofences = [];
- geofences.forEach((oldGeofence) async {
- if (!geofenceDefinitions.any((definition) => definition.id == oldGeofence.id)) {
- await removeGeofence(oldGeofence.id);
- } else {
- remainingGeofences.add(oldGeofence);
- }
- });
-
- geofenceDefinitions.forEach((definition) async {
- if (!remainingGeofences.any((element) => element.id == definition.id)) {
- await addGeofence(definition);
- }
- });
-
- await _sharedPreferences
- .setString(geofencesKey,
- json.encode(geofenceDefinitions.map((e) => e.toJson()).toList()))
- .then((value) => geofences = geofenceDefinitions);
- });
- }
-
- void _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(const Duration(seconds: 2)).then((value) {
- _doSendLocation();
- });
- }
- }
-
- Future _doSendLocation() async {
- print("Do send location");
- bool success = false;
-
- if (_exitedLocation != null) {
- if (await _sendLocation(
- _exitedLocation.geofenceDefinition, _exitedLocation.data)) {
- _exitedLocation = null;
- success = true;
- }
- } else if (_enteredLocation != null) {
- if (await _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;
- }
- }
-
- Future<bool> _sendLocation(GeofenceDefinition geofenceDefinition,
- Map<String, dynamic> locationData) {
- return _apiManager
- .put(
- overrideUrl:
- "${_baseURL}${geofenceDefinition.url}",
- rawModel: locationData != null
- ? jsonEncode(locationData)
- : null.toString())
- .then((value) => true)
- .catchError((error) {
- print(error);
- return false;
- });
- }
-
- Future getLocation(ProviderCallback callback, BuildContext context) async {
- _getLocationCallback = callback;
-
- if (await Permission.locationAlways.isGranted) {
- lm.LocationData locationData = await _locationManager.getLocation();
- _getLocationCallback({
- "action": "GET_LOCATION",
- "provider": "geofence",
- "data": {
- "latitude": locationData.latitude,
- "longitude": locationData.longitude
- }
- });
- } else {
- if (await Permission.locationAlways.isUndetermined) {
- Permission.locationAlways.request().then((value) {
- if (value.isGranted) {
- _locationManager.getLocation().then((locationData) {
- _getLocationCallback({
- "action": "GET_LOCATION",
- "provider": "geofence",
- "data": {
- "latitude": locationData.latitude,
- "longitude": locationData.longitude
- }
- });
- });
- }
- });
- } else {
- if (await Permission.locationAlways.isDenied) {
- showDialog(
- context: context,
- builder: (BuildContext context) {
- return AlertDialog(
- title: const Text("Location permission denied"),
- content: const 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>[
- FlatButton(
- onPressed: () {
- openAppSettings();
- },
- child: const Text("Yes"),
- ),
- FlatButton(
- onPressed: () {
- Navigator.of(context).pop();
- },
- child: const Text("No"),
- ),
- ],
- );
- });
- }
- }
- }
- }
-}
diff --git a/console/generic_app/lib/ConsoleProviders/provider_constants.dart b/console/generic_app/lib/ConsoleProviders/provider_constants.dart
deleted file mode 100644
index 5d9dcf766..000000000
--- a/console/generic_app/lib/ConsoleProviders/provider_constants.dart
+++ /dev/null
@@ -1 +0,0 @@
-typedef ProviderCallback = Function(Map<String, dynamic>);
\ No newline at end of file
diff --git a/console/generic_app/lib/ConsoleProviders/push_provider.dart b/console/generic_app/lib/ConsoleProviders/push_provider.dart
deleted file mode 100644
index f75fc2031..000000000
--- a/console/generic_app/lib/ConsoleProviders/push_provider.dart
+++ /dev/null
@@ -1,93 +0,0 @@
-import 'package:firebase_messaging/firebase_messaging.dart';
-import 'package:permission_handler/permission_handler.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-
-import 'provider_constants.dart';
-
-class PushProvider {
- static const String consoleIdKey = "consoleId";
- static const String pushDisabledKey = "pushDisabled";
-
- final String _version = "fcm";
- final SharedPreferences _sharedPreferences;
- final FirebaseMessaging _fcm;
-
- String _consoleId;
-
- PushProvider._internal(this._sharedPreferences, this._fcm);
-
- static Future<PushProvider> getInstance() async {
- return PushProvider._internal(
- await SharedPreferences.getInstance(), FirebaseMessaging());
- }
-
- Future<Map<String, dynamic>> initialize() async {
- return {
- "action": "PROVIDER_INIT",
- "provider": "push",
- "version": _version,
- "requiresPermission": true,
- "hasPermission": await Permission.notification.isGranted,
- "success": true,
- "enabled": false,
- "disabled": _sharedPreferences.containsKey(pushDisabledKey) &&
- _sharedPreferences.getBool(pushDisabledKey)
- };
- }
-
- Future enable(String consoleId, ProviderCallback callback) async {
- _consoleId = consoleId;
- await _sharedPreferences.setString(consoleIdKey, consoleId);
- await _sharedPreferences.setBool(pushDisabledKey, false);
-
- if (await Permission.notification.isGranted) {
- _fcm.getToken().then((token) {
- callback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "push",
- "hasPermission": true,
- "success": true,
- "data": {"token": token}
- });
- });
- } else {
- if (await Permission.notification.isUndetermined) {
- Permission.notification.request().then((value) {
- if (value.isGranted) {
- _fcm.getToken().then((token) {
- callback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "push",
- "hasPermission": value.isGranted,
- "success": true,
- "data": {"token": token}
- });
- });
- } else {
- callback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "push",
- "hasPermission": value.isGranted,
- "success": true
- });
- }
- });
- } else {
- callback?.call({
- "action": "PROVIDER_ENABLE",
- "provider": "push",
- "hasPermission": false,
- "success": true
- });
- }
- }
- }
-
- Future<Map<String, dynamic>> disable() async {
- await _sharedPreferences.setBool(pushDisabledKey, true);
- return {
- "action": "PROVIDER_DISABLE",
- "provider": "push",
- };
- }
-}
diff --git a/console/generic_app/lib/ConsoleProviders/storage_provider.dart b/console/generic_app/lib/ConsoleProviders/storage_provider.dart
deleted file mode 100644
index 82fc84b46..000000000
--- a/console/generic_app/lib/ConsoleProviders/storage_provider.dart
+++ /dev/null
@@ -1,59 +0,0 @@
-import 'dart:core';
-
-import 'package:shared_preferences/shared_preferences.dart';
-
-class StorageProvider {
- final String _version = "1.0.0";
- final SharedPreferences _sharedPreferences;
-
- StorageProvider._internal(this._sharedPreferences);
-
- static Future<StorageProvider> getInstance() async {
- return StorageProvider._internal(await SharedPreferences.getInstance());
- }
-
- Map<String, dynamic> initialize() {
- return {
- "action": "PROVIDER_INIT",
- "provider": "storage",
- "version": _version,
- "requiresPermission": false,
- "hasPermission": true,
- "success": true,
- "enabled": true
- };
- }
-
- Map<String, dynamic> enable() {
- return {
- "action": "PROVIDER_ENABLE",
- "provider": "storage",
- "hasPermission": true,
- "success": true
- };
- }
-
- Map<String, dynamic> disable() {
- return {
- "action": "PROVIDER_DISABLE",
- "provider": "storage",
- };
- }
-
- void store(String key, String data) {
- if (data == null) {
- _sharedPreferences.remove(key);
- } else {
- _sharedPreferences.setString(key, data);
- }
- }
-
- Map<String, dynamic> retrieve(String key) {
- return {
- "action": "RETRIEVE",
- "provider": "storage",
- "key": key,
- "value": _sharedPreferences.getString(key)
- };
- }
-}
diff --git a/console/generic_app/lib/config/current_console_app_config.dart b/console/generic_app/lib/config/current_console_app_config.dart
deleted file mode 100644
index e2116b753..000000000
--- a/console/generic_app/lib/config/current_console_app_config.dart
+++ /dev/null
@@ -1,79 +0,0 @@
-import 'dart:ui';
-
-import 'package:generic_app/models/console_app_config.dart';
-import 'package:generic_app/models/link_config.dart';
-import 'package:generic_app/utils/hex_color.dart';
-
-class CurrentConsoleAppConfig {
- static final CurrentConsoleAppConfig instance =
- CurrentConsoleAppConfig._privateConstructor();
-
- CurrentConsoleAppConfig._privateConstructor();
-
- void updateConfig(ConsoleAppConfig appConfig, String project) {
- _realm = appConfig.realm;
- _initialUrl = appConfig.initialUrl;
- _url = appConfig.url;
- _menuEnabled = appConfig.menuEnabled;
- _menuPosition = appConfig.menuPosition;
- _primaryColor = appConfig.primaryColor;
- _secondaryColor = appConfig.secondaryColor;
- _links = appConfig.links;
- _projectName = project;
- }
-
- String _realm;
- String _initialUrl;
- String _url;
- bool _menuEnabled;
- String _menuPosition;
- String _menuImage;
- String _primaryColor;
- String _secondaryColor;
- List<LinkConfig> _links;
- String _projectName;
-
-
- String get realm {
- return _realm;
- }
-
- String get initialUrl {
- return _initialUrl;
- }
-
- String get url {
- return _url;
- //consolePlatform
- //consoleName=realm
- //consoleVersion
- }
-
- 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;
- }
-
- String get baseUrl {
- return "https://$_projectName.openremote.io/api/$_realm";
- }
-}
diff --git a/console/generic_app/lib/events/open_web_page_event.dart b/console/generic_app/lib/events/open_web_page_event.dart
deleted file mode 100644
index 9776eb51a..000000000
--- a/console/generic_app/lib/events/open_web_page_event.dart
+++ /dev/null
@@ -1,6 +0,0 @@
-class OpenWebPageEvent{
-
- String url;
-
- OpenWebPageEvent(this.url);
-}
diff --git a/console/generic_app/lib/generated/intl/messages_all.dart b/console/generic_app/lib/generated/intl/messages_all.dart
deleted file mode 100644
index b28574977..000000000
--- a/console/generic_app/lib/generated/intl/messages_all.dart
+++ /dev/null
@@ -1,63 +0,0 @@
-// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
-// This is a library that looks up messages for specific locales by
-// delegating to the appropriate library.
-
-// Ignore issues from commonly used lints in this file.
-// ignore_for_file:implementation_imports, file_names, unnecessary_new
-// ignore_for_file:unnecessary_brace_in_string_interps, directives_ordering
-// ignore_for_file:argument_type_not_assignable, invalid_assignment
-// ignore_for_file:prefer_single_quotes, prefer_generic_function_type_aliases
-// ignore_for_file:comment_references
-
-import 'dart:async';
-
-import 'package:intl/intl.dart';
-import 'package:intl/message_lookup_by_library.dart';
-import 'package:intl/src/intl_helpers.dart';
-
-import 'messages_en.dart' as messages_en;
-
-typedef Future<dynamic> LibraryLoader();
-Map<String, LibraryLoader> _deferredLibraries = {
- 'en': () => new Future.value(null),
-};
-
-MessageLookupByLibrary _findExact(String localeName) {
- switch (localeName) {
- case 'en':
- return messages_en.messages;
- default:
- return null;
- }
-}
-
-/// User programs should call this before using [localeName] for messages.
-Future<bool> initializeMessages(String localeName) async {
- var availableLocale = Intl.verifiedLocale(
- localeName,
- (locale) => _deferredLibraries[locale] != null,
- onFailure: (_) => null);
- if (availableLocale == null) {
- return new Future.value(false);
- }
- var lib = _deferredLibraries[availableLocale];
- await (lib == null ? new Future.value(false) : lib());
- initializeInternalMessageLookup(() => new CompositeMessageLookup());
- messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
- return new Future.value(true);
-}
-
-bool _messagesExistFor(String locale) {
- try {
- return _findExact(locale) != null;
- } catch (e) {
- return false;
- }
-}
-
-MessageLookupByLibrary _findGeneratedMessagesFor(String locale) {
- var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
- onFailure: (_) => null);
- if (actualLocale == null) return null;
- return _findExact(actualLocale);
-}
diff --git a/console/generic_app/lib/generated/intl/messages_en.dart b/console/generic_app/lib/generated/intl/messages_en.dart
deleted file mode 100644
index 943a8fc0f..000000000
--- a/console/generic_app/lib/generated/intl/messages_en.dart
+++ /dev/null
@@ -1,30 +0,0 @@
-// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
-// This is a library that provides messages for a en locale. All the
-// messages from the main program should be duplicated here with the same
-// function name.
-
-// Ignore issues from commonly used lints in this file.
-// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
-// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
-// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
-// ignore_for_file:unused_import, file_names
-
-import 'package:intl/intl.dart';
-import 'package:intl/message_lookup_by_library.dart';
-
-final messages = new MessageLookup();
-
-typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
-
-class MessageLookup extends MessageLookupByLibrary {
- String get localeName => 'en';
-
- final messages = _notInlinedMessages(_notInlinedMessages);
- static _notInlinedMessages(_) => <String, Function> {
- "changeProject" : MessageLookupByLibrary.simpleMessage("Change project"),
- "connect" : MessageLookupByLibrary.simpleMessage("Connect"),
- "connectToYourApplication" : MessageLookupByLibrary.simpleMessage("Connect to your application"),
- "project" : MessageLookupByLibrary.simpleMessage("Project"),
- "realm" : MessageLookupByLibrary.simpleMessage("Realm")
- };
-}
diff --git a/console/generic_app/lib/generated/l10n.dart b/console/generic_app/lib/generated/l10n.dart
deleted file mode 100644
index 0e4057ec6..000000000
--- a/console/generic_app/lib/generated/l10n.dart
+++ /dev/null
@@ -1,113 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-import 'package:flutter/material.dart';
-import 'package:intl/intl.dart';
-import 'intl/messages_all.dart';
-
-// **************************************************************************
-// Generator: Flutter Intl IDE plugin
-// Made by Localizely
-// **************************************************************************
-
-// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
-
-class S {
- S();
-
- static S current;
-
- static const AppLocalizationDelegate delegate =
- AppLocalizationDelegate();
-
- static Future<S> load(Locale locale) {
- final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
- final localeName = Intl.canonicalizedLocale(name);
- return initializeMessages(localeName).then((_) {
- Intl.defaultLocale = localeName;
- S.current = S();
-
- return S.current;
- });
- }
-
- static S of(BuildContext context) {
- return Localizations.of<S>(context, S);
- }
-
- /// `Connect to your application`
- String get connectToYourApplication {
- return Intl.message(
- 'Connect to your application',
- name: 'connectToYourApplication',
- desc: '',
- args: [],
- );
- }
-
- /// `Project`
- String get project {
- return Intl.message(
- 'Project',
- name: 'project',
- desc: '',
- args: [],
- );
- }
-
- /// `Realm`
- String get realm {
- return Intl.message(
- 'Realm',
- name: 'realm',
- desc: '',
- args: [],
- );
- }
-
- /// `Connect`
- String get connect {
- return Intl.message(
- 'Connect',
- name: 'connect',
- desc: '',
- args: [],
- );
- }
-
- /// `Change project`
- String get changeProject {
- return Intl.message(
- 'Change project',
- name: 'changeProject',
- desc: '',
- args: [],
- );
- }
-}
-
-class AppLocalizationDelegate extends LocalizationsDelegate<S> {
- const AppLocalizationDelegate();
-
- List<Locale> get supportedLocales {
- return const <Locale>[
- Locale.fromSubtags(languageCode: 'en'),
- ];
- }
-
- @override
- bool isSupported(Locale locale) => _isSupported(locale);
- @override
- Future<S> load(Locale locale) => S.load(locale);
- @override
- bool shouldReload(AppLocalizationDelegate old) => false;
-
- bool _isSupported(Locale locale) {
- if (locale != null) {
- for (var supportedLocale in supportedLocales) {
- if (supportedLocale.languageCode == locale.languageCode) {
- return true;
- }
- }
- }
- return false;
- }
-}
\ No newline at end of file
diff --git a/console/generic_app/lib/l10n/intl_en.arb b/console/generic_app/lib/l10n/intl_en.arb
deleted file mode 100644
index 9cfcbdd10..000000000
--- a/console/generic_app/lib/l10n/intl_en.arb
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "connectToYourApplication": "Connect to your application",
- "project": "Project",
- "realm": "Realm",
- "connect": "Connect",
- "changeProject": "Change project"
-}
\ No newline at end of file
diff --git a/console/generic_app/lib/main.dart b/console/generic_app/lib/main.dart
deleted file mode 100644
index a2bf9c367..000000000
--- a/console/generic_app/lib/main.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-import 'package:firebase_core/firebase_core.dart';
-import 'package:firebase_crashlytics/firebase_crashlytics.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
-import 'package:flutter_localizations/flutter_localizations.dart';
-import 'package:generic_app/ui/splash_page.dart';
-
-import 'generated/l10n.dart';
-
-void main() {
- WidgetsFlutterBinding.ensureInitialized();
- SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
- .then((_) async {
- await Firebase.initializeApp();
- FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterError;
- runApp(ORApp());
- });
-}
-class ORApp extends StatelessWidget {
- static final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
-
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- debugShowCheckedModeBanner: false,
- navigatorKey: navigatorKey,
- title: 'OR App',
- theme: ThemeData(
- primarySwatch: Colors.green,
- ),
- localizationsDelegates: [
- S.delegate,
- GlobalMaterialLocalizations.delegate,
- GlobalWidgetsLocalizations.delegate,
- GlobalCupertinoLocalizations.delegate,
- ],
- supportedLocales: S.delegate.supportedLocales,
- home: const SplashPage(),
- );
- }
-}
diff --git a/console/generic_app/lib/models/alert_action.dart b/console/generic_app/lib/models/alert_action.dart
deleted file mode 100644
index 1f3cb0b9c..000000000
--- a/console/generic_app/lib/models/alert_action.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-
-import 'package:generic_app/models/base_model.dart';
-import 'package:json_annotation/json_annotation.dart';
-
-part 'alert_action.g.dart';
-
-@JsonSerializable()
-class AlertAction implements BaseModel {
-
- final String url;
- final String httpMethod;
- final Map<String, dynamic> data;
- final bool silent;
- final bool openInBrowser;
-
- AlertAction({
- this.url,
- this.httpMethod,
- this.data,
- this.silent,
- this.openInBrowser
- });
-
- static AlertAction fromJson(Map<String, dynamic> json) => _$AlertActionFromJson(json);
- @override
- Map<String, dynamic> toJson() => _$AlertActionToJson(this);
-}
diff --git a/console/generic_app/lib/models/alert_action.g.dart b/console/generic_app/lib/models/alert_action.g.dart
deleted file mode 100644
index 48f0d113b..000000000
--- a/console/generic_app/lib/models/alert_action.g.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'alert_action.dart';
-
-// **************************************************************************
-// JsonSerializableGenerator
-// **************************************************************************
-
-AlertAction _$AlertActionFromJson(Map<String, dynamic> json) {
- return AlertAction(
- url: json['url'] as String,
- httpMethod: json['httpMethod'] as String,
- data: json['data'] as Map<String, dynamic>,
- silent: json['silent'] as bool,
- openInBrowser: json['openInBrowser'] as bool,
- );
-}
-
-Map<String, dynamic> _$AlertActionToJson(AlertAction instance) =>
- <String, dynamic>{
- 'url': instance.url,
- 'httpMethod': instance.httpMethod,
- 'data': instance.data,
- 'silent': instance.silent,
- 'openInBrowser': instance.openInBrowser,
- };
diff --git a/console/generic_app/lib/models/alert_button.dart b/console/generic_app/lib/models/alert_button.dart
deleted file mode 100644
index 4e7e0a23d..000000000
--- a/console/generic_app/lib/models/alert_button.dart
+++ /dev/null
@@ -1,23 +0,0 @@
-
-import 'package:generic_app/models/base_model.dart';
-import 'package:json_annotation/json_annotation.dart';
-
-import 'alert_action.dart';
-
-part 'alert_button.g.dart';
-
-@JsonSerializable()
-class AlertButton implements BaseModel {
-
- final String title;
- final AlertAction action;
-
- AlertButton({
- this.title,
- this.action,
- });
-
- static AlertButton fromJson(Map<String, dynamic> json) => _$AlertButtonFromJson(json);
- @override
- Map<String, dynamic> toJson() => _$AlertButtonToJson(this);
-}
diff --git a/console/generic_app/lib/models/alert_button.g.dart b/console/generic_app/lib/models/alert_button.g.dart
deleted file mode 100644
index f03dbbdd1..000000000
--- a/console/generic_app/lib/models/alert_button.g.dart
+++ /dev/null
@@ -1,22 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'alert_button.dart';
-
-// **************************************************************************
-// JsonSerializableGenerator
-// **************************************************************************
-
-AlertButton _$AlertButtonFromJson(Map<String, dynamic> json) {
- return AlertButton(
- title: json['title'] as String,
- action: json['action'] == null
- ? null
- : AlertAction.fromJson(json['action'] as Map<String, dynamic>),
- );
-}
-
-Map<String, dynamic> _$AlertButtonToJson(AlertButton instance) =>
- <String, dynamic>{
- 'title': instance.title,
- 'action': instance.action,
- };
diff --git a/console/generic_app/lib/models/base_model.dart b/console/generic_app/lib/models/base_model.dart
deleted file mode 100644
index f7aec39d2..000000000
--- a/console/generic_app/lib/models/base_model.dart
+++ /dev/null
@@ -1,5 +0,0 @@
-abstract class BaseModel {
-
- static BaseModel fromJson(Map<String, dynamic> json) {}
- Map<String, dynamic> toJson() {}
-}
diff --git a/console/generic_app/lib/models/console_app_config.dart b/console/generic_app/lib/models/console_app_config.dart
deleted file mode 100644
index d192c4070..000000000
--- a/console/generic_app/lib/models/console_app_config.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-
-import 'package:generic_app/models/link_config.dart';
-import 'package:json_annotation/json_annotation.dart';
-
-import 'base_model.dart';
-
-part 'console_app_config.g.dart';
-
-@JsonSerializable()
-class ConsoleAppConfig implements BaseModel {
-
- final int id;
- final String realm;
- final String initialUrl;
- final String url;
- final bool menuEnabled;
- final String menuPosition;
- final String menuImage;
- final String primaryColor;
- final String secondaryColor;
- final List<LinkConfig> links;
-
- ConsoleAppConfig({
- this.id,
- this.realm,
- this.initialUrl,
- this.url,
- this.menuEnabled,
- this.menuPosition,
- this.menuImage,
- this.primaryColor,
- this.secondaryColor,
- this.links
- });
-
- static ConsoleAppConfig fromJson(Map<String, dynamic> json) => _$ConsoleAppConfigFromJson(json);
- @override
- Map<String, dynamic> toJson() => _$ConsoleAppConfigToJson(this);
-}
diff --git a/console/generic_app/lib/models/console_app_config.g.dart b/console/generic_app/lib/models/console_app_config.g.dart
deleted file mode 100644
index f426eef50..000000000
--- a/console/generic_app/lib/models/console_app_config.g.dart
+++ /dev/null
@@ -1,39 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'console_app_config.dart';
-
-// **************************************************************************
-// JsonSerializableGenerator
-// **************************************************************************
-
-ConsoleAppConfig _$ConsoleAppConfigFromJson(Map<String, dynamic> json) {
- return ConsoleAppConfig(
- id: json['id'] as int,
- realm: json['realm'] as String,
- initialUrl: json['initialUrl'] 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,
- 'initialUrl': instance.initialUrl,
- '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/geofence_definition.dart b/console/generic_app/lib/models/geofence_definition.dart
deleted file mode 100644
index d9e37f301..000000000
--- a/console/generic_app/lib/models/geofence_definition.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-import 'package:generic_app/models/base_model.dart';
-import 'package:json_annotation/json_annotation.dart';
-
-part 'geofence_definition.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);
- @override
- 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/geofence_definition.g.dart b/console/generic_app/lib/models/geofence_definition.g.dart
deleted file mode 100644
index a38932681..000000000
--- a/console/generic_app/lib/models/geofence_definition.g.dart
+++ /dev/null
@@ -1,28 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'geofence_definition.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/link_config.dart b/console/generic_app/lib/models/link_config.dart
deleted file mode 100644
index 649ac1449..000000000
--- a/console/generic_app/lib/models/link_config.dart
+++ /dev/null
@@ -1,19 +0,0 @@
-
-import 'package:json_annotation/json_annotation.dart';
-
-import 'base_model.dart';
-
-part 'link_config.g.dart';
-
-@JsonSerializable()
-class LinkConfig implements BaseModel {
-
- final String displayText;
- final String pageLink;
-
- LinkConfig(this.displayText, this.pageLink);
-
- static LinkConfig fromJson(Map<String, dynamic> json) => _$LinkConfigFromJson(json);
- @override
- Map<String, dynamic> toJson() => _$LinkConfigToJson(this);
-}
diff --git a/console/generic_app/lib/models/link_config.g.dart b/console/generic_app/lib/models/link_config.g.dart
deleted file mode 100644
index afbd91617..000000000
--- a/console/generic_app/lib/models/link_config.g.dart
+++ /dev/null
@@ -1,20 +0,0 @@
-// GENERATED CODE - DO NOT MODIFY BY HAND
-
-part of 'link_config.dart';
-
-// **************************************************************************
-// JsonSerializableGenerator
-// **************************************************************************
-
-LinkConfig _$LinkConfigFromJson(Map<String, dynamic> json) {
- return LinkConfig(
- json['displayText'] as String,
- json['pageLink'] as String,
- );
-}
-
-Map<String, dynamic> _$LinkConfigToJson(LinkConfig instance) =>
- <String, dynamic>{
- 'displayText': instance.displayText,
- 'pageLink': instance.pageLink,
- };
diff --git a/console/generic_app/lib/network/api_manager.dart b/console/generic_app/lib/network/api_manager.dart
deleted file mode 100644
index b4e1ee6d9..000000000
--- a/console/generic_app/lib/network/api_manager.dart
+++ /dev/null
@@ -1,170 +0,0 @@
-import 'dart:collection';
-import 'dart:convert';
-
-import 'package:http/http.dart' as http;
-
-import '../models/base_model.dart';
-
-typedef ResponseParser<T extends BaseModel> = T Function(Map<String, dynamic>);
-
-enum HttpMethod { get, post, put, patch, delete }
-
-class ApiManager {
- String baseUrl;
- String accessToken;
- String responseBodyDataKey;
- Map<String, String> baseHeaders;
-
- ApiManager(this.baseUrl, {this.baseHeaders});
-
- Future<T> get<T>(List<String> pathComponents, ResponseParser responseParser,
- {Map<String, dynamic> queryParameters,
- Map<String, String> additionalHeaders}) async {
-
- return http.get(_prepareUrl(pathComponents, queryParameters: queryParameters), headers: _prepareHeaders(additionalHeaders)).then((response) {
- if (response.statusCode == 200) {
- try {
- final Map<String, dynamic> json = jsonDecode(response.body);
- var jsonData = json;
- if (responseBodyDataKey != null && responseBodyDataKey != "") {
- jsonData = json[responseBodyDataKey];
- }
- if (jsonData is List) {
- throw Exception("Expected json object");
- } else {
- return responseParser(jsonData) as T;
- }
- } catch (e) {
- print(e);
- rethrow;
- }
- } else {
- throw Exception(
- "Response error: ${response.statusCode} - ${response.body}");
- }
- });
- }
-
- Future<List<T>> getAll<T>(
- List<String> pathComponents, ResponseParser responseParser,
- {Map<String, dynamic> queryParameters,
- Map<String, String> additionalHeaders}) async {
-
- return http.get(_prepareUrl(pathComponents, queryParameters: queryParameters), headers: _prepareHeaders(additionalHeaders)).then((response) {
- if (response.statusCode == 200) {
- try {
- final json = jsonDecode(response.body);
- var jsonData = json;
- if (responseBodyDataKey != null && responseBodyDataKey != "") {
- jsonData = json[responseBodyDataKey];
- }
- if (jsonData is List) {
- return List<T>.from(jsonData.map((item) => responseParser(item)));
- } else {
- throw Exception("Expected array in body");
- }
- } catch (e) {
- print(e);
- rethrow;
- }
- } else {
- throw Exception(
- "Response error: ${response.statusCode} - ${response.body}");
- }
- });
- }
-
-
-
- Future<T> post<T extends BaseModel>({ResponseParser responseParser,
- List<String> pathComponents, T model, String rawModel,
- Map<String, String> additionalHeaders, String overrideUrl}) async {
-
- return http
- .post(overrideUrl ?? _prepareUrl(pathComponents), headers: _prepareHeaders(additionalHeaders), body: model?.toJson() ?? rawModel)
- .then((response) {
- if (response.statusCode == 201) {
- try {
- final json = jsonDecode(response.body);
- var jsonData = json;
- if (responseBodyDataKey != null && responseBodyDataKey != "") {
- jsonData = json[responseBodyDataKey];
- }
- if (jsonData is List) {
- throw Exception("Expected json object");
- } else {
- return responseParser(jsonData) as T;
- }
- } catch (e) {
- print(e);
- rethrow;
- }
- } else if (response.statusCode >= 200 && response.statusCode <= 299) {
- return null;
- } else {
- throw Exception(
- "Response error: ${response.statusCode} - ${response.body}");
- }
- });
- }
-
- Future<T> put<T extends BaseModel>({ResponseParser responseParser,
- List<String> pathComponents, T model, String rawModel,
- Map<String, String> additionalHeaders, String overrideUrl}) async {
-
- return http
- .put(overrideUrl ?? _prepareUrl(pathComponents), headers: _prepareHeaders(additionalHeaders), body: model?.toJson() ?? rawModel)
- .then((response) {
- if (response.statusCode == 201) {
- try {
- final json = jsonDecode(response.body);
- var jsonData = json;
- if (responseBodyDataKey != null && responseBodyDataKey != "") {
- jsonData = json[responseBodyDataKey];
- }
- if (jsonData is List) {
- throw Exception("Expected json object");
- } else {
- return responseParser(jsonData) as T;
- }
- } catch (e) {
- print(e);
- rethrow;
- }
- } else if (response.statusCode >= 200 && response.statusCode <= 299) {
- return null;
- } else {
- throw Exception(
- "Response error: ${response.statusCode} - ${response.body}");
- }
- });
- }
-
- String _prepareUrl(List<String> pathComponents, {Map<String, dynamic> queryParameters}) {
- final StringBuffer urlBuffer = StringBuffer(baseUrl);
-
- pathComponents
- .forEach((pathComponent) => urlBuffer.write("/$pathComponent"));
-
- if (queryParameters != null) {
- urlBuffer.write("?");
- final List<MapEntry<String, dynamic>> params = queryParameters.entries.toList();
- for (var i = 0; i < params.length; i++) {
- if (i > 0) {
- urlBuffer.write("&");
- }
- urlBuffer.write("${params[i].key}=${params[i].value}");
- }
- }
- return urlBuffer.toString();
- }
-
- Map<String, String> _prepareHeaders(Map<String, String> additionalHeaders) {
- final Map<String, String> headers =
- baseHeaders != null ? HashMap.from(baseHeaders) : HashMap();
- if (additionalHeaders != null) {
- headers.addAll(additionalHeaders);
- }
- return headers;
- }
-}
diff --git a/console/generic_app/lib/services/event_bus_service.dart b/console/generic_app/lib/services/event_bus_service.dart
deleted file mode 100644
index b7d421e58..000000000
--- a/console/generic_app/lib/services/event_bus_service.dart
+++ /dev/null
@@ -1,15 +0,0 @@
-import 'package:event_bus/event_bus.dart';
-
-class EventBusService {
- static EventBusService _instance;
-
- EventBus eventBus;
-
- EventBusService._internal() {
- eventBus = EventBus();
- }
-
- static EventBusService getInstance() {
- return _instance ??= EventBusService._internal();
- }
-}
diff --git a/console/generic_app/lib/services/push_notification_service.dart b/console/generic_app/lib/services/push_notification_service.dart
deleted file mode 100644
index 54c61ff19..000000000
--- a/console/generic_app/lib/services/push_notification_service.dart
+++ /dev/null
@@ -1,166 +0,0 @@
-import 'dart:convert';
-import 'dart:io';
-
-import 'package:awesome_dialog/awesome_dialog.dart';
-import 'package:firebase_messaging/firebase_messaging.dart';
-import 'package:flutter/material.dart';
-import 'package:flutter/widgets.dart';
-import 'package:generic_app/ConsoleProviders/geofence_provider.dart';
-import 'package:generic_app/ConsoleProviders/storage_provider.dart';
-import 'package:generic_app/config/current_console_app_config.dart';
-import 'package:generic_app/events/open_web_page_event.dart';
-import 'package:generic_app/models/alert_action.dart';
-import 'package:generic_app/models/alert_button.dart';
-import 'package:url_launcher/url_launcher.dart';
-
-import 'event_bus_service.dart';
-
-Future<dynamic> backgroundMessageHandler(Map<String, dynamic> remoteMessage) async {
- print("background: $remoteMessage");
- Map<dynamic, dynamic> messageData = remoteMessage["data"] ?? remoteMessage;
-
- bool isSilent = !messageData.containsKey("or-title");
-
- if (isSilent) {
- String action = messageData["action"];
-
- switch (action) {
- case "GEOFENCE_REFRESH":
- GeofenceProvider geofenceProvider = await GeofenceProvider
- .getInstance();
- geofenceProvider.refreshGeofences();
- break;
- case "STORE":
- final StorageProvider storageProvider = await StorageProvider
- .getInstance();
- storageProvider.store(messageData["key"], messageData["value"]);
- break;
- }
- }
-}
-
-class PushNotificationService {
- static FirebaseMessaging _fcm;
-
- static BuildContext _context;
-
- static init({@required BuildContext context}) {
- _context = context;
-
- _fcm = FirebaseMessaging();
- _fcm.configure(
- onMessage: (Map<String, dynamic> remoteMessage) async {
- print("onMessage: $remoteMessage");
- await handleNotification(remoteMessage, false, false);
- },
- onLaunch: (Map<String, dynamic> remoteMessage) async {
- print("onLaunch: $remoteMessage");
- await handleNotification(remoteMessage, false, true);
- },
- onResume: (Map<String, dynamic> remoteMessage) async {
- print("onResume: $remoteMessage");
- await handleNotification(remoteMessage, true, false);
- },
- onBackgroundMessage: Platform.isIOS ? null : backgroundMessageHandler,
- );
- }
-
- static Future handleNotification(
- Map<String, dynamic> remoteMessage, bool onResume, bool onLaunch) async {
- Map<dynamic, dynamic> messageData = remoteMessage["data"] ?? remoteMessage;
- if (messageData != null) {
- bool isSilent = (Platform.isAndroid && !messageData.containsKey("or-title"))
- || (Platform.isIOS && messageData["aps"]["alert"] == null);
-
- if (isSilent) {
- String action = messageData["action"];
-
- switch (action) {
- case "GEOFENCE_REFRESH":
- GeofenceProvider geofenceProvider = await GeofenceProvider
- .getInstance();
- geofenceProvider.refreshGeofences();
- break;
- case "STORE":
- StorageProvider storageProvider = await StorageProvider
- .getInstance();
- storageProvider.store(messageData["key"], messageData["value"]);
- break;
- }
- } else {
- String title = Platform.isAndroid ? messageData["or-title"] : messageData["aps"]["alert"]["title"];
- String body = Platform.isAndroid ? messageData["or-body"] : messageData["aps"]["alert"]["body"];
-
- List<AlertButton> buttons;
- AlertButton confirmButton;
- AlertButton declineButton;
- AlertAction action;
-
- // Check for action (to be executed when notification is clicked)
- if (messageData.containsKey("action")) {
- String actionJson = messageData["action"];
-
- if (actionJson != null && actionJson.isNotEmpty) {
- action = AlertAction.fromJson(jsonDecode(actionJson));
- if (onResume || onLaunch) {
- performAlertAction(action);
- }
- }
- }
-
- // Check for buttons
- if (messageData.containsKey("buttons")) {
- String buttonsJson = messageData["buttons"];
- if (buttonsJson != null && buttonsJson.isNotEmpty) {
- buttons = List.from(jsonDecode(buttonsJson)).map((e) => AlertButton.fromJson(e)).toList();
- confirmButton = buttons.firstWhere((element) => element.action != null, orElse: () => null);
- declineButton = buttons.firstWhere((element) => element.action == null, orElse: () => null);
- }
- }
-
- if(!onResume && !onLaunch) {
- AwesomeDialog(
- context: _context,
- dialogType: DialogType.INFO,
- animType: AnimType.BOTTOMSLIDE,
- title: title,
- desc: body,
- btnOkText: confirmButton?.title ?? "Ok",
- btnOkColor: CurrentConsoleAppConfig.instance.primaryColor,
- btnOkOnPress: confirmButton != null ? () {
- if (confirmButton != null && confirmButton.action != null) {
- performAlertAction(confirmButton.action);
- }
- else if (action != null) {
- performAlertAction(action);
- }
- } : null,
- btnCancelText: declineButton?.title,
- btnCancelColor: Colors.black54,
- btnCancelOnPress: declineButton != null ? () {
- } : null
- ).show();
- }
- }
- }
- }
-
- static void performAlertAction(AlertAction action) async {
- if (action.url != null && action.url.isNotEmpty) {
- if (action.openInBrowser) {
- if (await canLaunch(action.url)) {
- await launch(action.url);
- }
- } else {
- EventBusService
- .getInstance()
- .eventBus
- .fire(new OpenWebPageEvent(action.url));
- }
- }
- }
-}
-
-
-
-
diff --git a/console/generic_app/lib/ui/project_page.dart b/console/generic_app/lib/ui/project_page.dart
deleted file mode 100644
index 21fedd894..000000000
--- a/console/generic_app/lib/ui/project_page.dart
+++ /dev/null
@@ -1,161 +0,0 @@
-import 'package:flutter/material.dart';
-import 'package:generic_app/config/current_console_app_config.dart';
-import 'package:generic_app/generated/l10n.dart';
-import 'package:generic_app/models/console_app_config.dart';
-import 'package:generic_app/network/api_manager.dart';
-import 'package:generic_app/ui/web_view_page.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-
-class ProjectPage extends StatefulWidget {
- const ProjectPage({Key key}) : super(key: key);
-
- @override
- _ProjectPageState createState() => _ProjectPageState();
-}
-
-class _ProjectPageState extends State<ProjectPage> {
- SharedPreferences _sharedPreferences;
- String _projectName;
- String _realmName;
- BuildContext _innerContext;
-
- @override
- void initState() {
- SharedPreferences.getInstance().then((value) {
- _sharedPreferences = value;
- });
- super.initState();
- }
-
- @override
- Widget build(BuildContext context) {
-
- return Scaffold(
- backgroundColor: Colors.white,
- body: Builder(builder: (BuildContext innerContext) {
- _innerContext = innerContext;
- return SafeArea(
- child: SingleChildScrollView(
- physics: const ClampingScrollPhysics(),
- child: Align(
- child: Column(children: <Widget>[
- Container(
- color: Colors.white,
- padding:
- const EdgeInsets.only(top: 25, left: 50, right: 50),
- height: MediaQuery.of(context).size.height * 0.4,
- child: Image.asset('assets/images/or_logo.png',
- fit: BoxFit.contain),
- ),
- Container(
- color: Colors.white,
- height: MediaQuery.of(context).size.height * 0.6,
- child: Column(
- children: <Widget>[
- Align(
- alignment: Alignment.centerLeft,
- child: Container(
- padding: const EdgeInsets.only(
- top: 25, left: 25, right: 25),
- child: Text(
- S.of(context).connectToYourApplication,
- style: const TextStyle(
- fontWeight: FontWeight.bold,
- fontSize: 18,
- color: Colors.black54),
- ),
- )),
- Container(
- padding: const EdgeInsets.all(25),
- child: TextField(
- cursorColor: CurrentConsoleAppConfig
- .instance.primaryColor,
- decoration: InputDecoration(
- border: const UnderlineInputBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(3),
- topRight: Radius.circular(3))),
- labelText: S
- .of(context)
- .project,
- filled: true,
- fillColor: Colors.grey.shade100,
- ),
- textInputAction: TextInputAction.next,
- onChanged: (inputText) {
- _projectName = inputText.trim();
- },
- onSubmitted: (inputText) {
- FocusScope.of(context).nextFocus();
- }),
- ),
- Container(
- padding: const EdgeInsets.fromLTRB(25, 10, 25, 10),
- child: TextField(
- cursorColor: CurrentConsoleAppConfig
- .instance.primaryColor,
- decoration: InputDecoration(
- border: const UnderlineInputBorder(
- borderRadius: BorderRadius.only(
- topLeft: Radius.circular(3),
- topRight: Radius.circular(3))),
- labelText: S
- .of(context)
- .realm,
- filled: true,
- fillColor: Colors.grey.shade100,
- ),
- textInputAction: TextInputAction.done,
- onChanged: (inputText) {
- _realmName = inputText.trim();
- },
- onSubmitted: (inputText) {
- _getConsoleAppConfig();
- FocusScope.of(context).unfocus();
- }),
- ),
- Container(
- padding: const EdgeInsets.fromLTRB(25, 10, 25, 10),
- child: Align(
- alignment: Alignment.centerRight,
- child: RaisedButton(
- color: CurrentConsoleAppConfig
- .instance.primaryColor,
- focusColor: CurrentConsoleAppConfig
- .instance.secondaryColor,
- textColor: Colors.white,
- onPressed: () {
- _getConsoleAppConfig();
- },
- child: Text(S.of(context).connect)),
- ),
- )
- ],
- ),
- )
- ]))));
- }));
- }
-
- void _getConsoleAppConfig() {
- final apiManager = ApiManager("https://$_projectName.openremote.io/api/$_realmName");
- apiManager.get(["app", "config"], ConsoleAppConfig.fromJson).then((value) {
- _sharedPreferences.setString("project", _projectName);
- _sharedPreferences.setString("realm", _realmName);
- CurrentConsoleAppConfig.instance.updateConfig(value, _projectName);
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => WebViewPage(
- initialUrl: CurrentConsoleAppConfig.instance.initialUrl,
- )));
- }).catchError((onError) {
- print(onError);
- Scaffold.of(_innerContext).showSnackBar(
- const SnackBar(
- content: Text(
- "Error occurred getting app config. Check your input and try again")),
- );
- });
- }
-}
diff --git a/console/generic_app/lib/ui/splash_page.dart b/console/generic_app/lib/ui/splash_page.dart
deleted file mode 100644
index f9634ae86..000000000
--- a/console/generic_app/lib/ui/splash_page.dart
+++ /dev/null
@@ -1,105 +0,0 @@
-import 'dart:async';
-
-import 'package:flutter/cupertino.dart';
-import 'package:flutter/material.dart';
-import 'package:generic_app/config/current_console_app_config.dart';
-import 'package:generic_app/models/console_app_config.dart';
-import 'package:generic_app/network/api_manager.dart';
-import 'package:generic_app/ui/project_page.dart';
-import 'package:quick_actions/quick_actions.dart';
-import 'package:shared_preferences/shared_preferences.dart';
-
-import '../main.dart';
-import 'web_view_page.dart';
-
-class SplashPage extends StatefulWidget {
- const SplashPage({Key key}) : super(key: key);
-
- @override
- _SplashPageState createState() => _SplashPageState();
-}
-
-class _SplashPageState extends State<SplashPage> {
- SharedPreferences _sharedPreferences;
- String _projectName;
- String _realmName;
-
- @override
- void initState() {
- final QuickActions quickActions = QuickActions();
- quickActions.setShortcutItems(<ShortcutItem>[
- const ShortcutItem(
- type: 'starting_page',
- localizedTitle: 'Change project',
- icon: 'ic_settings'),
- ]);
- quickActions.initialize((String shortcutType) async {
- if (shortcutType == 'starting_page') {
- _sharedPreferences = await SharedPreferences.getInstance();
- await _sharedPreferences.clear();
- ORApp.navigatorKey.currentState.pushReplacement(MaterialPageRoute(builder: (context) => ProjectPage()));
- }
- });
-
- super.initState();
- }
-
- @override
- Widget build(BuildContext context) {
- return FutureBuilder(
- future: Future.delayed(const Duration(seconds: 3), _getProjectData),
- builder: (BuildContext context, AsyncSnapshot snapshot) {
- if (snapshot.hasData) {
- Future.delayed(Duration.zero, () {
- if (snapshot.data) {
- Navigator.pushReplacement(
- context,
- MaterialPageRoute(
- builder: (context) => WebViewPage(
- initialUrl: CurrentConsoleAppConfig.instance.initialUrl)));
- } else {
- Navigator.pushReplacement(context,
- MaterialPageRoute(builder: (context) => const ProjectPage()));
- }
- });
- }
- return _splashIcon();
- });
- }
-
- Widget _splashIcon() {
- return Scaffold(
- body: Align(
- child: Container(
- padding: const EdgeInsets.all(100),
- child: Image.asset('assets/images/or_splash.png',
- fit: BoxFit.contain),
- )));
- }
-
- Future<bool> _getProjectData() async {
- _sharedPreferences = await SharedPreferences.getInstance();
- _projectName = _sharedPreferences.getString("project");
- _realmName = _sharedPreferences.getString("realm");
-
- bool hasData = _projectName != null && _realmName != null;
- if (hasData) {
- hasData = await _getConsoleAppConfig();
- }
-
- return hasData;
- }
-
- Future<bool> _getConsoleAppConfig() async {
- final apiManager =
- ApiManager("https://$_projectName.openremote.io/api/$_realmName");
- return apiManager
- .get(["app", "config"], ConsoleAppConfig.fromJson).then((value) {
- CurrentConsoleAppConfig.instance.updateConfig(value, _projectName);
- return true;
- }).catchError((onError) {
- print(onError);
- return false;
- });
- }
-}
diff --git a/console/generic_app/lib/ui/web_view_page.dart b/console/generic_app/lib/ui/web_view_page.dart
deleted file mode 100644
index 9540f8909..000000000
--- a/console/generic_app/lib/ui/web_view_page.dart
+++ /dev/null
@@ -1,254 +0,0 @@
-import 'dart:async';
-import 'dart:convert';
-
-import 'package:flutter/material.dart';
-import 'package:generic_app/ConsoleProviders/geofence_provider.dart';
-import 'package:generic_app/ConsoleProviders/push_provider.dart';
-import 'package:generic_app/ConsoleProviders/storage_provider.dart';
-import 'package:generic_app/config/current_console_app_config.dart';
-import 'package:generic_app/events/open_web_page_event.dart';
-import 'package:generic_app/models/link_config.dart';
-import 'package:generic_app/services/event_bus_service.dart';
-import 'package:generic_app/services/push_notification_service.dart';
-import 'package:url_launcher/url_launcher.dart';
-import 'package:webview_flutter/webview_flutter.dart';
-
-class WebViewPage extends StatefulWidget {
- const WebViewPage({Key key, this.title, this.initialUrl}) : super(key: key);
-
- final String title;
- final String initialUrl;
-
- @override
- _WebViewPageState createState() => _WebViewPageState();
-}
-
-class _WebViewPageState extends State<WebViewPage> {
- WebViewController _controller;
- GeofenceProvider _geofenceProvider;
- PushProvider _pushProvider;
- StorageProvider _storageProvider;
- WebView _webView;
-
- @override
- void initState() {
- EventBusService
- .getInstance()
- .eventBus
- .on<OpenWebPageEvent>()
- .listen((event) {
- _controller.loadUrl(event.url);
- });
- PushNotificationService.init(context: context);
-
- super.initState();
- }
-
- @override
- Widget build(BuildContext context) {
- _webView = WebView(
- debuggingEnabled: true,
- onPageStarted: (url) {
- print("started: $url");
- },
- initialUrl: Uri.encodeFull(widget.initialUrl),
- javascriptMode: JavascriptMode.unrestricted,
- onWebViewCreated: (WebViewController webViewController) {
- _controller = webViewController;
- },
- javascriptChannels: <JavascriptChannel>{
- _postMessageJavascriptChannel(context),
- },
- navigationDelegate: (navigationRequest) async {
- if (navigationRequest.url.startsWith("webbrowser")) {
- final String navUrl =
- navigationRequest.url.replaceAll("webbrowser", "https");
- if (await canLaunch(navUrl)) {
- await launch(navUrl);
- }
- return NavigationDecision.prevent;
- }
- return NavigationDecision.navigate;
- },
- );
-
- final stack = Stack(children: <Widget>[_webView]);
-
- if (CurrentConsoleAppConfig.instance.menuEnabled) {
- switch (CurrentConsoleAppConfig.instance.menuPosition) {
- case "BOTTOM_RIGHT":
- stack.children
- .add(Positioned(bottom: 25, right: 25, child: _menuPopup(-50, -80)));
- break;
- case "TOP_LEFT":
- stack.children
- .add(Positioned(top: 25, left: 25, child: _menuPopup(0, 80)));
- break;
- case "TOP_RIGHT":
- stack.children
- .add(Positioned(top: 25, right: 25, child: _menuPopup(-50, 80)));
- break;
- case "BOTTOM_LEFT":
- default:
- stack.children
- .add(Positioned(bottom: 25, left: 25, child: _menuPopup(0, -80)));
- break;
- }
- }
-
- return WillPopScope( onWillPop: _onBackPressed, child: Scaffold(body: SafeArea(child: stack)));
- }
-
- void _notifyClient(Map<String, dynamic> data) {
- final String jsonString = json.encode(data);
- _controller.evaluateJavascript(
- "OpenRemoteConsole._handleProviderResponse(JSON.stringify($jsonString))");
- }
-
- JavascriptChannel _postMessageJavascriptChannel(BuildContext context) {
- return JavascriptChannel(
- name: 'MobileInterface',
- onMessageReceived: (JavascriptMessage message) {
- final Map<String, dynamic> messageContent = json.decode(message.message);
- final String messageType = messageContent["type"];
- final Map<String, dynamic> data = messageContent["data"];
- switch (messageType) {
- case "error":
- print("Received WebApp message, error: " + data["error"]);
- Scaffold.of(context).showSnackBar(
- SnackBar(content: Text(data["error"])),
- );
- break;
- case "provider":
- final String action = data["action"];
- if (action != null) {
- final String provider = data["provider"];
- if (provider == "geofence") {
- _handleGeofenceProviderMessage(data);
- } else if (provider == "push") {
- _handlePushProviderMessage(data);
- } else if (provider == "storage") {
- _handleStorageProviderMessage(data);
- }
- }
- break;
- default:
- }
- });
- }
-
- Future _handleGeofenceProviderMessage(Map<String, dynamic> data) async {
- final String action = data["action"];
-
- _geofenceProvider ??= await GeofenceProvider.getInstance();
-
- if (action == "PROVIDER_INIT") {
- _notifyClient(await _geofenceProvider.initialize());
- } else if (action == "PROVIDER_ENABLE") {
- final String consoleId = data["consoleId"];
-
- if (consoleId != null) {
- await _geofenceProvider.enable(
- CurrentConsoleAppConfig.instance.baseUrl, consoleId, (enableData) {
- _notifyClient(enableData);
- });
- }
- } else if (action == "PROVIDER_DISABLE") {
- _notifyClient(await _geofenceProvider.disable());
- } else if (action == "GEOFENCE_REFRESH") {
- _geofenceProvider.refreshGeofences();
- } else if (action == "GET_LOCATION") {
- await _geofenceProvider.getLocation(
- (locationData) => _notifyClient(locationData), context);
- }
- }
-
- Future _handlePushProviderMessage(Map<String, dynamic> data) async {
- final String action = data["action"];
-
- _pushProvider ??= await PushProvider.getInstance();
- if (action == "PROVIDER_INIT") {
- _notifyClient(await _pushProvider.initialize());
- } else if (action == "PROVIDER_ENABLE") {
- final String consoleId = data["consoleId"];
-
- if (consoleId != null) {
- await _pushProvider.enable(
- consoleId, (enableData) => _notifyClient(enableData));
- }
- } else if (action == "PROVIDER_DISABLE") {
- _notifyClient(await _pushProvider.disable());
- }
- }
-
- Future _handleStorageProviderMessage(Map<String, dynamic> data) async {
- final String action = data["action"];
-
- _storageProvider ??= await StorageProvider.getInstance();
-
- if (action == "PROVIDER_INIT") {
- _notifyClient(_storageProvider.initialize());
- } else if (action == "PROVIDER_ENABLE") {
- _notifyClient(_storageProvider.enable());
- } else if (action == "STORE") {
- final String key = data["key"];
- final String valueJson = data["value"];
- _storageProvider.store(key, valueJson);
- } else if (action == "RETRIEVE") {
- final String key = data["key"];
- _notifyClient(_storageProvider.retrieve(key));
- }
- }
-
- Widget _menuPopup(double offsetX, double offsetY) => PopupMenuButton<int>(
- itemBuilder: (context) {
- final List<PopupMenuItem<int>> items = <PopupMenuItem<int>>[];
-
- if (CurrentConsoleAppConfig.instance.links == null) return items;
-
- int index = 0;
- for (final LinkConfig linkConfig in CurrentConsoleAppConfig.instance.links) {
- items.add(PopupMenuItem(
- value: index++,
- child: Text(
- linkConfig.displayText,
- style: const TextStyle(color: Colors.black87),
- ),
- ));
- }
- return items;
- },
- offset: Offset(offsetX, offsetY * CurrentConsoleAppConfig.instance.links?.length ?? 1),
- elevation: 2,
- onSelected: (selectedValue) {
- final LinkConfig linkConfig =
- CurrentConsoleAppConfig.instance.links[selectedValue];
- _controller.loadUrl(Uri.encodeFull(linkConfig.pageLink));
- },
- child: Container(
- height: 50,
- width: 50,
- decoration: BoxDecoration(
- shape: BoxShape.circle,
- color: CurrentConsoleAppConfig.instance.primaryColor,
- boxShadow: [
- BoxShadow(
- color: Colors.grey.withOpacity(0.5),
- spreadRadius: 2,
- blurRadius: 2,
- ),
- ]
- ),
- child: const Icon(Icons.menu),
- ),
- );
-
- Future<bool> _onBackPressed() async {
- if (await _controller.canGoBack()) {
- _controller.goBack();
- return Future.value(false);
- } else {
- return Future.value(true);
- }
- }
-}
diff --git a/console/generic_app/lib/utils/hex_color.dart b/console/generic_app/lib/utils/hex_color.dart
deleted file mode 100644
index 33fe7669e..000000000
--- a/console/generic_app/lib/utils/hex_color.dart
+++ /dev/null
@@ -1,13 +0,0 @@
-import 'dart:ui';
-
-class HexColor extends Color {
- static int _getColorFromHex(String hexColor) {
- String parsedHexColor = hexColor.toUpperCase().replaceAll("#", "");
- if (parsedHexColor.length == 6) {
- parsedHexColor = "FF$parsedHexColor";
- }
- return int.parse(parsedHexColor, radix: 16);
- }
-
- HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
-}
\ No newline at end of file
diff --git a/console/generic_app/pubspec.lock b/console/generic_app/pubspec.lock
deleted file mode 100644
index a4c1184b0..000000000
--- a/console/generic_app/pubspec.lock
+++ /dev/null
@@ -1,899 +0,0 @@
-# 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: "7.0.0"
- analyzer:
- dependency: transitive
- description:
- name: analyzer
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.39.17"
- 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.5.0-nullsafety.1"
- awesome_dialog:
- dependency: "direct main"
- description:
- name: awesome_dialog
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.0"
- boolean_selector:
- dependency: transitive
- description:
- name: boolean_selector
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0-nullsafety.1"
- 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"
- characters:
- dependency: transitive
- description:
- name: characters
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.0-nullsafety.3"
- charcode:
- dependency: transitive
- description:
- name: charcode
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.0-nullsafety.1"
- checked_yaml:
- dependency: transitive
- description:
- name: checked_yaml
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.2"
- cli_util:
- dependency: transitive
- description:
- name: cli_util
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.2.0"
- clock:
- dependency: transitive
- description:
- name: clock
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.0-nullsafety.1"
- code_builder:
- dependency: transitive
- description:
- name: code_builder
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.4.1"
- collection:
- dependency: transitive
- description:
- name: collection
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.15.0-nullsafety.3"
- 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.5"
- csslib:
- dependency: transitive
- description:
- name: csslib
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.16.2"
- cupertino_icons:
- dependency: "direct main"
- description:
- name: cupertino_icons
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.0"
- dart_style:
- dependency: transitive
- description:
- name: dart_style
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.6"
- event_bus:
- dependency: "direct main"
- description:
- name: event_bus
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- fake_async:
- dependency: transitive
- description:
- name: fake_async
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.0-nullsafety.1"
- ffi:
- dependency: transitive
- description:
- name: ffi
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.1.3"
- file:
- dependency: transitive
- description:
- name: file
- url: "https://pub.dartlang.org"
- source: hosted
- version: "5.2.1"
- firebase:
- dependency: transitive
- description:
- name: firebase
- url: "https://pub.dartlang.org"
- source: hosted
- version: "7.3.0"
- firebase_core:
- dependency: "direct main"
- description:
- name: firebase_core
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.5.0+1"
- firebase_core_platform_interface:
- dependency: transitive
- description:
- name: firebase_core_platform_interface
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.0.0"
- firebase_core_web:
- dependency: transitive
- description:
- name: firebase_core_web
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.2.0"
- firebase_crashlytics:
- dependency: "direct main"
- description:
- name: firebase_crashlytics
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.2.1+1"
- firebase_crashlytics_platform_interface:
- dependency: transitive
- description:
- name: firebase_crashlytics_platform_interface
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- firebase_messaging:
- dependency: "direct main"
- description:
- name: firebase_messaging
- url: "https://pub.dartlang.org"
- source: hosted
- version: "7.0.0"
- fixnum:
- dependency: transitive
- description:
- name: fixnum
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.10.11"
- flare_dart:
- dependency: transitive
- description:
- name: flare_dart
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.3.4"
- flare_flutter:
- dependency: transitive
- description:
- name: flare_flutter
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.0.6"
- flutter:
- dependency: "direct main"
- description: flutter
- source: sdk
- version: "0.0.0"
- flutter_launcher_icons:
- dependency: "direct dev"
- description:
- name: flutter_launcher_icons
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.8.0"
- flutter_localizations:
- dependency: "direct main"
- description: flutter
- source: sdk
- version: "0.0.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"
- geofencing:
- dependency: "direct main"
- description:
- name: geofencing
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.1.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.2"
- 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.14"
- intl:
- dependency: transitive
- description:
- name: intl
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.16.1"
- 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.4.1"
- lint:
- dependency: "direct dev"
- description:
- name: lint
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.0"
- linter:
- dependency: "direct dev"
- description:
- name: linter
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.1.118"
- location:
- dependency: "direct main"
- description:
- name: location
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.2"
- location_platform_interface:
- dependency: transitive
- description:
- name: location_platform_interface
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.0"
- location_web:
- dependency: transitive
- description:
- name: location_web
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.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.10-nullsafety.1"
- meta:
- dependency: transitive
- description:
- name: meta
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.0-nullsafety.3"
- mime:
- dependency: transitive
- description:
- name: mime
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.9.7"
- 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.8.0-nullsafety.1"
- path_provider_linux:
- dependency: transitive
- description:
- name: path_provider_linux
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.1+2"
- path_provider_platform_interface:
- dependency: transitive
- description:
- name: path_provider_platform_interface
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- path_provider_windows:
- dependency: transitive
- description:
- name: path_provider_windows
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.4+1"
- 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: "3.0.4"
- platform:
- dependency: transitive
- description:
- name: platform
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.2.1"
- platform_detect:
- dependency: transitive
- description:
- name: platform_detect
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.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"
- process:
- dependency: transitive
- description:
- name: process
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.13"
- 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"
- quick_actions:
- dependency: "direct main"
- description:
- name: quick_actions
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.4.0+8"
- quiver:
- dependency: transitive
- description:
- name: quiver
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.3"
- sa_anicoto:
- dependency: transitive
- description:
- name: sa_anicoto
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- sa_multi_tween:
- dependency: transitive
- description:
- name: sa_multi_tween
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.2"
- sa_stateless_animation:
- dependency: transitive
- description:
- name: sa_stateless_animation
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- sa_v1_migration:
- dependency: transitive
- description:
- name: sa_v1_migration
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.2"
- shared_preferences:
- dependency: "direct main"
- description:
- name: shared_preferences
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.5.12"
- shared_preferences_linux:
- dependency: transitive
- description:
- name: shared_preferences_linux
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.2+2"
- 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"
- shared_preferences_windows:
- dependency: transitive
- description:
- name: shared_preferences_windows
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.1+1"
- shelf:
- dependency: transitive
- description:
- name: shelf
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.7.9"
- shelf_web_socket:
- dependency: transitive
- description:
- name: shelf_web_socket
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.2.3"
- show_up_animation:
- dependency: "direct main"
- description:
- name: show_up_animation
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- simple_animations:
- dependency: transitive
- description:
- name: simple_animations
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.2.2"
- 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.6"
- source_span:
- dependency: transitive
- description:
- name: source_span
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.8.0-nullsafety.2"
- stack_trace:
- dependency: transitive
- description:
- name: stack_trace
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.10.0-nullsafety.1"
- stream_channel:
- dependency: transitive
- description:
- name: stream_channel
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0-nullsafety.1"
- 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.1.0-nullsafety.1"
- supercharged:
- dependency: transitive
- description:
- name: supercharged
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.10.0"
- supercharged_dart:
- dependency: transitive
- description:
- name: supercharged_dart
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.0"
- term_glyph:
- dependency: transitive
- description:
- name: term_glyph
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.0-nullsafety.1"
- test_api:
- dependency: transitive
- description:
- name: test_api
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.2.19-nullsafety.2"
- 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.3.0-nullsafety.3"
- url_launcher:
- dependency: "direct main"
- description:
- name: url_launcher
- url: "https://pub.dartlang.org"
- source: hosted
- version: "5.6.0"
- url_launcher_linux:
- dependency: transitive
- description:
- name: url_launcher_linux
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.1+1"
- url_launcher_macos:
- dependency: transitive
- description:
- name: url_launcher_macos
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.1+7"
- url_launcher_platform_interface:
- dependency: transitive
- description:
- name: url_launcher_platform_interface
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.8"
- url_launcher_web:
- dependency: transitive
- description:
- name: url_launcher_web
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.1.3+2"
- url_launcher_windows:
- dependency: transitive
- description:
- name: url_launcher_windows
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.0.1+1"
- vector_math:
- dependency: transitive
- description:
- name: vector_math
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0-nullsafety.3"
- 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"
- win32:
- dependency: transitive
- description:
- name: win32
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.7.3"
- xdg_directories:
- dependency: transitive
- description:
- name: xdg_directories
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.1.0"
- xml:
- dependency: transitive
- description:
- name: xml
- url: "https://pub.dartlang.org"
- source: hosted
- version: "4.2.0"
- yaml:
- dependency: transitive
- description:
- name: yaml
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.2.1"
-sdks:
- dart: ">=2.10.0-110 <2.11.0"
- flutter: ">=1.12.13+hotfix.5 <2.0.0"
diff --git a/console/generic_app/pubspec.yaml b/console/generic_app/pubspec.yaml
deleted file mode 100644
index 4be2fae3c..000000000
--- a/console/generic_app/pubspec.yaml
+++ /dev/null
@@ -1,77 +0,0 @@
-name: generic_app
-description: Generic app of OpenRemote
-
-# 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.2+16
-
-environment:
- sdk: ">=2.2.0 <3.0.0"
-
-dependencies:
- flutter:
- sdk: flutter
- flutter_localizations:
- sdk: flutter
-
- # The following adds the Cupertino Icons font to your application.
- # Use with the CupertinoIcons class for iOS style icons.
- cupertino_icons: ^1.0.0
-
- http: ^0.12.0+4
- json_annotation: ^3.0.1
-
- geofencing: ^0.1.0
- location: ^3.0.0
- webview_flutter: ^0.3.22+1
- shared_preferences: ^0.5.12
- permission_handler: ^5.0.1+1
- firebase_messaging: ^7.0.0
- quick_actions: 0.4.0+8
- show_up_animation: ^1.0.2
- awesome_dialog: ^1.2.0
- event_bus: ^1.1.1
- url_launcher: ^5.4.2
- firebase_core: ^0.5.0
- firebase_crashlytics: ^0.2.1+1
-
-dev_dependencies:
- flutter_test:
- sdk: flutter
-
- build_runner: 1.8.1
- json_serializable: 3.4.1
- flutter_launcher_icons: ^0.8.0
- linter: ^0.1.116
- lint: ^1.3.0
-
-flutter_icons:
- android: "launcher_icon"
- ios: true
- image_path: "assets/images/or_app_icon.png"
-
-
-# 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/
-flutter_intl:
- enabled: true
diff --git a/project.gradle b/project.gradle
deleted file mode 100644
index bb46a88cd..000000000
--- a/project.gradle
+++ /dev/null
@@ -1,161 +0,0 @@
-// Common configuration applied to all projects
-import static org.apache.tools.ant.taskdefs.condition.Os.FAMILY_WINDOWS
-import static org.apache.tools.ant.taskdefs.condition.Os.isFamily
-
-// Build plugins
-buildscript {
- repositories {
- maven {
- url "https://plugins.gradle.org/m2/"
- }
- }
-}
-
-// Give test projects more memory (Gradle 5 reduced this to 512MB)
-subprojects {
- tasks.withType(Test) {
- maxHeapSize = "2g"
- }
-}
-
-// Default repositories for dependency resolution
-repositories {
- maven {
- url = "https://repo.osgeo.org/repository/release/"
- }
- mavenCentral()
- jcenter()
- maven {
- url "https://oss.sonatype.org/content/repositories/snapshots/"
- }
- maven {
- url "http://m2repo.openremote.com/content/groups/public/"
- }
-}
-
-// Eclipse needs help
-apply plugin: "eclipse"
-
-// Intellij needs help
-apply plugin: 'idea'
-// Use the same output directories in IDE as in gradle
-idea {
- module {
- outputDir file('build/classes/main')
- testOutputDir file('build/classes/test')
- excludeDirs += file(".node")
- excludeDirs += file("node_modules")
- excludeDirs += file("dist")
- excludeDirs += file("build")
- }
-}
-
-// Helper functions for project/task resolution when the main
-// repo is checked out as a git submodule and therefore a subproject
-def isCustomProject() {
- findProject(":openremote") != null
-}
-
-def resolvePath(String path) {
- isCustomProject() ? ":openremote" + path : path
-}
-
-def resolveProject(String path) {
- project(resolvePath(path))
-}
-
-def resolveTask(String path) {
- tasks.getByPath(resolvePath(path))
-}
-
-ext {
- resolvePath = this.&resolvePath
- resolveProject = this.&resolveProject
- resolveTask = this.&resolveTask
- isCustomProject = this.&isCustomProject
-}
-
-if (project.convention.findPlugin(JavaPluginConvention)) {
- // Change the output directory for the main and test source sets back to the old path
- sourceSets.main.java.outputDir = new File(buildDir, "classes/main")
- sourceSets.test.java.outputDir = new File(buildDir, "classes/test")
-}
-
-// Configure versions in gradle.properties (putting a gradle.properties file
-// in a subproject only overrides root properties of same name for the actual
-// subproject, not for its children!)
-version = hasProperty("openremoteVersion") ? openremoteVersion : projectVersion
-
-// Add UI tasks
-ext.npmCommand = {
- cmd ->
- isFamily(FAMILY_WINDOWS) ? "${cmd}.cmd" : cmd
-}
-
-// Add yarn tasks
-task yarnInstall(type: Exec){
- commandLine npmCommand("yarn"), "install"
-}
-task yarnInstallForce(type: Exec){
- commandLine npmCommand("yarn"), "install", "--force"
-}
-
-// Add npm tasks
-task npmInstall(type: Exec){
- commandLine npmCommand("npm"), "install"
-}
-task npmClean(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "clean"
-}
-task npmBuild(type: Exec){
- mustRunAfter npmClean
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "build"
-}
-task npmTest(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "test"
-}
-task npmServe(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "serve"
-}
-task npmPrepare(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "prepublishOnly"
-}
-task npmPublish(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "publish"
-}
-task npmServeProduction(type: Exec){
- dependsOn tasks.getByPath(":yarnInstall")
- commandLine npmCommand("npm"), "run-script", "serveProduction"
-}
-
-// Add typescript tasks
-task tscWatch(type: Exec) {
- commandLine npmCommand("npx"), "tsc", "-b", "--watch"
-}
-
-// Configure Java build
-plugins.withType(JavaPlugin).whenPluginAdded {
-
- // Use Java 8
- tasks.withType(JavaCompile) {
- sourceCompatibility = "1.8"
- targetCompatibility = "1.8"
- def warnLogFile = file("$buildDir/${name}Warnings.log")
- logging.addStandardErrorListener(new StandardOutputListener() {
- void onOutput(CharSequence output) {
- warnLogFile << output
- }
- })
- options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation"]
- options.encoding = 'UTF-8'
- }
-
- // JAR/ZIP base name is the fully qualified subproject name
- archivesBaseName = "${rootProject.name}${path.replaceAll(":", "-")}"
-}
\ No newline at end of file