Skip to content

Commit

Permalink
build(deps): bump project dependencies, remove webview (#140)
Browse files Browse the repository at this point in the history
- [x] update flutter, gradle, pubspec dependencies, remove webview;
  • Loading branch information
rfprod authored Dec 3, 2023
1 parent 6eca4dc commit bc09850
Show file tree
Hide file tree
Showing 13 changed files with 160 additions and 517 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
if: ${{ inputs.src == 'true' }}
uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.5"
flutter-version: "3.16.2"
channel: "stable"

- name: Get variables
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Example output
$ flutter emulators
1 available emulator:

api33deviceapi33device • • android
api34deviceapi34device • • android

To run an emulator, run 'flutter emulators --launch <emulator id>'.
To create a new emulator, run 'flutter emulators --create [--name xyz]'.
Expand All @@ -112,10 +112,10 @@ You can find more information on managing emulators at the links below:

3. **launch an emulator**

Replace `api33device` with the name of the emulator you configured locally
Replace `api34device` with the name of the emulator you configured locally

```bash
flutter emulators --launch api33device
flutter emulators --launch api34device
```

4. **list connected devices**
Expand All @@ -128,9 +128,8 @@ Example output

```bash
$ flutter devices list
3 connected devices:

sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator)
Found 3 connected devices:
sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator)
...
```

Expand Down
5 changes: 2 additions & 3 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ linter:
- cancel_subscriptions
- empty_statements
- hash_and_equals
- iterable_contains_unrelated_type
- list_remove_unrelated_type
- collection_methods_unrelated_type
- literal_only_boolean_expressions
- no_adjacent_strings_in_list
- no_duplicate_case_values
Expand Down Expand Up @@ -98,7 +97,7 @@ linter:
- use_raw_strings
- void_checks
analyzer:
strong-mode:
# strong-mode:
# strict-casts: false
# strict-raw-types: false
errors:
Expand Down
9 changes: 5 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,22 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 33
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
disable 'InvalidPackage'
abortOnError false
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.rfprod.flutter_starter"
minSdkVersion 31
targetSdkVersion 33
minSdkVersion 30
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand All @@ -61,6 +62,6 @@ flutter {

dependencies {
implementation platform('com.google.firebase:firebase-bom:29.0.0')
implementation 'com.google.firebase:firebase-analytics'
// implementation 'com.google.firebase:firebase-analytics'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.google.gms:google-services:4.3.10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand Down
6 changes: 3 additions & 3 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
org.gradle.jvmargs = -Xmx1536M --add-opens=java.base/java.lang=ALL-UNNAMED
android.useAndroidX = true
android.enableJetifier = true
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
187 changes: 0 additions & 187 deletions lib/about/about.menu.dart

This file was deleted.

Loading

0 comments on commit bc09850

Please sign in to comment.