File tree Expand file tree Collapse file tree 10 files changed +225
-226
lines changed Expand file tree Collapse file tree 10 files changed +225
-226
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
+ - uses : actions/checkout@v4
9
10
- uses : actions/setup-java@v2
10
11
with :
11
12
distribution : " zulu"
12
- java-version : " 17"
13
+ java-version : " 21"
14
+ cache : " gradle"
13
15
- uses : subosito/flutter-action@v2
14
16
with :
15
17
channel : stable
16
- flutter-version : 3.19.5
17
- - uses : actions-rs/toolchain@v1
18
+ flutter-version : 3.29.1
19
+ cache : true
20
+ - uses : dtolnay/rust-toolchain@master
18
21
with :
19
22
toolchain : nightly
20
- - uses : actions/checkout@v4
23
+ targets : aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android
21
24
- name : Setup Rust tools for Android build
22
25
run : |
23
- rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
24
26
cargo install cargo-ndk
25
27
- name : Setup Keystore
26
28
run : |
27
29
echo $ANDROID_KEYSTORE | base64 --decode > ./android/app/key.jks
28
30
echo $ANDROID_KEY_PROPERTIES | base64 --decode > ./android/key.properties
31
+ ls -l .
32
+ tree
29
33
- name : Build for Android
30
34
env :
31
35
SDK_REGISTRY_TOKEN : ${{ secrets.MAP_SDK_SECRET_KEY }}
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id " com.android.application"
3
+ id " kotlin-android"
4
+ id " dev.flutter.flutter-gradle-plugin"
5
+ }
6
+
1
7
def keystorePropertiesFile = rootProject. file(" key.properties" )
2
8
def keystoreProperties = new Properties ()
3
9
keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
@@ -10,11 +16,6 @@ if (localPropertiesFile.exists()) {
10
16
}
11
17
}
12
18
13
- def flutterRoot = localProperties. getProperty(' flutter.sdk' )
14
- if (flutterRoot == null ) {
15
- throw new GradleException (" Flutter SDK not found. Define location with flutter.sdk in the local.properties file." )
16
- }
17
-
18
19
def flutterVersionCode = localProperties. getProperty(' flutter.versionCode' )
19
20
if (flutterVersionCode == null ) {
20
21
flutterVersionCode = ' 1'
@@ -25,17 +26,8 @@ if (flutterVersionName == null) {
25
26
flutterVersionName = ' 1.0'
26
27
}
27
28
28
- apply plugin : ' com.android.application'
29
- apply plugin : ' kotlin-android'
30
- apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
31
-
32
29
android {
33
- compileSdkVersion 34
34
-
35
- compileOptions {
36
- sourceCompatibility JavaVersion . VERSION_1_8
37
- targetCompatibility JavaVersion . VERSION_1_8
38
- }
30
+ compileSdkVersion 35
39
31
40
32
kotlinOptions {
41
33
jvmTarget = ' 1.8'
@@ -74,10 +66,6 @@ flutter {
74
66
source ' ../..'
75
67
}
76
68
77
- dependencies {
78
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
79
- }
80
-
81
69
[
82
70
Debug : null ,
83
71
Profile : ' --release' ,
Original file line number Diff line number Diff line change 1
- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2
- package =" de.seemoo.android.openhaystack" >
1
+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
3
2
<uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
4
3
<uses-permission android : name =" android.permission.INTERNET" />
5
4
<uses-permission android : name =" android.permission.FOREGROUND_SERVICE" />
Original file line number Diff line number Diff line change 1
- buildscript {
2
- ext. kotlin_version = ' 1.8.20'
3
- repositories {
4
- google()
5
- mavenCentral()
6
- }
7
-
8
- dependencies {
9
- classpath ' com.android.tools.build:gradle:7.4.2'
10
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
11
- }
12
- }
13
-
14
1
allprojects {
15
2
repositories {
16
3
google()
@@ -20,6 +7,15 @@ allprojects {
20
7
21
8
rootProject. buildDir = ' ../build'
22
9
subprojects {
10
+ afterEvaluate { project ->
11
+ if (project. hasProperty(' android' )) {
12
+ project. android {
13
+ if (namespace == null ) {
14
+ namespace project. group
15
+ }
16
+ }
17
+ }
18
+ }
23
19
project. buildDir = " ${ rootProject.buildDir} /${ project.name} "
24
20
project. evaluationDependsOn(' :app' )
25
21
}
Original file line number Diff line number Diff line change 1
1
# Fri Apr 28 22:51:27 BRT 2023
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.6.1 -all.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -all.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1
- include ' :app'
1
+ pluginManagement {
2
+ def flutterSdkPath = {
3
+ def properties = new Properties ()
4
+ file(" local.properties" ). withInputStream { properties. load(it) }
5
+ def flutterSdkPath = properties. getProperty(" flutter.sdk" )
6
+ assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
7
+ return flutterSdkPath
8
+ }()
2
9
3
- def localPropertiesFile = new File (rootProject. projectDir, " local.properties" )
4
- def properties = new Properties ()
10
+ includeBuild(" $flutterSdkPath /packages/flutter_tools/gradle" )
5
11
6
- assert localPropertiesFile. exists()
7
- localPropertiesFile. withReader(" UTF-8" ) { reader -> properties. load(reader) }
12
+ repositories {
13
+ google()
14
+ mavenCentral()
15
+ gradlePluginPortal()
16
+ }
17
+ }
8
18
9
- def flutterSdkPath = properties. getProperty(" flutter.sdk" )
10
- assert flutterSdkPath != null , " flutter.sdk not set in local.properties"
11
- apply from : " $flutterSdkPath /packages/flutter_tools/gradle/app_plugin_loader.gradle"
19
+ plugins {
20
+ id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
21
+ id " com.android.application" version " 8.2.1" apply false
22
+ id " org.jetbrains.kotlin.android" version " 1.8.20" apply false
23
+ }
24
+
25
+ include " :app"
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ class _AccessoryDetailState extends State<AccessoryDetail> {
144
144
style: ButtonStyle (
145
145
backgroundColor: MaterialStateProperty .resolveWith <Color ?>(
146
146
(Set <MaterialState > states) {
147
- return Theme .of (context).errorColor ;
147
+ return Theme .of (context).colorScheme.error ;
148
148
},
149
149
),
150
150
),
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ class _ItemFileImportState extends State<ItemFileImport> {
175
175
children: [
176
176
Text (
177
177
'An error occured.' ,
178
- style: Theme .of (context).textTheme.headline5 ,
178
+ style: Theme .of (context).textTheme.titleLarge ,
179
179
),
180
180
Padding (
181
181
padding: const EdgeInsets .only (top: 8.0 ),
You can’t perform that action at this time.
0 commit comments