Skip to content

Commit

Permalink
Flutter 3.10, Dart 3, Gradle 8 and Xcode 14.3 support (#11)
Browse files Browse the repository at this point in the history
* Updated Flutter version and dependencies

* Updated Flutter version and dependencies

* Refactored Dart view implementation to use switch expression

* Updated Android project to use the latest Gradle version (8.0)

* Updated docs

* Updated Flutter version used in CI

* Updated dependencies
  • Loading branch information
PiotrMitkowski authored Aug 21, 2023
1 parent 9df29be commit abeecb5
Show file tree
Hide file tree
Showing 17 changed files with 142 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.7.7",
"flutterSdkVersion": "3.10.6",
"flavors": {}
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install and set Flutter version
uses: subosito/flutter-action@v2.4.0
with:
flutter-version: '3.7.7'
flutter-version: '3.10.6'
- name: Restore packages
run: flutter pub get
- name: Generate required files
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.1.5
* Updated the project to match Flutter 3.10.6, Dart 3, Gradle 8 and Xcode 14.3

## 0.1.4
* Improved performance to fix a bug causing an OutOfMemoryError on some Android devices

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Add the dependency in your `pubspec.yaml`:
- directly in pubspec.yaml:
```yaml
dependencies:
ar_quido: 0.1.4
ar_quido: 0.1.5
```
### Android
Since the Android version depends on the EasyAR solution, you need to
Expand All @@ -41,10 +41,10 @@ in Info.plist:
<string>Describe why your app needs camera (AR) here.</string>
```

Also make sure, that your deployment target in project settings is set to 13.0.
Also make sure, that your deployment target in project settings is set to at least 14.0.
Set the same version in `ios/Podfile`:
```ruby
platform :ios, '13.0'
platform :ios, '14.0'
```

## Usage 🌴
Expand Down
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -25,6 +25,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
namespace 'com.miquido.ar_quido'
compileSdkVersion 33

compileOptions {
Expand Down
3 changes: 1 addition & 2 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.miquido.ar_quido_example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="ar_quido_example"
android:name="${applicationName}"
Expand Down
4 changes: 2 additions & 2 deletions example/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:7.4.2'
classpath 'com.android.tools.build:gradle:8.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
3 changes: 3 additions & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/permission_handler_apple/ios"

SPEC CHECKSUMS:
ar_quido: 861cff4b7e09f8f4169ea125d8a8e1440e33c904
ar_quido: 893d96d3c077860a6db65c62a05c1e05e872cffd
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce

PODFILE CHECKSUM: 30517025a2fecca2d72dac25f08abb5b9a8f1a56

COCOAPODS: 1.12.0
COCOAPODS: 1.12.1
Loading

0 comments on commit abeecb5

Please sign in to comment.