Skip to content

Commit ea4ab11

Browse files
Merge pull request #340 from LittleLightForDestiny/flutter_upgrade
upgrade flutter to 3.22
2 parents f4b09c5 + c106f9e commit ea4ab11

File tree

70 files changed

+608
-593
lines changed

Some content is hidden

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

70 files changed

+608
-593
lines changed

.github/workflows/publish-google-play.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- name: Setup Flutter
6969
uses: subosito/flutter-action@v2
7070
with:
71-
flutter-version: "3.16.5"
71+
flutter-version: "3.22.1"
7272

7373
- name: Create assets/_env
7474
run: |

.github/workflows/publish-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: Setup Flutter
115115
uses: subosito/flutter-action@v2
116116
with:
117-
flutter-version: "3.16.5"
117+
flutter-version: "3.22.1"
118118

119119
- name: Create assets/_env
120120
run: |

.github/workflows/publish-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- name: Setup Flutter
115115
uses: subosito/flutter-action@v2
116116
with:
117-
flutter-version: "3.16.5"
117+
flutter-version: "3.22.1"
118118

119119
- name: Create assets/_env
120120
run: |

.github/workflows/publish-windows.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ jobs:
5858

5959
- name: Setup MS Store Developer CLI
6060
uses: microsoft/setup-msstore-cli@v1
61-
61+
6262
- name: Configure MS Store credentials
6363
run: msstore reconfigure --tenantId ${{ secrets.AZURE_AD_TENANT_ID }} --clientId ${{ secrets.AZURE_AD_CLIENT_ID }} --clientSecret ${{ secrets.AZURE_AD_CLIENT_SECRET }} --sellerId ${{ secrets.MS_STORE_SELLER_ID }}
6464

6565
- name: Setup Flutter
6666
uses: subosito/flutter-action@v2
6767
with:
68-
flutter-version: "3.16.5"
68+
flutter-version: "3.22.1"
6969

7070
- name: Create assets/_env
7171
shell: bash
@@ -81,7 +81,7 @@ jobs:
8181

8282
- name: Download pub dependencies
8383
run: flutter pub get
84-
84+
8585
- name: Build via Flutter
8686
run: flutter build windows --release
8787

@@ -95,16 +95,16 @@ jobs:
9595
if: steps.variables.outputs.version != ''
9696
uses: thedoctor0/[email protected]
9797
with:
98-
type: 'zip'
99-
filename: 'LittleLight-windows-${{ steps.variables.outputs.version }}.zip'
98+
type: "zip"
99+
filename: "LittleLight-windows-${{ steps.variables.outputs.version }}.zip"
100100
path: ${{ github.workspace }}/build/windows/x64/runner/Release
101101

102102
- name: Upload build to Github Release
103103
uses: softprops/action-gh-release@v1
104104
if: steps.variables.outputs.version != ''
105105
with:
106106
tag_name: ${{ steps.variable.outputs.version }}
107-
files: 'LittleLight-windows-${{ steps.variables.outputs.version }}.zip'
107+
files: "LittleLight-windows-${{ steps.variables.outputs.version }}.zip"
108108

109109
- name: Create MSIX package
110110
if: steps.variables.outputs.track == 'production'
@@ -113,5 +113,3 @@ jobs:
113113
- name: Publish MSIX to the Microsoft Store
114114
if: steps.variables.outputs.track == 'production'
115115
run: msstore publish -v -i ./build/windows/x64/runner/Release
116-
117-

.vscode/launch.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
{
22
"configurations": [
3-
{
4-
"name": "Flutter",
5-
"type": "dart",
6-
"request": "launch",
7-
"program": "lib/main.dart"
8-
},
9-
{
10-
"name": "LittleLight Dev Mode",
11-
"type": "dart",
12-
"request": "launch",
13-
"program": "lib/dev_mode_main.dart"
14-
}
3+
{
4+
"name": "Debug",
5+
"type": "dart",
6+
"request": "launch",
7+
"program": "lib/main.dart"
8+
},
9+
{
10+
"name": "Profile",
11+
"type": "dart",
12+
"request": "launch",
13+
"program": "lib/main.dart",
14+
"flutterMode": "profile",
15+
},
16+
{
17+
"name": "LittleLight Dev Mode",
18+
"type": "dart",
19+
"request": "launch",
20+
"program": "lib/dev_mode_main.dart"
21+
}
1522
]
1623
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Right now it features:
1919
Visit [@LittleLightD2](http://twitter.com/LittleLightD2) or join the [Discord Server](https://discord.gg/ztdFGGz) for updates and more details.
2020

2121
## Bugs and feature requests
22-
Have a bug or a feature request? Please first search for [existing and closed issues](https://github.com/LittleLightForDestiny/LittleLight/issues). If your problem or idea is not addressed yet, please open a new issue.
22+
Have a bug or a feature request? Please first search for [existing and closed issues](https://github.com/LittleLightForDestiny/littlelight/issues). If your problem or idea is not addressed yet, please open a new issue.
2323

2424
## Support Little Light
2525
Support Little Light with a [one-time](https://ko-fi.com/littlelight) or [monthly](https://www.patreon.com/littlelightD2) donation and help us continue our active development.
@@ -29,7 +29,7 @@ If you speak a language other than English that Destiny supports, a great way to
2929

3030
## Contributing
3131

32-
See [CONTRIBUTING.md](https://github.com/LittleLightForDestiny/littlelight/blob/master/docs/CONTRIBUTING.md) for information on how to Contribute to the development of Little Light.
32+
See [CONTRIBUTING.md](docs/CONTRIBUTING.md) for information on how to Contribute to the development of Little Light.
3333

3434
## License
3535
Code released under the [MIT license](http://choosealicense.com/licenses/mit/).

android/app/build.gradle

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
}
7+
18
def localProperties = new Properties()
29
def localPropertiesFile = rootProject.file('local.properties')
310
if (localPropertiesFile.exists()) {
@@ -6,11 +13,6 @@ if (localPropertiesFile.exists()) {
613
}
714
}
815

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1416
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1517
if (flutterVersionCode == null) {
1618
flutterVersionCode = '1'
@@ -33,11 +35,6 @@ if (keyAvailable) {
3335
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
3436
}
3537

36-
apply plugin: 'com.android.application'
37-
apply plugin: 'kotlin-android'
38-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
39-
apply plugin: 'com.google.firebase.crashlytics'
40-
apply plugin: 'com.google.gms.google-services'
4138

4239
android {
4340
namespace "me.markezine.luzinha"
@@ -60,7 +57,7 @@ android {
6057
defaultConfig {
6158
applicationId "me.markezine.luzinha"
6259

63-
minSdkVersion 19
60+
minSdkVersion flutter.minSdkVersion
6461
targetSdkVersion 33
6562
versionCode flutterVersionCode.toInteger()
6663
versionName flutterVersionName
@@ -98,6 +95,3 @@ flutter {
9895
source '../..'
9996
}
10097

101-
dependencies {
102-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
103-
}

android/app/src/main/java/io/flutter/app/FlutterMultiDexApplication.java

Lines changed: 0 additions & 25 deletions
This file was deleted.

android/build.gradle

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.7.10'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'com.google.gms:google-services:4.3.5'
10-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'
11-
12-
classpath 'com.android.tools.build:gradle:7.3.0'
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14-
}
15-
}
16-
171
allprojects {
182
repositories {
193
google()

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip

0 commit comments

Comments
 (0)