Skip to content

Commit 42698aa

Browse files
authored
Merge pull request #18 from vicdotdevelop/update
Update android, ios
2 parents 8e0eec4 + 8057631 commit 42698aa

70 files changed

Lines changed: 1298 additions & 368 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.

.github/workflows/pre-merge-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717
steps:
1818
# Checkout repository
1919
- name: Checkout code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323

2424
# Set up Flutter
2525
- name: Set up Flutter
2626
uses: subosito/flutter-action@v2
2727
with:
28-
flutter-version: '3.29.0' # Specify exact version instead of just 'stable'
28+
flutter-version: '3.38.5' # Specify exact version instead of just 'stable'
2929
channel: 'stable'
3030

3131
# Cache Flutter dependencies to speed up workflow
3232
- name: Cache Flutter dependencies
33-
uses: actions/cache@v3
33+
uses: actions/cache@v4
3434
with:
3535
path: ~/.pub-cache
3636
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}

.github/workflows/publish-to-pubdev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Flutter
1818
uses: subosito/flutter-action@v2
1919
with:
20-
flutter-version: '3.29.2'
20+
flutter-version: '3.38.5'
2121
channel: 'stable'
2222
- name: Install dependencies 📦
2323
run: flutter pub get

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.0
2+
* Support of latest Android and iOS
3+
* Improvements on example app
4+
15
## 0.2.3
26

37
* Minor changes

analysis_options.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ formatter:
55

66
linter:
77
rules:
8-
lines_longer_than_80_chars: false
8+
lines_longer_than_80_chars: false
9+
prefer_const_constructors: true
10+
prefer_const_declarations: true
11+
prefer_const_literals_to_create_immutables: true
12+
avoid_catches_without_on_clauses: false

android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
.DS_Store
77
/build
88
/captures
9+
/.cxx/*

android/build.gradle.kts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
val kotlinVersion: String by project
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
44
id("com.android.library")
5-
id("org.jetbrains.kotlin.android")
5+
id("kotlin-android")
66
}
77

88
allprojects {
@@ -17,31 +17,27 @@ group = "com.victorblaess.native_flutter_proxy"
1717

1818
android {
1919
namespace = "com.victorblaess.native_flutter_proxy"
20-
ndkVersion = "26.3.11579264"
21-
compileSdk = 35
20+
ndkVersion = "27.3.13750724"
21+
compileSdk = 36
2222

2323
compileOptions {
2424
sourceCompatibility = JavaVersion.VERSION_17
2525
targetCompatibility = JavaVersion.VERSION_17
2626
}
2727

28-
kotlinOptions {
29-
jvmTarget = JavaVersion.VERSION_17.toString()
30-
}
31-
3228
sourceSets["main"].java.srcDirs("src/main/kotlin")
3329

3430
defaultConfig {
35-
minSdk = 16
36-
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
31+
minSdk = 23
3732
}
3833

3934
lint {
4035
disable.add("InvalidPackage")
4136
}
4237
}
4338

44-
dependencies {
45-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
46-
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
39+
kotlin {
40+
compilerOptions {
41+
jvmTarget.set(JvmTarget.JVM_17)
42+
}
4743
}

android/gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4-
agpVersion=8.7.0
5-
kotlinVersion=1.8.22

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Thu Mar 27 10:21:41 CET 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

android/settings.gradle.kts

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
pluginManagement {
2-
val agpVersion: String by settings
3-
val kotlinVersion: String by settings
2+
val flutterSdkPath =
3+
run {
4+
val properties = java.util.Properties()
5+
file("local.properties").inputStream().use { properties.load(it) }
6+
val flutterSdkPath = properties.getProperty("flutter.sdk")
7+
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
8+
flutterSdkPath
9+
}
10+
11+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
412

513
repositories {
6-
gradlePluginPortal()
714
google()
815
mavenCentral()
16+
gradlePluginPortal()
917
}
10-
plugins {
11-
id("com.android.library") version agpVersion
12-
id("org.jetbrains.kotlin.android") version kotlinVersion
13-
}
18+
}
19+
20+
plugins {
21+
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
22+
id("com.android.library") version "8.13.2" apply false
23+
id("org.jetbrains.kotlin.android") version "2.3.0" apply false
1424
}
1525

1626
rootProject.name = "native_flutter_proxy"

example/.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
1114

1215
# IntelliJ related
1316
*.iml
@@ -24,15 +27,11 @@
2427
**/doc/api/
2528
**/ios/Flutter/.last_build_id
2629
.dart_tool/
27-
.flutter-plugins
2830
.flutter-plugins-dependencies
29-
.packages
3031
.pub-cache/
3132
.pub/
3233
/build/
33-
34-
# Web related
35-
lib/generated_plugin_registrant.dart
34+
/coverage/
3635

3736
# Symbolication related
3837
app.*.symbols

0 commit comments

Comments
 (0)