[Simulator/Android] Bump Gradle and Java & Add Android on README

This commit is contained in:
mickbot-92
2025-11-08 23:25:11 +01:00
committed by GitHub
parent d1b8cefcf9
commit be0edc48b6
5 changed files with 49 additions and 11 deletions

View File

@@ -111,10 +111,10 @@ jobs:
- run: | - run: |
sudo apt-get update sudo apt-get update
sudo apt-get install imagemagick libfreetype-dev libpng-dev sudo apt-get install imagemagick libfreetype-dev libpng-dev
- name: Set up JDK 21 - name: Set up JDK 25
uses: actions/setup-java@v4 uses: actions/setup-java@v5
with: with:
java-version: '21' java-version: '25'
distribution: 'temurin' distribution: 'temurin'
- run: wget -nv https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip - run: wget -nv https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
- run: unzip -q android-ndk-r21e-linux-x86_64.zip - run: unzip -q android-ndk-r21e-linux-x86_64.zip

View File

@@ -416,6 +416,26 @@ Le simulateur se trouve dans `output/release/simulator/web/simulator.zip`
<details> <details>
<summary><b>Simulateur Android</b></summary>
Assurez-vous d'avoir JDK 25 d'installé.
Ensuite, téléchargez la toolchain Android version r21e comme suit :
```
export ANDROID_HOME=$PWD/android-sdk
wget -nv https://gitlab.com/fdroid/sdkmanager/-/raw/master/sdkmanager.py
python3 sdkmanager.py --licenses
python3 sdkmanager.py --install "ndk-bundle;r21e"
```
Il ne vous reste plus qu'à lancer cette commande pour compiler Upsilon.
```
make -j$(nproc) PLATFORM=simulator TARGET=android
```
Le fichier compilé nommé `epsilon.apk` sera celui à installer sur le téléphone depuis votre gestionnaire de fichier. Fonctionne normalement à partir de Android 4.
</details>
<details>
<summary><b>Simulateur pour 3DS</b></summary> <summary><b>Simulateur pour 3DS</b></summary>
Il vous faut devkitPro et devkitARM installés et dans votre path (les instructions sont [ici](https://devkitpro.org/wiki/Getting_Started)) Il vous faut devkitPro et devkitARM installés et dans votre path (les instructions sont [ici](https://devkitpro.org/wiki/Getting_Started))

View File

@@ -442,7 +442,25 @@ You can then put epsilon.3dsx on a SD card to run it from the HBC or use 3dslink
</details> </details>
<br> <details>
<summary><b>Android Simulator</b></summary>
Make sure you have JDK 25 installed.
Then, download the Android toolchain r21e as following :
```
export ANDROID_HOME=$PWD/android-sdk
wget -nv https://gitlab.com/fdroid/sdkmanager/-/raw/master/sdkmanager.py
python3 sdkmanager.py --licenses
python3 sdkmanager.py --install "ndk-bundle;r21e"
```
All you have to do is run this command to compile Upsilon.
```
make -j$(nproc) PLATFORM=simulator TARGET=android
```
The compiled file named `epsilon.apk` will be the one to install on the phone from your file manager. Shoudl work on Android 4.1+.
</details>
<details> <details>
<summary><b>Casio fx-CG-series Port</b></summary> <summary><b>Casio fx-CG-series Port</b></summary>

View File

@@ -16,7 +16,7 @@ buildscript {
google() google()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:8.8.1' classpath 'com.android.tools.build:gradle:8.13.0'
} }
} }
@@ -32,10 +32,10 @@ apply plugin: 'com.android.application'
android { android {
namespace = "io.github.upsilon.simulator" namespace = "io.github.upsilon.simulator"
compileSdkVersion 35 compileSdkVersion 36
defaultConfig { defaultConfig {
applicationId "io.github.upsilon.simulator" applicationId "io.github.upsilon.simulator"
minSdkVersion 21 minSdkVersion 16
targetSdkVersion 33 targetSdkVersion 33
def d=new Date() def d=new Date()
versionCode Instant.now().getEpochSecond().toInteger() versionCode Instant.now().getEpochSecond().toInteger()
@@ -77,8 +77,8 @@ android {
dependencies { dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs') implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.appcompat:appcompat:1.7.0" implementation "androidx.appcompat:appcompat:1.6.0"
implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.1.10")) implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.2.21"))
} }
java{toolchain{languageVersion=JavaLanguageVersion.of(21)}} java{toolchain{languageVersion=JavaLanguageVersion.of(25)}}

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists