Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
build-android:
name: Build Android APK (ARM64)
name: Build Android APK (Universal)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -23,14 +23,18 @@ jobs:

- name: Prepare jniLibs
run: |
mkdir -p gui/android/app/src/main/jniLibs/arm64-v8a
for f in bins/android/arm64-v8a/*; do
if [ -f "$f" ]; then
b=$(basename "$f")
cp "$f" "gui/android/app/src/main/jniLibs/arm64-v8a/lib${b}.so"
for abi in arm64-v8a x86_64; do
mkdir -p "gui/android/app/src/main/jniLibs/$abi"
if [ -d "bins/android/$abi" ]; then
for f in "bins/android/$abi"/*; do
if [ -f "$f" ]; then
b=$(basename "$f")
cp "$f" "gui/android/app/src/main/jniLibs/$abi/lib${b}.so"
fi
done
chmod +x gui/android/app/src/main/jniLibs/$abi/* 2>/dev/null || true
fi
done
chmod +x gui/android/app/src/main/jniLibs/arm64-v8a/*

- name: Set up Java 17
uses: actions/setup-java@v4
Expand All @@ -47,10 +51,10 @@ jobs:
run: |
cd gui
flutter pub get
flutter build apk --release --target-platform android-arm64
flutter build apk --release

- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: OpenROM-Android-arm64
name: OpenROM-Android-Universal
path: gui/build/app/outputs/flutter-apk/app-release.apk
2 changes: 1 addition & 1 deletion gui/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
versionCode = flutter.versionCode
versionName = flutter.versionName
ndk {
abiFilters.add("arm64-v8a")
abiFilters.addAll(listOf("arm64-v8a", "x86_64"))
}
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
</adaptive-icon>
Binary file modified gui/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gui/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gui/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gui/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified gui/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions gui/android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#090910</color>
</resources>
32 changes: 32 additions & 0 deletions gui/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.4.1"
checked_yaml:
dependency: transitive
description:
name: checked_yaml
sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f"
url: "https://pub.dev"
source: hosted
version: "2.0.4"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
url: "https://pub.dev"
source: hosted
version: "0.4.2"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -126,6 +142,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
url: "https://pub.dev"
source: hosted
version: "0.14.4"
flutter_lints:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -181,6 +205,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.2"
image:
dependency: transitive
description:
name: image
sha256: f31d52537dc417fdcde36088fdf11d191026fd5e4fae742491ebd40e5a8bea7d
url: "https://pub.dev"
source: hosted
version: "4.3.0"
intl:
dependency: "direct main"
description:
Expand Down
8 changes: 8 additions & 0 deletions gui/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,17 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^6.0.0
cross_file: ^0.3.5
flutter_launcher_icons: ^0.14.4

flutter:
uses-material-design: true
generate: true
assets:
- themes/

flutter_launcher_icons:
android: "ic_launcher"
ios: false
image_path: "../assets/icons/icon.png"
adaptive_icon_background: "#090910"
adaptive_icon_foreground: "../assets/icons/icon.png"
Loading