File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ set -xe
2020# You may edit this if your repo has a different project structure
2121for GRADLEW in ` find . -name " gradlew" ` ; do
2222 SAMPLE=$( dirname " ${GRADLEW} " )
23+ # Initialize jenv to manage Java versions
24+ if command -v jenv & > /dev/null; then
25+ pushd " $SAMPLE "
26+ eval " $( jenv init -) "
27+ popd
28+ fi
2329 # Tell Gradle that this is a CI environment and disable parallel compilation
2430 bash " $GRADLEW " -p " $SAMPLE " -Pci --no-parallel --stacktrace $@
2531done
Original file line number Diff line number Diff line change 4040 distribution : ' zulu'
4141 java-version : ' 17'
4242 - name : Build project
43- run : |
44- .github/scripts/gradlew_recursive.sh assembleDebug
43+ run : .github/scripts/gradlew_recursive.sh assembleDebug
4544 - name : Zip artifacts
4645 run : zip -r assemble.zip . -i '**/build/*.apk' '**/build/*.aab' '**/build/*.aar' '**/build/*.so'
4746 - name : Upload artifacts
Original file line number Diff line number Diff line change 1+ 17
Original file line number Diff line number Diff line change 1919buildscript {
2020 // Top-level variables used for versioning
2121 ext. kotlin_version = ' 1.9.20'
22- ext. java_version = JavaVersion . VERSION_17
22+ ext. java_version = JavaVersion . VERSION_1_8
2323
2424 repositories {
2525 google()
Original file line number Diff line number Diff line change 11
2- org.gradle.java.home =/Users/cartland/.jenv/versions/17
3- android.useAndroidX =true
2+ # Project-wide Gradle settings.
3+
4+ # IDE (e.g. Android Studio) users:
5+ # Settings specified in this file will override any Gradle settings
6+ # configured through the IDE.
7+
8+ # For more details on how to configure your build environment visit
9+ # http://www.gradle.org/docs/current/userguide/build_environment.html
10+
11+ # Specifies the JVM arguments used for the daemon process.
12+ # The setting is particularly useful for tweaking memory settings.
13+ # Default value: -Xmx10248m -XX:MaxPermSize=256m
14+ # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
15+
16+ # When configured, Gradle will run in incubating parallel mode.
17+ # This option should only be used with decoupled projects. More details, visit
18+ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
19+ # org.gradle.parallel=true
20+
421android.enableJetifier =true
22+ android.useAndroidX =true
Original file line number Diff line number Diff line change 1+ 17
Original file line number Diff line number Diff line change @@ -38,5 +38,4 @@ kotlin.code.style=official
3838# thereby reducing the size of the R class for that library
3939android.nonTransitiveRClass =true
4040android.defaults.buildfeatures.buildconfig =true
41- android.nonFinalResIds =false
42- org.gradle.java.home =/Users/cartland/.jenv/versions/17
41+ android.nonFinalResIds =false
You can’t perform that action at this time.
0 commit comments