Minor dependency and readme update.

This commit is contained in:
Miku AuahDark
2023-04-17 21:09:13 +08:00
parent 5d34bf94f3
commit f9eca86935
4 changed files with 13 additions and 13 deletions
+10 -10
View File
@@ -1,7 +1,7 @@
Android Port of LÖVE, an awesome 2D game engine for Lua (http://love2d.org)
Copyright (c) 2006-2022 LOVE Development Team
![](https://github.com/love2d/love-android/workflows/build/badge.svg)
![Build Status](https://github.com/love2d/love-android/workflows/build/badge.svg)
Download:
---------
@@ -38,32 +38,32 @@ Detailed instructions can be viewed at https://github.com/love2d/love-android/wi
Quick Start:
------------
Before you start, install JDK 11 or later. If you intend to build from Android Studio, skip this step as
Android Studio bundles its own JDK 11.
Before you start, install JDK 17 or later. If you intend to build from Android Studio, skip this step as
Android Studio bundles its own JDK 17.
Install Android SDK with SDK API 33 (33.0.0) and Android NDK 23.2.8568313, set the environment variables
`ANDROID_SDK_ROOT` to your Android SDK location and run.
Install Android SDK with SDK API 33 (33.0.0) and Android NDK 23.2.8568313, set the environment variable
`ANDROID_SDK_ROOT` to your Android SDK location and run:
```
$ ./gradlew assembleNormalRecord
```
in the root folder of this project. This should give you a .apk file in the `app/build/outputs/apk/normalRecord`
subdirectory that you can then sign and install on your phone. The `normalRecord` .apk flavor is what you normally have
when downloading one from https://love2d.org.
in the root folder of this project. This should give you an .apk file in the `app/build/outputs/apk/normalRecord`
subdirectory that you can then sign and install on your phone. The `normalRecord` .apk variant is what you normally have
when downloading APK from https://love2d.org.
If you want to put your game inside the APK, you can either:
1. Put all your games in `app/src/embed/assets` such that your `main.lua` path is `app/src/embed/assets/main.lua`; or
2. Put your zipped \*.love in `app/src/embed/assets` with name `game.love`
And change the package name, application version string and codes, application display name, and the icons (see
And change the application id, application version string and codes, application display name, and the icons (see
[Game Packaging Wiki](https://github.com/love2d/love-android/wiki/Game-Packaging). Afterwards,
run either `gradlew assembleEmbedNoRecordRelease` (or `gradlew assembleEmbedRecordRelease` if your game uses microphone) to
generate APK which you can install or `gradlew bundleEmbedNoRecordRelease` (or `gradlew bundleEmbedRecordRelease`) to generate
AAB which you can upload to Play Store.
Alternatively, you can install Android Studio **2021.3.1** or later. After opening it for the first time, open its SDK Manager
Alternatively, you can install Android Studio **2022.2.1** or later. After opening it for the first time, open its SDK Manager
and on the tab "SDK Tools", tick "Show Package Details" then select NDK (Side By Side) version 23.2.8568313. After that, open
the repository root.
+1 -1
View File
@@ -67,6 +67,6 @@ android {
dependencies {
api 'androidx.multidex:multidex:2.0.1'
api fileTree(dir: 'libs', include: ['*.jar'])
api 'androidx.appcompat:appcompat:1.5.1'
api 'androidx.appcompat:appcompat:1.6.1'
api project(':love')
}
+1 -1
View File
@@ -12,7 +12,7 @@ app.version_code=31
app.version_name=11.5
# No need to modify anything past this line!
android.enableJetifier=true
android.enableJetifier=false
android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=true
+1 -1
View File
@@ -113,5 +113,5 @@ android {
dependencies {
api fileTree(dir: 'libs', include: ['*.jar'])
api 'androidx.appcompat:appcompat:1.5.1'
api 'androidx.appcompat:appcompat:1.6.1'
}