Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle version to 8.7 #22206

Open
wants to merge 55 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
50981a1
Update gradle version to 8.10.2
jchen351 Sep 24, 2024
54cce11
update setting.gradle
jchen351 Sep 24, 2024
a7b1370
Update gradle-wrapper.properties in java project.
jchen351 Sep 24, 2024
2d09024
com.android.tools.build:gradle:8.6.0
jchen351 Sep 24, 2024
70308f4
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
82ab4ee
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
876eb4a
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
9b60ae7
com.android.tools.build:gradle:8.6.1
jchen351 Sep 24, 2024
aa613aa
com.android.tools.build:gradle:8.6.1
jchen351 Sep 25, 2024
c5baa3b
Use JDK 17 for andriod-java-api-aar.yml
jchen351 Sep 25, 2024
963f379
Use JDK 17 for android-binary-size-check-stage.yml
jchen351 Sep 25, 2024
0f7003b
downgrade com.android.tools.build:gradle:8.6.1 to 7.4.2
jchen351 Sep 25, 2024
53dc498
Rolling back android/src/main/AndroidManifest.xml
jchen351 Sep 25, 2024
ccc3028
npm run format
jchen351 Sep 25, 2024
8fbf193
Rolling back packages
jchen351 Sep 25, 2024
ab98a79
Undo changes on tools/ci_build/github/azure-pipelines/templates/andro…
jchen351 Sep 30, 2024
b1c2f9c
Merge branch 'main' into Cjian/gradle
jchen351 Sep 30, 2024
7da268d
Merge branch 'main' into Cjian/gradle
jchen351 Oct 1, 2024
485de16
Increase -Xmx6144M
jchen351 Oct 1, 2024
feff4ca
Increase -Xmx6144M
jchen351 Oct 2, 2024
9a7d008
Increase -Xmx6144M
jchen351 Oct 2, 2024
44ca723
update minSdkVersion to 29 and sdk version to 34
jchen351 Oct 2, 2024
6d6fda5
Update kotlinVersion
jchen351 Oct 2, 2024
0edd95f
ADD registerReceiver Override method
jchen351 Oct 2, 2024
228c0b3
targetSdkVersion to 33
jchen351 Oct 2, 2024
2b2cfc8
android-31
jchen351 Oct 2, 2024
f1de779
buildToolsVersion to 34
jchen351 Oct 2, 2024
e3bb6b8
Merge branch 'main' into Cjian/gradle
jchen351 Oct 3, 2024
7412aeb
Merge with the master
jchen351 Oct 3, 2024
6c2e71d
android_api=33
jchen351 Oct 3, 2024
33ee3ee
Update uses-permission and core-ktx version
jchen351 Oct 3, 2024
8f02cbb
Force kotlin version to 1.8.10
jchen351 Oct 3, 2024
1a6e6ab
revert tools/ci_build/github/azure-pipelines/templates/android-binary…
jchen351 Oct 4, 2024
856ac62
Swtiching min sdk back to 24
jchen351 Oct 4, 2024
52a52b2
"android_min_sdk_version": 24,
jchen351 Oct 4, 2024
22c0a9a
DEFAULT_ANDROID_MIN_SDK_VER = 24
jchen351 Oct 4, 2024
870b48b
Update version to use VERSION NUMBER
jchen351 Oct 7, 2024
84271dc
comment out
jchen351 Oct 8, 2024
d5c5829
Adding rootProject.file('../../../../VERSION_NUMBER').text.trim()
jchen351 Oct 10, 2024
a50f645
Merge branch 'main' into Cjian/gradle
jchen351 Oct 14, 2024
25be09e
Add debug info into Build React Native Detox Android e2e Tests
jchen351 Oct 14, 2024
797bdc6
Update FLIPPER_VERSION=0.99.0
jchen351 Oct 14, 2024
c9ee66e
implementation "com.microsoft.onnxruntime:onnxruntime-android:lates…
jchen351 Oct 14, 2024
4349764
Update kotlin version ro 1.8.10
jchen351 Oct 14, 2024
cbb0f79
Update kotlin version ro 1.8.10
jchen351 Oct 15, 2024
0280f7e
accessExternalSchema issue
jchen351 Oct 15, 2024
3cd92d1
accessExternalSchema issue
jchen351 Oct 15, 2024
3387f33
apply plugin: 'com.android.library'
jchen351 Oct 15, 2024
e540496
apply plugin: 'com.android.library'
jchen351 Oct 15, 2024
93fc5ef
Update Android SDK version to 34 in gradle.properties.
jchen351 Nov 15, 2024
2aa8e0b
Merge remote-tracking branch 'origin/main' into Cjian/gradle
jchen351 Nov 15, 2024
f32cc6f
Merge branch 'Cjian/jdk17-js' into Cjian/gradle
jchen351 Nov 15, 2024
dba1505
Update Android system image version from 33 to 34.
jchen351 Nov 15, 2024
0239015
Update JVM arguments in gradle.properties for React Native Android pr…
jchen351 Nov 15, 2024
02ad09f
Merge branch 'Cjian/jdk17-js' into Cjian/gradle
jchen351 Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified java/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions java/src/test/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -16,5 +16,4 @@
</intent-filter>
</activity>
</application>

</manifest>
</manifest>
2 changes: 1 addition & 1 deletion java/src/test/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx6144M -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
6 changes: 2 additions & 4 deletions js/react_native/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import java.nio.file.Paths

buildscript {
repositories {
google()
Expand Down Expand Up @@ -127,8 +126,8 @@ android {
disable 'GradleCompatible'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

sourceSets {
Expand Down Expand Up @@ -227,7 +226,6 @@ dependencies {
implementation "junit:junit:4.12"

androidTestImplementation "com.linkedin.dexmaker:dexmaker-mockito-inline-extended:2.28.1"

implementation "com.microsoft.onnxruntime:onnxruntime-android:latest.integration@aar"

// By default it will just include onnxruntime full aar package
Expand Down
12 changes: 8 additions & 4 deletions js/react_native/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=all
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand All @@ -14,6 +14,10 @@ org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF
android.enableJetifier=true
android.useAndroidX=true
OnnxruntimeModule_buildToolsVersion=29.0.2
OnnxruntimeModule_compileSdkVersion=31
OnnxruntimeModule_minSdkVersion=21
OnnxruntimeModule_targetSdkVersion=31
OnnxruntimeModule_compileSdkVersion=34
OnnxruntimeModule_minSdkVersion=24
OnnxruntimeModule_targetSdkVersion=34

systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=cb87f222c5585bd46838ad4db78463a5c5f3d336e5e2b98dc7c0c586527351c2
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 7 additions & 5 deletions js/react_native/e2e/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: "com.android.application"
plugins {
id 'com.android.application'
}

import com.android.build.OutputFile

Expand Down Expand Up @@ -80,8 +82,6 @@ project.ext.react = [
entryFile: "index.tsx",
]

apply from: "../../node_modules/react-native/react.gradle"

/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
Expand Down Expand Up @@ -123,8 +123,8 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

defaultConfig {
Expand Down Expand Up @@ -218,8 +218,10 @@ dependencies {
androidTestImplementation 'androidx.test:rules:1.4.0'

implementation project(':onnxruntime-react-native')

// specify ORT dependency here so it can be found in libs flatDir repository
implementation "com.microsoft.onnxruntime:onnxruntime-android:latest.integration@aar"

}

// Run this once to be able to run the application with BUCK
Expand Down
8 changes: 4 additions & 4 deletions js/react_native/e2e/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
minSdkVersion = 24
compileSdkVersion = 34
targetSdkVersion = 34
kotlinVersion = "1.5.30"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath('com.android.tools.build:gradle:7.1.1')
classpath('com.android.tools.build:gradle:7.4.2')
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
9 changes: 6 additions & 3 deletions js/react_native/e2e/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx6144M -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Djavax.xml.accessExternalSchema=all -Djavax.xml.accessExternalDTD=all

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
Expand All @@ -19,5 +19,8 @@

android.useAndroidX=true
android.enableJetifier=true
FLIPPER_VERSION=0.54.0
org.gradle.jvmargs=-Xmx4096M
FLIPPER_VERSION=0.99.0

systemProp.javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
systemProp.javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
systemProp.javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
Binary file modified js/react_native/e2e/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=b586e04868a22fd817c8971330fec37e298f3242eb85c374181b12d637f80302
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionSha256Sum=544c35d6bd849ae8a5ed0bcea39ba677dc40f49df7d1835561582da2009b961d
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading