mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-12 21:06:43 +02:00
Update to Java 21 + hardcode NDK to avoid warnings
This commit is contained in:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin' # See 'Supported distributions' for available options
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Flutter Doctor
|
- name: Flutter Doctor
|
||||||
id: flutter_doctor
|
id: flutter_doctor
|
||||||
|
@ -29,7 +29,7 @@ if (keystorePropertiesFile.exists()) {
|
|||||||
android {
|
android {
|
||||||
namespace = "dev.imranr.obtainium"
|
namespace = "dev.imranr.obtainium"
|
||||||
compileSdk = flutter.compileSdkVersion
|
compileSdk = flutter.compileSdkVersion
|
||||||
ndkVersion = flutter.ndkVersion
|
ndkVersion = "27.0.12077973" // 'flutter.ndkVersion' produces warnings (TODO can/should we switch back?)
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
isCoreLibraryDesugaringEnabled = true
|
isCoreLibraryDesugaringEnabled = true
|
||||||
|
@ -51,7 +51,7 @@ RUN \
|
|||||||
mv ${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools ${ANDROID_SDK_ROOT}/cmdline-tools/latest && \
|
mv ${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools ${ANDROID_SDK_ROOT}/cmdline-tools/latest && \
|
||||||
rm -v /tmp/tools.zip && \
|
rm -v /tmp/tools.zip && \
|
||||||
mkdir -p /root/.android/ && touch /root/.android/repositories.cfg &&\
|
mkdir -p /root/.android/ && touch /root/.android/repositories.cfg &&\
|
||||||
apt-get install -y --no-install-recommends openjdk-17-jdk openjdk-17-jre &&\
|
apt-get install -y --no-install-recommends openjdk-21-jdk openjdk-21-jre &&\
|
||||||
yes | sdkmanager --licenses &&\
|
yes | sdkmanager --licenses &&\
|
||||||
sdkmanager --update
|
sdkmanager --update
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user