From 8790ffb73ad83c30d372ede44957c464fccab22a Mon Sep 17 00:00:00 2001
From: tanghong668 <13926187239@163.com>
Date: Tue, 28 Nov 2023 11:03:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=86=E6=89=B9=E4=B8=8A=E4=BC=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
android/.gitignore | 13 +++
android/app/build.gradle | 90 ++++++++++++++++++
android/app/proguard-rules.pro | 2 +
android/app/src/debug/AndroidManifest.xml | 9 ++
android/app/src/main/AndroidManifest.xml | 76 +++++++++++++++
.../kotlin/com/example/dream/MainActivity.kt | 6 ++
.../res/drawable-v21/launch_background.xml | 12 +++
.../main/res/drawable/launch_background.xml | 12 +++
.../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3683 bytes
.../src/main/res/mipmap-hdpi/launch_image.png | Bin 0 -> 8941 bytes
.../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 3683 bytes
.../src/main/res/mipmap-mdpi/launch_image.png | Bin 0 -> 8941 bytes
.../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4680 bytes
.../main/res/mipmap-xhdpi/launch_image.png | Bin 0 -> 8941 bytes
.../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6870 bytes
.../main/res/mipmap-xxhdpi/launch_image.png | Bin 0 -> 8941 bytes
.../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 8941 bytes
.../main/res/mipmap-xxxhdpi/launch_image.png | Bin 0 -> 8941 bytes
.../app/src/main/res/values-night/styles.xml | 18 ++++
android/app/src/main/res/values/colors.xml | 4 +
android/app/src/main/res/values/styles.xml | 18 ++++
android/app/src/main/res/xml/file_paths.xml | 5 +
.../main/res/xml/network_security_config.xml | 4 +
android/app/src/profile/AndroidManifest.xml | 12 +++
android/build.gradle | 41 ++++++++
android/gradle.properties | 20 ++++
.../gradle/wrapper/gradle-wrapper.properties | 5 +
android/settings.gradle | 11 +++
28 files changed, 358 insertions(+)
create mode 100644 android/.gitignore
create mode 100644 android/app/build.gradle
create mode 100644 android/app/proguard-rules.pro
create mode 100644 android/app/src/debug/AndroidManifest.xml
create mode 100644 android/app/src/main/AndroidManifest.xml
create mode 100644 android/app/src/main/kotlin/com/example/dream/MainActivity.kt
create mode 100644 android/app/src/main/res/drawable-v21/launch_background.xml
create mode 100644 android/app/src/main/res/drawable/launch_background.xml
create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-hdpi/launch_image.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-mdpi/launch_image.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xhdpi/launch_image.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xxhdpi/launch_image.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/launch_image.png
create mode 100644 android/app/src/main/res/values-night/styles.xml
create mode 100644 android/app/src/main/res/values/colors.xml
create mode 100644 android/app/src/main/res/values/styles.xml
create mode 100644 android/app/src/main/res/xml/file_paths.xml
create mode 100644 android/app/src/main/res/xml/network_security_config.xml
create mode 100644 android/app/src/profile/AndroidManifest.xml
create mode 100644 android/build.gradle
create mode 100644 android/gradle.properties
create mode 100644 android/gradle/wrapper/gradle-wrapper.properties
create mode 100644 android/settings.gradle
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/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/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..5e97094
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,90 @@
+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) {
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+def keystorePropertiesFile = rootProject.file("app/key.properties")
+def keystoreProperties = new Properties()
+keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
+
+android {
+ 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.jianmu.dreampad"
+ // You can update the following values to match your application needs.
+ // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
+ minSdkVersion flutter.minSdkVersion
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ signingConfigs {
+ release {
+ keyAlias keystoreProperties['keyAlias']
+ keyPassword keystoreProperties['keyPassword']
+ storeFile file(keystoreProperties['storeFile'])
+ storePassword keystoreProperties['storePassword']
+ }
+ }
+
+ buildTypes {
+ debug {
+ signingConfig signingConfigs.release
+ }
+ 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.release
+ shrinkResources false
+ zipAlignEnabled false
+ minifyEnabled true
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro
new file mode 100644
index 0000000..b21d449
--- /dev/null
+++ b/android/app/proguard-rules.pro
@@ -0,0 +1,2 @@
+-dontobfuscate
+-dontshrink
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..02ba555
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..15dc31f
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/app/src/main/kotlin/com/example/dream/MainActivity.kt b/android/app/src/main/kotlin/com/example/dream/MainActivity.kt
new file mode 100644
index 0000000..523a649
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/dream/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.jianmu.dreampad
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..fee743d
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ -
+
+
+
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..97f2d62
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+ -
+
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..4ebc01f6809dcc302a700fcdefc664f7b3b46edf
GIT binary patch
literal 3683
zcmaJ^c|4Ts`ySaTRFWyCX~+_02E!~F>r5zPOH3It#$b$D%#1yeBH7b1*>Wh9tRbgz
zkfkU~jZoAnW#2nx4fW-G>wJHIob!7>pZ9&9=l$U;n(9?QJc0NbQpX0029z
zt#FQ;tJT&kA-4HFIa_VHxd3^1BJTvtn-@&xPyuFMEKe%fnnCuVI#S7Ap#e{+MgV}Y
z8qJBwBNA*d6cz(Y-pYZ7FxZ=D0Kmv3giWT9Zy%+`q#MyH^?AST9OqY%s{0fWjTgF_hpOfDt_3;Bx|v$@|2!yw?lQh0PM
z#O`lHz92@CP%@z@v`EI2qA8mtdxaeQF9XfzrI*MsTl>1<}`a6_3qa)=I-
ztMZcpN99sDG&YaMVuH6A$)2o09u~4G^}jtZ*niV9xj*h{^TuEyWHw9}3g7DKXCi^{
z|EDq-e`j-fj@19@{YPT1Qz)AXbEI-vfgH-_-9gZ{=Z_k?7(1eR>n~|v>>Y2Q4Wg%
z{;O*Y?H{zDED-v5q(1Ur`F>!%{z1zREb3peuuU