Skip to content

Commit

Permalink
[build] upgrade to gradle 8.2.2
Browse files Browse the repository at this point in the history
The gradle version is too old that it doesn't build with java 17.
This commit upgrades gradle to 8.2.2 as suggested by Android studio.
The changes in this commit are auto-generated when apply the suggested
version by Android studio.
  • Loading branch information
wgtdkp committed Mar 28, 2024
1 parent 5eea3b0 commit 0de2267
Show file tree
Hide file tree
Showing 12 changed files with 281 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
matrix:
android-api: [24]
android-abi: [x86, x86_64]
os: [macos-12, ubuntu-20.04]
os: [macos-13, ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- name: Bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-app-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on: [push, pull_request]

jobs:
build-release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check Release Version
Expand Down
7 changes: 5 additions & 2 deletions android/openthread_commissioner/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ task printVersionName {

android {
compileSdkVersion 30
buildToolsVersion "30.0.1"

defaultConfig {
applicationId "io.openthread.commissioner.app"
minSdkVersion 24
targetSdkVersion 30
targetSdkVersion 34
versionCode 1
versionName "0.0.1"

Expand All @@ -73,6 +72,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'io.openthread.commissioner.app'
buildFeatures {
buildConfig true
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.openthread.commissioner.app">

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
Expand All @@ -11,13 +9,13 @@
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/Theme.OpenThreadCommissioner.NoActionBar">
android:theme="@style/Theme.OpenThreadCommissioner.NoActionBar"
android:exported="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
2 changes: 1 addition & 1 deletion android/openthread_commissioner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.android.tools.build:gradle:8.2.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 2 additions & 0 deletions android/openthread_commissioner/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sat Oct 17 16:15:40 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
Loading

0 comments on commit 0de2267

Please sign in to comment.