Skip to content

Commit aed058a

Browse files
authored
Merge pull request #139 from digital-scouts/develop
Develop
2 parents 990f149 + 175ffa9 commit aed058a

147 files changed

Lines changed: 4372 additions & 2695 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ app.*.map.json
4242
.vscode/launch.json
4343

4444
venv
45-
.cache_ggshield
45+
.cache_ggshield

.vscode/launch.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Android",
66
"request": "launch",
77
"type": "dart",
8-
"deviceId": "sdk",
8+
"deviceId": "emulator-5554",
99
"args": [
1010
"--dart-define=USE_LOGGING=true"
1111
]
@@ -14,10 +14,8 @@
1414
"name": "iPhone",
1515
"request": "launch",
1616
"type": "dart",
17-
"deviceId": "C753CEB2-6197-4AF9-AC44-617AD4D40DC7",
17+
"deviceId": "29AA1963-EC2E-4DE0-969E-AA4737731BB4",
1818
"args": [
19-
"--flavor",
20-
"NaMi",
2119
"--dart-define=USE_LOGGING=true"
2220
]
2321
},
@@ -26,8 +24,6 @@
2624
"request": "launch",
2725
"type": "dart",
2826
"args": [
29-
"--flavor",
30-
"NaMi",
3127
"--dart-define=USE_LOGGING=true"
3228
]
3329
},

.vscode/settings.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,21 @@
44
".github/workflows/flutter-app-build.yml"
55
],
66
"[dart]": {
7-
"editor.codeActionsOnSave": {
8-
"source.fixAll": "always",
9-
"source.organizeImports": "always",
10-
}
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll": "always",
9+
"source.organizeImports": "always"
10+
},
11+
"editor.formatOnSave": true,
12+
"editor.formatOnType": false,
13+
"editor.defaultFormatter": "Dart-Code.dart-code",
14+
"editor.rulers": [
15+
80
16+
],
17+
"editor.insertSpaces": true,
18+
"editor.tabSize": 2,
19+
"editor.detectIndentation": false
1120
},
12-
"java.configuration.updateBuildConfiguration": "interactive",
13-
"cSpell.enableFiletypes": ["!dart"]
14-
}
21+
"dart.enableSdkFormatter": true,
22+
"dart.lineLength": 80,
23+
"dart.analysisExcludedFolders": [],
24+
}

android/app/build.gradle

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,22 @@ android {
2727

2828
namespace 'de.jlange.nami.app'
2929

30+
// TODO (try to remove later) Force resolution of androidx.core to compatible version
31+
configurations.all {
32+
resolutionStrategy {
33+
force 'androidx.core:core:1.13.1'
34+
force 'androidx.core:core-ktx:1.13.1'
35+
}
36+
}
37+
3038
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
39+
sourceCompatibility JavaVersion.VERSION_17
40+
targetCompatibility JavaVersion.VERSION_17
41+
coreLibraryDesugaringEnabled true
3342
}
3443

3544
kotlinOptions {
36-
jvmTarget = '1.8'
45+
jvmTarget = '17'
3746
}
3847

3948
sourceSets {
@@ -59,4 +68,12 @@ android {
5968

6069
flutter {
6170
source '../..'
71+
}
72+
73+
dependencies {
74+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
75+
76+
// Force compatible androidx.core version for AGP 8.4.2
77+
implementation 'androidx.core:core:1.13.1'
78+
implementation 'androidx.core:core-ktx:1.13.1'
6279
}

android/app/proguard-rules.pro

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
-keep class io.flutter.embedding.** { *; }
88
-keep class io.flutter.** { *; }
99

10+
# Benachrichtigungs-Icon behalten (wird über String-Referenz verwendet)
11+
-keep class **.R$drawable {
12+
public static final int ic_notification;
13+
}
14+
15+
# Ressourcen für Benachrichtigungen behalten
16+
-keepclassmembers class **.R$* {
17+
public static <fields>;
18+
}
19+
1020
-dontwarn com.google.android.play.core.splitcompat.SplitCompatApplication
1121
-dontwarn com.google.android.play.core.splitinstall.SplitInstallException
1222
-dontwarn com.google.android.play.core.splitinstall.SplitInstallManager

android/app/src/main/AndroidManifest.xml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22

33
<uses-permission android:name="android.permission.INTERNET" />
4+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
5+
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
6+
<uses-permission android:name="android.permission.WAKE_LOCK" />
7+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
48

59
<queries>
610
<!-- If your app opens https URLs -->
@@ -20,7 +24,19 @@
2024
</intent>
2125
</queries>
2226

23-
<application android:label="nami" android:icon="@mipmap/launcher_icon" android:allowBackup="false">
27+
<application android:label="NaMi" android:icon="@mipmap/ic_launcher"
28+
android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false">
29+
<receiver android:exported="false"
30+
android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
31+
<receiver android:exported="false"
32+
android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
33+
<intent-filter>
34+
<action android:name="android.intent.action.BOOT_COMPLETED" />
35+
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
36+
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
37+
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
38+
</intent-filter>
39+
</receiver>
2440
<activity android:name=".MainActivity" android:launchMode="singleTop"
2541
android:screenOrientation="portrait"
2642
android:theme="@style/LaunchTheme"
@@ -49,5 +65,4 @@
4965
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
5066
<meta-data android:name="flutterEmbedding" android:value="2" />
5167
</application>
52-
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
53-
</manifest>
68+
</manifest>
-8.92 KB
Binary file not shown.
-5.64 KB
Binary file not shown.
-12.1 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)