Skip to content

Commit 5e95327

Browse files
committed
Merge branch 'main' into integration_tests
2 parents 4d2c698 + 19d3688 commit 5e95327

File tree

164 files changed

+903
-1061
lines changed

Some content is hidden

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

164 files changed

+903
-1061
lines changed

Diff for: .fvm/fvm_config.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutterSdkVersion": "3.27.3@stable"
3+
}

Diff for: .fvmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"flutter": "3.27.3@stable"
3+
}

Diff for: .github/dependabot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: "pub"
5+
directory: "/"
6+
schedule:
7+
interval: monthly
8+
open-pull-requests-limit: 3
9+
10+
- package-ecosystem: "gradle"
11+
directory: "/android"
12+
schedule:
13+
interval: monthly
14+
open-pull-requests-limit: 2
15+
16+
- package-ecosystem: github-actions
17+
directory: "/"
18+
schedule:
19+
interval: monthly

Diff for: .github/workflows/analyze_and_test.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- uses: subosito/flutter-action@v2
14-
with:
15-
channel: 'stable'
16-
flutter-version: '3.27.3'
13+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
1714

1815
- name: Statically analyze the Dart code for any errors/warnings, ignoring "info" level warnings
1916
run: |

Diff for: .github/workflows/build_app.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- uses: subosito/flutter-action@v2
14-
with:
15-
channel: 'stable'
16-
flutter-version: '3.27.3'
13+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
1714

1815
- name: Get Dependencies
1916
run: flutter pub get
@@ -31,10 +28,7 @@ jobs:
3128
steps:
3229
- uses: actions/checkout@v4
3330

34-
- uses: subosito/flutter-action@v2
35-
with:
36-
channel: 'stable'
37-
flutter-version: '3.27.3'
31+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
3832

3933
- name: Decode GoogleService-Info.plist secrets
4034
env:

Diff for: .gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.fvm/
2-
.fvmrc
1+
.fvm/*
2+
!.fvm/fvm_config.json
33
.vscode/settings.json
44

55
# Miscellaneous
@@ -94,4 +94,4 @@ svc-keyfile.json
9494
# Lockfiles
9595
Podfile.lock
9696
pubspec.lock
97-
yarn.lock
97+
yarn.lock

Diff for: README.md

+4-4

Diff for: android/app/build.gradle

+10-8
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ properties.load(project.rootProject.file('local.properties').newDataInputStream(
3737
def googlemapsKey = properties.getProperty('googlemaps.Key', System.getenv('GOOGLE_MAPS_KEY') ?: '')
3838

3939
android {
40-
compileSdkVersion 34
40+
namespace 'com.example.mosquito_alert_app'
41+
compileSdkVersion flutter.compileSdkVersion
4142

4243
compileOptions {
4344
sourceCompatibility JavaVersion.VERSION_17
@@ -48,16 +49,11 @@ android {
4849
main.java.srcDirs += 'src/main/kotlin'
4950
}
5051

51-
lintOptions {
52-
disable 'InvalidPackage'
53-
checkReleaseBuilds false
54-
abortOnError false
55-
}
5652

5753
defaultConfig {
5854
applicationId "ceab.movelab.tigatrapp"
59-
minSdkVersion 23
60-
targetSdkVersion 34
55+
minSdkVersion 24
56+
targetSdkVersion flutter.targetSdkVersion
6157
versionCode flutterVersionCode.toInteger()
6258
versionName flutterVersionName
6359
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -84,6 +80,12 @@ android {
8480
shrinkResources false
8581
}
8682
}
83+
84+
lint {
85+
abortOnError false
86+
checkReleaseBuilds false
87+
disable 'InvalidPackage'
88+
}
8789
}
8890

8991
flutter {

Diff for: android/app/src/debug/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.mosquito_alert_app">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

Diff for: android/app/src/main/AndroidManifest.xml

+17-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
xmlns:tools="http://schemas.android.com/tools"
3-
package="com.example.mosquito_alert_app">
2+
xmlns:tools="http://schemas.android.com/tools">
3+
4+
<uses-permission android:name="android.permission.INTERNET"/>
5+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
46

57
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
8+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
69
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
10+
711
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
8-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
912
<uses-permission android:name="android.permission.CAMERA" />
1013

1114
<application
1215
tools:replace="android:label"
1316
android:label="Mosquito Alert"
1417
android:icon="@mipmap/ic_launcher"
18+
android:roundIcon="@mipmap/ic_launcher"
1519
android:usesCleartextTraffic="true"
1620
android:requestLegacyExternalStorage="true"
1721
>
@@ -32,6 +36,15 @@
3236
<category android:name="android.intent.category.DEFAULT" />
3337
</intent-filter>
3438
</activity>
39+
40+
<!-- [START fcm_default_icon] -->
41+
<!-- Set custom default icon. This is used when no icon is set for incoming notification messages.
42+
See README(https://goo.gl/l4GJaQ) for more. -->
43+
<meta-data
44+
android:name="com.google.firebase.messaging.default_notification_icon"
45+
android:resource="@drawable/ic_launcher_monochrome" />
46+
<!-- [END fcm_default_icon] -->
47+
3548
<!-- Don't delete the meta-data below.
3649
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
3750

@@ -49,4 +62,4 @@
4962

5063
</application>
5164

52-
</manifest>
65+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
package com.example.mosquito_alert_app
22

3-
import androidx.annotation.NonNull
43
import io.flutter.embedding.android.FlutterActivity
5-
import io.flutter.embedding.engine.FlutterEngine
6-
import dev.fluttercommunity.workmanager.WorkmanagerPlugin
74

85
class MainActivity: FlutterActivity() {
9-
override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
10-
super.configureFlutterEngine(flutterEngine)
11-
flutterEngine.plugins.add(WorkmanagerPlugin())
12-
}
136
}
13.3 KB

Diff for: android/app/src/main/res/drawable-hdpi/branding.png

11.3 KB

Diff for: android/app/src/main/res/drawable-hdpi/splash.png

13.3 KB
7.97 KB

Diff for: android/app/src/main/res/drawable-mdpi/branding.png

7.38 KB

Diff for: android/app/src/main/res/drawable-mdpi/splash.png

7.97 KB

Diff for: android/app/src/main/res/drawable-v21/background.png

69 Bytes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
9+
<item android:bottom="24dp">
10+
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
11+
</item>
12+
</layer-list>
18.9 KB

Diff for: android/app/src/main/res/drawable-xhdpi/branding.png

13.5 KB

Diff for: android/app/src/main/res/drawable-xhdpi/splash.png

18.9 KB
32.8 KB
20.6 KB

Diff for: android/app/src/main/res/drawable-xxhdpi/splash.png

32.8 KB
48.5 KB
25.3 KB

Diff for: android/app/src/main/res/drawable-xxxhdpi/splash.png

48.5 KB

Diff for: android/app/src/main/res/drawable/background.png

69 Bytes
+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Modify this file to customize your launch splash screen -->
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4-
<item android:drawable="@android:color/white" />
5-
6-
<!-- You can insert your own image assets here -->
7-
<!-- <item>
8-
<bitmap
9-
android:gravity="center"
10-
android:src="@mipmap/launch_image" />
11-
</item> -->
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
9+
<item android:bottom="24dp">
10+
<bitmap android:gravity="bottom" android:src="@drawable/branding"/>
11+
</item>
1212
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background"/>
4+
<foreground>
5+
<inset
6+
android:drawable="@drawable/ic_launcher_foreground"
7+
android:inset="25%" />
8+
</foreground>
9+
<monochrome>
10+
<inset
11+
android:drawable="@drawable/ic_launcher_monochrome"
12+
android:inset="25%" />
13+
</monochrome>
14+
</adaptive-icon>

Diff for: android/app/src/main/res/mipmap-hdpi/ic_launcher.png

935 Bytes

Diff for: android/app/src/main/res/mipmap-mdpi/ic_launcher.png

806 Bytes
802 Bytes
-30 Bytes
-1.43 KB

Diff for: android/app/src/main/res/values-night-v31/styles.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<item name="android:forceDarkAllowed">false</item>
6+
<item name="android:windowFullscreen">false</item>
7+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
8+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9+
<item name="android:windowSplashScreenBackground">#ffffff</item>
10+
<item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item>
11+
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
12+
<item name="android:windowSplashScreenIconBackgroundColor">#ffffff</item>
13+
</style>
14+
<!-- Theme applied to the Android Window as soon as the process has started.
15+
This theme determines the color of the Android Window while your
16+
Flutter UI initializes, as well as behind your Flutter UI while its
17+
running.
18+
19+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
20+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
21+
<item name="android:windowBackground">?android:colorBackground</item>
22+
</style>
23+
</resources>

Diff for: android/app/src/main/res/values-night/styles.xml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
the Flutter engine draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
<item name="android:forceDarkAllowed">false</item>
9+
<item name="android:windowFullscreen">false</item>
10+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
11+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
12+
</style>
13+
<!-- Theme applied to the Android Window as soon as the process has started.
14+
This theme determines the color of the Android Window while your
15+
Flutter UI initializes, as well as behind your Flutter UI while its
16+
running.
17+
18+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
19+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
20+
<item name="android:windowBackground">?android:colorBackground</item>
21+
</style>
22+
</resources>

Diff for: android/app/src/main/res/values-v31/styles.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
5+
<item name="android:forceDarkAllowed">false</item>
6+
<item name="android:windowFullscreen">false</item>
7+
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
8+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9+
<item name="android:windowSplashScreenBackground">#ffffff</item>
10+
<item name="android:windowSplashScreenBrandingImage">@drawable/android12branding</item>
11+
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
12+
<item name="android:windowSplashScreenIconBackgroundColor">#ffffff</item>
13+
</style>
14+
<!-- Theme applied to the Android Window as soon as the process has started.
15+
This theme determines the color of the Android Window while your
16+
Flutter UI initializes, as well as behind your Flutter UI while its
17+
running.
18+
19+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
20+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
21+
<item name="android:windowBackground">?android:colorBackground</item>
22+
</style>
23+
</resources>

Diff for: android/app/src/main/res/values/colors.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="ic_launcher_background">#ffffff</color>
4+
</resources>

Diff for: android/app/src/profile/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.mosquito_alert_app">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

Diff for: android/build.gradle

+18
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ allprojects {
88
}
99
}
1010
}
11+
12+
gradle.projectsEvaluated {
13+
tasks.withType(JavaCompile) {
14+
options.compilerArgs << "-Xlint:deprecation"
15+
}
16+
}
17+
18+
subprojects {
19+
afterEvaluate { project ->
20+
if (project.hasProperty('android')) {
21+
project.android {
22+
if (namespace == null) {
23+
namespace project.group
24+
}
25+
}
26+
}
27+
}
28+
}
1129
}
1230

1331
rootProject.buildDir = '../build'

Diff for: android/gradle.properties

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ org.gradle.jvmargs=-Xmx1536M
22
android.enableR8=true
33
android.useAndroidX=true
44
android.enableJetifier=true
5-
org.gradle.warning.mode=all
5+
org.gradle.warning.mode=all
6+
android.defaults.buildfeatures.buildconfig=true
7+
android.nonTransitiveRClass=false
8+
android.nonFinalResIds=false

Diff for: android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

Diff for: android/settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.3.0" apply false
21+
id "com.android.application" version '8.5.0' apply false
2222
id "org.jetbrains.kotlin.android" version "2.0.10" apply false
2323
id "com.google.gms.google-services" version "4.3.3" apply false
2424
}

0 commit comments

Comments
 (0)