updated java version
This commit is contained in:
@@ -31,9 +31,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./setup.sh
|
./setup.sh
|
||||||
|
|
||||||
- name: Build APKs
|
- name: Build APKs debug
|
||||||
run: |
|
run: |
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
|
- name: Build APKs release
|
||||||
|
run: |
|
||||||
./build.sh clean
|
./build.sh clean
|
||||||
|
|
||||||
- name: Copy APKs to host directory
|
- name: Copy APKs to host directory
|
||||||
|
|||||||
9
build.sh
9
build.sh
@@ -4,11 +4,18 @@
|
|||||||
|
|
||||||
# Check for a build mode argument
|
# Check for a build mode argument
|
||||||
|
|
||||||
export JAVA_HOME="/usr/lib/jvm/java-21-openjdk"
|
echo "Find Java and Android SDK paths"
|
||||||
|
|
||||||
|
echo "JAVA_HOME before: $JAVA_HOME"
|
||||||
|
echo "Finding javac path... $(which javac)"
|
||||||
|
|
||||||
|
|
||||||
|
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
|
||||||
export ANDROID_HOME='/opt/android-sdk'
|
export ANDROID_HOME='/opt/android-sdk'
|
||||||
export PATH="${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin"
|
export PATH="${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin"
|
||||||
export PATH="${PATH}:${ANDROID_HOME}/platform-tools"
|
export PATH="${PATH}:${ANDROID_HOME}/platform-tools"
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" == "clean" ]; then
|
if [ "$1" == "clean" ]; then
|
||||||
BUILD_MODE="clean build"
|
BUILD_MODE="clean build"
|
||||||
BUILD_LOGGING=""
|
BUILD_LOGGING=""
|
||||||
|
|||||||
@@ -5,20 +5,20 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'com.example.FastAdmin' // Replace with your package name
|
namespace 'com.example.FastAdmin' // Replace with your package name
|
||||||
compileSdk 34 // Use the latest stable SDK
|
compileSdk = 34 // Use the latest stable SDK
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.example.FastAdmin"
|
applicationId = "com.example.FastAdmin"
|
||||||
minSdk 24
|
minSdk = 24
|
||||||
targetSdk 34
|
targetSdk = 34
|
||||||
versionCode 1
|
versionCode = 1
|
||||||
versionName "1.0"
|
versionName = "1.:with0"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Optional: for Kotlin usage
|
// Optional: for Kotlin usage
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '1.8'
|
jvmTarget = '1.8'
|
||||||
|
|||||||
Reference in New Issue
Block a user