summaryrefslogtreecommitdiff
path: root/client_app_flutter/android
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-05 00:36:15 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-11-05 00:36:15 +0200
commitefa2fba8e5a567b32c4ed789e5a23c296fac5d55 (patch)
tree05d247d64c1c3b74defc173d8bbe66a8a4b4363b /client_app_flutter/android
parent7e134820f68ac3736af13e806f88659748a2dc07 (diff)
FINALLY back on Linux and FINALLY doing something more interesting.
Changes to be committed: new file: client_app_flutter/.gitignore new file: client_app_flutter/.metadata new file: client_app_flutter/README.md new file: client_app_flutter/analysis_options.yaml new file: client_app_flutter/android/.gitignore new file: client_app_flutter/android/app/build.gradle new file: client_app_flutter/android/app/src/debug/AndroidManifest.xml new file: client_app_flutter/android/app/src/main/AndroidManifest.xml new file: client_app_flutter/android/app/src/main/kotlin/com/example/client_app_flutter/MainActivity.kt new file: client_app_flutter/android/app/src/main/res/drawable-v21/launch_background.xml new file: client_app_flutter/android/app/src/main/res/drawable/launch_background.xml new file: client_app_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file: client_app_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file: client_app_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file: client_app_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file: client_app_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file: client_app_flutter/android/app/src/main/res/values-night/styles.xml new file: client_app_flutter/android/app/src/main/res/values/styles.xml new file: client_app_flutter/android/app/src/profile/AndroidManifest.xml new file: client_app_flutter/android/build.gradle new file: client_app_flutter/android/gradle.properties new file: client_app_flutter/android/gradle/wrapper/gradle-wrapper.properties new file: client_app_flutter/android/settings.gradle new file: client_app_flutter/ios/.gitignore new file: client_app_flutter/ios/Flutter/AppFrameworkInfo.plist new file: client_app_flutter/ios/Flutter/Debug.xcconfig new file: client_app_flutter/ios/Flutter/Release.xcconfig new file: client_app_flutter/ios/Runner.xcodeproj/project.pbxproj new file: client_app_flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file: client_app_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file: client_app_flutter/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file: client_app_flutter/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file: client_app_flutter/ios/Runner.xcworkspace/contents.xcworkspacedata new file: client_app_flutter/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file: client_app_flutter/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file: client_app_flutter/ios/Runner/AppDelegate.swift new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file: client_app_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file: client_app_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file: client_app_flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file: client_app_flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard new file: client_app_flutter/ios/Runner/Base.lproj/Main.storyboard new file: client_app_flutter/ios/Runner/Info.plist new file: client_app_flutter/ios/Runner/Runner-Bridging-Header.h new file: client_app_flutter/ios/RunnerTests/RunnerTests.swift new file: client_app_flutter/lib/main.dart new file: client_app_flutter/pubspec.lock new file: client_app_flutter/pubspec.yaml new file: client_app_flutter/test/widget_test.dart new file: client_app_flutter/web/favicon.png new file: client_app_flutter/web/icons/Icon-192.png new file: client_app_flutter/web/icons/Icon-512.png new file: client_app_flutter/web/icons/Icon-maskable-192.png new file: client_app_flutter/web/icons/Icon-maskable-512.png new file: client_app_flutter/web/index.html new file: client_app_flutter/web/manifest.json deleted: lol
Diffstat (limited to 'client_app_flutter/android')
-rw-r--r--client_app_flutter/android/.gitignore13
-rw-r--r--client_app_flutter/android/app/build.gradle67
-rw-r--r--client_app_flutter/android/app/src/debug/AndroidManifest.xml7
-rw-r--r--client_app_flutter/android/app/src/main/AndroidManifest.xml33
-rw-r--r--client_app_flutter/android/app/src/main/kotlin/com/example/client_app_flutter/MainActivity.kt6
-rw-r--r--client_app_flutter/android/app/src/main/res/drawable-v21/launch_background.xml12
-rw-r--r--client_app_flutter/android/app/src/main/res/drawable/launch_background.xml12
-rw-r--r--client_app_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngbin0 -> 544 bytes
-rw-r--r--client_app_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngbin0 -> 442 bytes
-rw-r--r--client_app_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngbin0 -> 721 bytes
-rw-r--r--client_app_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngbin0 -> 1031 bytes
-rw-r--r--client_app_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngbin0 -> 1443 bytes
-rw-r--r--client_app_flutter/android/app/src/main/res/values-night/styles.xml18
-rw-r--r--client_app_flutter/android/app/src/main/res/values/styles.xml18
-rw-r--r--client_app_flutter/android/app/src/profile/AndroidManifest.xml7
-rw-r--r--client_app_flutter/android/build.gradle31
-rw-r--r--client_app_flutter/android/gradle.properties3
-rw-r--r--client_app_flutter/android/gradle/wrapper/gradle-wrapper.properties5
-rw-r--r--client_app_flutter/android/settings.gradle20
19 files changed, 252 insertions, 0 deletions
diff --git a/client_app_flutter/android/.gitignore b/client_app_flutter/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/client_app_flutter/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/client_app_flutter/android/app/build.gradle b/client_app_flutter/android/app/build.gradle
new file mode 100644
index 0000000..e03e9f2
--- /dev/null
+++ b/client_app_flutter/android/app/build.gradle
@@ -0,0 +1,67 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+android {
+ namespace "com.example.client_app_flutter"
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "com.example.client_app_flutter"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {}
diff --git a/client_app_flutter/android/app/src/debug/AndroidManifest.xml b/client_app_flutter/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/client_app_flutter/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/client_app_flutter/android/app/src/main/AndroidManifest.xml b/client_app_flutter/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..657f79c
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <application
+ android:label="client_app_flutter"
+ android:name="${applicationName}"
+ android:icon="@mipmap/ic_launcher">
+ <activity
+ android:name=".MainActivity"
+ android:exported="true"
+ 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">
+ <!-- Specifies an Android theme to apply to this Activity as soon as
+ the Android process has started. This theme is visible to the user
+ while the Flutter UI initializes. After that, this theme continues
+ to determine the Window background behind the Flutter UI. -->
+ <meta-data
+ android:name="io.flutter.embedding.android.NormalTheme"
+ android:resource="@style/NormalTheme"
+ />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+ <!-- Don't delete the meta-data below.
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+ <meta-data
+ android:name="flutterEmbedding"
+ android:value="2" />
+ </application>
+</manifest>
diff --git a/client_app_flutter/android/app/src/main/kotlin/com/example/client_app_flutter/MainActivity.kt b/client_app_flutter/android/app/src/main/kotlin/com/example/client_app_flutter/MainActivity.kt
new file mode 100644
index 0000000..19492f9
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/kotlin/com/example/client_app_flutter/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.client_app_flutter
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/client_app_flutter/android/app/src/main/res/drawable-v21/launch_background.xml b/client_app_flutter/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+<?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:colorBackground" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/client_app_flutter/android/app/src/main/res/drawable/launch_background.xml b/client_app_flutter/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+<?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/client_app_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/client_app_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/client_app_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/client_app_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/client_app_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/client_app_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/client_app_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/client_app_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/client_app_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/client_app_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/client_app_flutter/android/app/src/main/res/values-night/styles.xml b/client_app_flutter/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/client_app_flutter/android/app/src/main/res/values/styles.xml b/client_app_flutter/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/client_app_flutter/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ the Flutter engine draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/client_app_flutter/android/app/src/profile/AndroidManifest.xml b/client_app_flutter/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/client_app_flutter/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- The INTERNET permission is required for development. Specifically,
+ the Flutter tool needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/client_app_flutter/android/build.gradle b/client_app_flutter/android/build.gradle
new file mode 100644
index 0000000..f7eb7f6
--- /dev/null
+++ b/client_app_flutter/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.7.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.3.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/client_app_flutter/android/gradle.properties b/client_app_flutter/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/client_app_flutter/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/client_app_flutter/android/gradle/wrapper/gradle-wrapper.properties b/client_app_flutter/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..3c472b9
--- /dev/null
+++ b/client_app_flutter/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
diff --git a/client_app_flutter/android/settings.gradle b/client_app_flutter/android/settings.gradle
new file mode 100644
index 0000000..55c4ca8
--- /dev/null
+++ b/client_app_flutter/android/settings.gradle
@@ -0,0 +1,20 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }
+ settings.ext.flutterSdkPath = flutterSdkPath()
+
+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+ plugins {
+ id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
+ }
+}
+
+include ":app"
+
+apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"