From f9eca8693594f49c12ce816d83b63ec08704e202 Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Mon, 17 Apr 2023 21:09:13 +0800 Subject: [PATCH] Minor dependency and readme update. --- README.md | 20 ++++++++++---------- app/build.gradle | 2 +- gradle.properties | 2 +- love/build.gradle | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 311efa8e..0de86ffb 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/app/build.gradle b/app/build.gradle index ba2cce52..3ac7a2a4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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') } diff --git a/gradle.properties b/gradle.properties index 835a16f3..57ea6255 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/love/build.gradle b/love/build.gradle index 16ff020f..2e8de674 100644 --- a/love/build.gradle +++ b/love/build.gradle @@ -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' }