Compare commits

..

7 Commits

Author SHA1 Message Date
a38893f5a3 updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 9m48s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s
2025-12-10 11:59:06 +01:00
27ba868374 updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 9m20s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s
2025-12-10 11:45:51 +01:00
822841877d updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 8m49s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s
2025-12-10 11:29:28 +01:00
a0c0288eae updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 5m41s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 10s
2025-12-10 11:20:44 +01:00
b088823836 updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 8m44s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 10s
2025-12-10 11:05:14 +01:00
fcdace915d updated java version
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 7m46s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 10s
2025-12-10 10:53:41 +01:00
dd3e6261ea updated java version
Some checks failed
Test setup and build APKs / Build-and-Create-Development-Environment (push) Has been cancelled
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Has been cancelled
2025-12-10 10:53:14 +01:00
6 changed files with 34 additions and 20 deletions

View File

@@ -31,9 +31,15 @@ jobs:
run: |
./setup.sh
- name: Build APKs
- name: Build APKs debug
run: |
./build.sh
- name: Build APKs release
run: |
find . -name "build" -type d -exec rm -rf {} +
rm -rf ~/.gradle/caches/
rm -rf /workspace/Fast/apk/src/**/app/build/kotlin
./build.sh clean
- name: Copy APKs to host directory

View File

@@ -4,8 +4,20 @@
# Check for a build mode argument
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 PATH="${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin"
export PATH="${PATH}:${ANDROID_HOME}/platform-tools"
if [ "$1" == "clean" ]; then
BUILD_MODE="assembleClean"
BUILD_MODE="clean assembleRelease"
BUILD_LOGGING=""
else
BUILD_MODE="assembleDebug"
@@ -29,6 +41,7 @@ yes | /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
for dir in src/*/; do
if [ -f "$dir/build.gradle" ]; then
echo "Building project in $dir"
gradle --stop
(cd "$dir" && gradle clean $BUILD_MODE $BUILD_LOGGING)
else
echo "No build.gradle found in $dir, skipping."

3
dist/pacman.sh vendored
View File

@@ -12,9 +12,6 @@ else
pacman -Syu --noconfirm "${packages[@]}"
fi
# Set arch-specific packages like Java version
archlinux-java set java-21-openjdk # Use the version you installed
ARCH_PACKAGE_FILE="dist/arch/packages.txt"
if [ ! -f "$ARCH_PACKAGE_FILE" ]; then

View File

@@ -1,24 +1,24 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id = 'com.android.application'
id = 'org.jetbrains.kotlin.android'
}
android {
namespace 'com.example.FastAdmin' // Replace with your package name
compileSdk 34 // Use the latest stable SDK
namespace = 'com.example.FastAdmin' // Replace with your package name
compileSdk = 34 // Use the latest stable SDK
defaultConfig {
applicationId "com.example.FastAdmin"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
applicationId = "com.example.FastAdmin"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.:with0"
}
// Optional: for Kotlin usage
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
@@ -27,6 +27,6 @@ android {
dependencies {
// Add necessary dependencies
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation = 'androidx.core:core-ktx:1.9.0'
implementation = 'androidx.appcompat:appcompat:1.6.1'
}

View File

@@ -1 +0,0 @@
sdk.dir=/opt/android-sdk

View File

@@ -1 +0,0 @@
sdk.dir=/opt/android-sdk