Skip to content

Commit 581b67a

Browse files
thearaksdaadu
andauthored
chore: Update Gradle to 8.2 and AGP to 8.2.0 (#360)
* Update Gradle to 8.2 and AGP to 8.2.0 * ci: setup JAVA 17 * wifi_iot(fix): example - unignore gradel-wrapper.properties --------- Co-authored-by: Harsh Bhikadia <harsh.bhikadiya@gmail.com>
1 parent 71522f4 commit 581b67a

File tree

20 files changed

+48
-23
lines changed

20 files changed

+48
-23
lines changed

.github/workflows/wifi_iot.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- name: "Checkout repository"
2020
uses: actions/checkout@v2
21+
- name: "Set up Java"
22+
uses: actions/setup-java@v2
23+
with:
24+
distribution: "temurin"
25+
java-version: 17
2126
- name: "Install Flutter"
2227
run: ./.github/workflows/scripts/install-flutter.sh stable
2328
- name: "Install Tools"

.github/workflows/wifi_scan.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
steps:
1919
- name: "Checkout repository"
2020
uses: actions/checkout@v2
21+
- name: "Set up Java"
22+
uses: actions/setup-java@v2
23+
with:
24+
distribution: "temurin"
25+
java-version: 17
2126
- name: "Install Flutter"
2227
run: ./.github/workflows/scripts/install-flutter.sh stable
2328
- name: "Install Tools"

packages/wifi_iot/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ unlinked_spec.ds
6464
**/android/local.properties
6565
**/android/**/GeneratedPluginRegistrant.java
6666
**/android/key.properties
67-
**/android/gradle
6867
*.jks
6968

7069
# iOS/XCode related
@@ -107,4 +106,4 @@ coverage/
107106
!/dev/ci/**/Gemfile.lock
108107

109108
# FVM
110-
.fvm
109+
.fvm

packages/wifi_iot/android/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:4.1.0'
11+
classpath 'com.android.tools.build:gradle:8.2.0'
1212
}
1313
}
1414

@@ -22,6 +22,8 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25+
namespace 'com.alternadom.wifiiot'
26+
2527
compileSdkVersion 30
2628

2729
defaultConfig {

packages/wifi_iot/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
44
android.enableR8=true
5+
android.enableR8.fullMode=false

packages/wifi_iot/android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.alternadom.wifiiot">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<uses-feature android:name="android.hardware.wifi" />
43
<uses-permission android:name="android.permission.INTERNET" />
54
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ apply plugin: 'com.android.application'
1515
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
1616

1717
android {
18+
namespace 'com.alternadom.wifiiotexample'
19+
1820
compileSdkVersion flutter.compileSdkVersion
1921

2022
compileOptions {

packages/wifi_iot/example/android/app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.alternadom.wifiiotexample">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<!-- The INTERNET permission is required for development. Specifically,
54
flutter needs it to communicate with the running application
@@ -19,7 +18,8 @@
1918
android:hardwareAccelerated="true"
2019
android:launchMode="singleTop"
2120
android:theme="@style/LaunchTheme"
22-
android:windowSoftInputMode="adjustResize">
21+
android:windowSoftInputMode="adjustResize"
22+
android:exported="true">
2323
<!-- Specify that the launch screen should continue being displayed -->
2424
<!-- until Flutter renders its first frame. -->
2525
<meta-data

packages/wifi_iot/example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:4.1.0'
8+
classpath 'com.android.tools.build:gradle:8.2.0'
99
}
1010
}
1111

@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
org.gradle.jvmargs=-Xmx1536M
2-
android.enableR8=true
32
android.useAndroidX=true
4-
android.enableJetifier=true
3+
android.enableJetifier=true
4+
android.enableR8=true
5+
android.enableR8.fullMode=false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

packages/wifi_scan/android/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ group 'dev.flutternetwork.wifi.wifi_scan'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.6.10'
5+
ext.kotlin_version = '1.8.21'
66
repositories {
77
google()
88
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:4.1.0'
12+
classpath 'com.android.tools.build:gradle:8.2.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -25,6 +25,8 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28+
namespace 'dev.flutternetwork.wifi.wifi_scan'
29+
2830
compileSdkVersion 30
2931

3032
compileOptions {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true
5+
android.enableR8.fullMode=false

packages/wifi_scan/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-6.7-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

packages/wifi_scan/android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="dev.flutternetwork.wifi.wifi_scan">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- required for: `WifiManager.getScanResult` -->
43
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
54
<!-- required for: `WifiManager.startScan` -->

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29+
namespace 'dev.flutternetwork.wifi.wifi_scan_example'
30+
2931
compileSdkVersion flutter.compileSdkVersion
3032

3133
compileOptions {

packages/wifi_scan/example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="dev.flutternetwork.wifi.wifi_scan_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<application
43
android:label="wifi_scan_example"
54
android:icon="@mipmap/ic_launcher">

packages/wifi_scan/example/android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.8.21'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:8.2.0'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true
5+
android.enableR8.fullMode=false

packages/wifi_scan/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-6.7-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip

0 commit comments

Comments
 (0)