mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 00:20:57 +02:00
Bump minimum Android version and Android NDK version.
* Minimum Android version is now Android 6. * NDK 26.1.10909125 is now used.
This commit is contained in:
@@ -42,7 +42,7 @@ Before you start, install JDK 17 (not later not earlier). If you intend to build
|
||||
Android Studio bundles its own JDK 17.
|
||||
|
||||
Install CMake version 3.21 or later in your system. Install Android SDK with SDK API 34 (34.x.y) and Android NDK
|
||||
25.2.9519653, set the environment variable `ANDROID_HOME` to your Android SDK as necessary then run.
|
||||
26.1.10909125, set the environment variable `ANDROID_HOME` to your Android SDK as necessary then run.
|
||||
|
||||
```
|
||||
$ ./gradlew assembleNormalRecord
|
||||
@@ -64,7 +64,7 @@ generate APK which you can install or `gradlew bundleEmbedNoRecordRelease` (or `
|
||||
AAB which you can upload to Play Store.
|
||||
|
||||
Alternatively, you can install Android Studio **2022.3.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 25.2.9519653. After that, open
|
||||
and on the tab "SDK Tools", tick "Show Package Details" then select NDK (Side By Side) version 26.1.10909125. After that, open
|
||||
the repository root.
|
||||
|
||||
Notice: Previously, the embed + APKTool method is preferred, but recent announcements by Google and recent changes in Android render that method obsolete.
|
||||
|
||||
+2
-2
@@ -6,13 +6,13 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace "org.love2d.android"
|
||||
ndkVersion "26.0.10792818"
|
||||
ndkVersion "26.1.10909125"
|
||||
|
||||
defaultConfig {
|
||||
applicationId project.properties["app.application_id"]
|
||||
versionCode project.properties["app.version_code"].toInteger()
|
||||
versionName project.properties["app.version_name"]
|
||||
minSdk 21
|
||||
minSdk 23
|
||||
compileSdk 34
|
||||
targetSdk 34
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class IntentReceiverActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
@@ -35,7 +37,7 @@ public class IntentReceiverActivity extends Activity {
|
||||
Intent mainIntent = getIntent();
|
||||
Intent intent = new Intent(this, GameActivity.class);
|
||||
|
||||
if (mainIntent.getAction().equals(Intent.ACTION_SEND)) {
|
||||
if (Objects.equals(mainIntent.getAction(), Intent.ACTION_SEND)) {
|
||||
// Convert to simpler intent that our GameActivity can process.
|
||||
Uri uri = mainIntent.getParcelableExtra(Intent.EXTRA_STREAM);
|
||||
intent.setData(uri);
|
||||
|
||||
Reference in New Issue
Block a user