Compare commits

..

10 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
e47ae1ed20 added logging mode for different build modes
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 7m27s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s
2025-12-10 10:39:53 +01:00
5cdff335c7 added build.sh argument for clean/debug mode 2025-12-10 10:38:43 +01:00
339044336f added 32-bit support packages 2025-12-10 10:34:36 +01:00
7 changed files with 48 additions and 20 deletions

View File

@@ -31,10 +31,17 @@ 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: |
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 - name: Copy APKs to host directory
run: | run: |
export APKS=$(find src -type f -name "*.apk") export APKS=$(find src -type f -name "*.apk")

View File

@@ -2,6 +2,28 @@
# This script will initialize the gradle build process for all subprojects in src dicetory # This script will initialize the gradle build process for all subprojects in src dicetory
# 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="clean assembleRelease"
BUILD_LOGGING=""
else
BUILD_MODE="assembleDebug"
BUILD_LOGGING="--warning-mode all"
fi
# check if user is root and change user to builder # check if user is root and change user to builder
if [ "$EUID" -eq 0 ]; then if [ "$EUID" -eq 0 ]; then
@@ -19,7 +41,8 @@ yes | /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses
for dir in src/*/; do for dir in src/*/; do
if [ -f "$dir/build.gradle" ]; then if [ -f "$dir/build.gradle" ]; then
echo "Building project in $dir" echo "Building project in $dir"
(cd "$dir" && gradle build) gradle --stop
(cd "$dir" && gradle clean $BUILD_MODE $BUILD_LOGGING)
else else
echo "No build.gradle found in $dir, skipping." echo "No build.gradle found in $dir, skipping."
fi fi

View File

@@ -1,3 +1,6 @@
git git
base-devel base-devel
cargo cargo
lib32-zlib
lib32-ncurses
lib32-sdl

3
dist/pacman.sh vendored
View File

@@ -12,9 +12,6 @@ else
pacman -Syu --noconfirm "${packages[@]}" pacman -Syu --noconfirm "${packages[@]}"
fi 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" ARCH_PACKAGE_FILE="dist/arch/packages.txt"
if [ ! -f "$ARCH_PACKAGE_FILE" ]; then if [ ! -f "$ARCH_PACKAGE_FILE" ]; then

View File

@@ -1,24 +1,24 @@
plugins { plugins {
id 'com.android.application' id = 'com.android.application'
id 'org.jetbrains.kotlin.android' id = 'org.jetbrains.kotlin.android'
} }
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'
@@ -27,6 +27,6 @@ android {
dependencies { dependencies {
// Add necessary dependencies // Add necessary dependencies
implementation 'androidx.core:core-ktx:1.9.0' implementation = 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.6.1' 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