Skip to content

Commit 1f7e328

Browse files
authored
periodical cleanup (#952)
1 parent 1ea4c4c commit 1f7e328

File tree

18 files changed

+87
-88
lines changed

18 files changed

+87
-88
lines changed

.github/workflows/location-prepare.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
flutter-version: ["3.22.x"]
15+
flutter-version: ["3.27.x"]
1616

1717
steps:
1818
- name: Clone repository
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Flutter
5454
uses: subosito/flutter-action@v2
5555
with:
56-
flutter-version: 3.22.x
56+
flutter-version: 3.27.x
5757

5858
- name: Set up Java
5959
uses: actions/setup-java@v4
@@ -80,7 +80,7 @@ jobs:
8080
- name: Set up Flutter
8181
uses: subosito/flutter-action@v2
8282
with:
83-
flutter-version: 3.22.x
83+
flutter-version: 3.27.x
8484

8585
- name: Install tools
8686
run: brew install clang-format

packages/location/android/build.gradle

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath "com.android.tools.build:gradle:8.3.1"
13-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23"
14-
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.5.0"
12+
classpath("com.android.tools.build:gradle:8.8.0")
13+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.1.0")
14+
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.5.0")
1515
}
1616
}
1717

@@ -21,31 +21,36 @@ repositories {
2121
}
2222

2323
apply plugin: "com.android.library"
24-
apply plugin: "kotlin-android"
24+
apply plugin: "org.jetbrains.kotlin.android"
2525
apply plugin: "org.jlleitschuh.gradle.ktlint"
2626

2727
android {
2828
namespace = "com.lyokone.location"
29-
compileSdk = 34
30-
31-
defaultConfig {
32-
minSdk = 21
33-
}
29+
compileSdk = 35
3430

3531
compileOptions {
36-
sourceCompatibility = JavaVersion.VERSION_1_8
37-
targetCompatibility = JavaVersion.VERSION_1_8
32+
sourceCompatibility = JavaVersion.VERSION_11
33+
targetCompatibility = JavaVersion.VERSION_11
3834
}
3935

4036
kotlinOptions {
41-
jvmTarget = "1.8"
42-
allWarningsAsErrors = true
37+
jvmTarget = "11"
38+
// allWarningsAsErrors = true // TODO(bartekpacia): Re-enable
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += "src/main/kotlin"
43+
test.java.srcDirs += "src/test/kotlin"
44+
}
45+
46+
defaultConfig {
47+
minSdk = 21
48+
targetSdk = 35
4349
}
4450
}
4551

4652
dependencies {
47-
compileOnly "androidx.annotation:annotation:1.6.0"
48-
49-
api "com.google.android.gms:play-services-location:21.2.0"
50-
implementation "androidx.core:core-ktx:1.10.1"
53+
compileOnly("androidx.annotation:annotation:1.6.0")
54+
implementation("androidx.core:core-ktx:1.13.1")
55+
api("com.google.android.gms:play-services-location:21.3.0")
5156
}

packages/location/example/android/app/build.gradle

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
11
plugins {
22
id "com.android.application"
3-
id "dev.flutter.flutter-gradle-plugin"
43
id "org.jetbrains.kotlin.android"
5-
}
6-
7-
def localProperties = new Properties()
8-
def localPropertiesFile = rootProject.file("local.properties")
9-
if (localPropertiesFile.exists()) {
10-
localPropertiesFile.withReader("UTF-8") { reader ->
11-
localProperties.load(reader)
12-
}
13-
}
14-
15-
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
16-
if (flutterVersionCode == null) {
17-
flutterVersionCode = "1"
18-
}
19-
20-
def flutterVersionName = localProperties.getProperty("flutter.versionName")
21-
if (flutterVersionName == null) {
22-
flutterVersionName = "1.0"
4+
id "dev.flutter.flutter-gradle-plugin"
235
}
246

257
android {
26-
compileSdk = 34
8+
compileSdk = flutter.compileSdkVersion
279
namespace = "com.lyokone.location.example"
2810

2911
defaultConfig {
3012
applicationId = "com.lyokone.location.example"
31-
minSdk = 21
32-
targetSdk = 34
33-
versionCode = flutterVersionCode.toInteger()
34-
versionName = flutterVersionName
13+
minSdk = flutter.minSdkVersion
14+
targetSdk = flutter.targetSdkVersion
15+
versionCode = flutter.versionCode
16+
versionName = flutter.versionName
3517
}
3618

3719
compileOptions {
38-
sourceCompatibility = JavaVersion.VERSION_1_8
39-
targetCompatibility = JavaVersion.VERSION_1_8
20+
sourceCompatibility = JavaVersion.VERSION_11
21+
targetCompatibility = JavaVersion.VERSION_11
22+
}
23+
24+
kotlinOptions {
25+
jvmTarget = "11"
4026
}
4127

4228
buildTypes {

packages/location/example/android/build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
allprojects {
2-
repositories {
3-
google()
4-
mavenCentral()
5-
}
6-
}
7-
81
rootProject.buildDir = "../build"
92
subprojects {
103
project.buildDir = "${rootProject.buildDir}/${project.name}"
4+
}
5+
subprojects {
116
project.evaluationDependsOn(":app")
127
}
138

packages/location/example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip

packages/location/example/android/settings.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ pluginManagement {
1717
}
1818

1919
plugins {
20-
id "dev.flutter.flutter-plugin-loader"
21-
id "com.android.application" version "8.3.1" apply false
22-
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
20+
id("dev.flutter.flutter-plugin-loader")
21+
id("com.android.application") version("8.8.0") apply false
22+
id("org.jetbrains.kotlin.android") version("2.1.0") apply false
2323
}
2424

25-
include ":app"
25+
include(":app")

packages/location/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

packages/location/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

packages/location/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
97C146E61CF9000F007C117D /* Project object */ = {
164164
isa = PBXProject;
165165
attributes = {
166-
LastUpgradeCheck = 1300;
166+
LastUpgradeCheck = 1510;
167167
ORGANIZATIONNAME = "The Chromium Authors";
168168
TargetAttributes = {
169169
97C146ED1CF9000F007C117D = {

packages/location/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)