mirror of
https://github.com/love2d/love-android.git
synced 2026-08-13 17:11:01 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 55feb38fa1 | |||
| 6811eca7d2 | |||
| d1f74df686 | |||
| c3ed3b454b | |||
| 8a3d635cdb | |||
| a81931be2c | |||
| 7a0068535b | |||
| 034a6d6361 |
@@ -43,3 +43,8 @@ jobs:
|
||||
with:
|
||||
name: love-android-embed.aab
|
||||
path: app/build/outputs/bundle/embedNoRecordRelease/app-embed-noRecord-release.aab
|
||||
- name: Artifact (Debug symbols)
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: love-android-unstripped-debugsyms
|
||||
path: love/build/intermediates/library_jni
|
||||
|
||||
+2
-2
@@ -8,8 +8,8 @@ app.name_byte_array=76,195,150,86,69,32,102,111,114,32,65,110,100,114,111,105,10
|
||||
|
||||
app.application_id=org.love2d.android
|
||||
app.orientation=landscape
|
||||
app.version_code=31
|
||||
app.version_name=11.5
|
||||
app.version_code=32
|
||||
app.version_name=11.5a
|
||||
|
||||
# No need to modify anything past this line!
|
||||
android.enableJetifier=false
|
||||
|
||||
@@ -114,10 +114,12 @@ public class GameActivity extends SDLActivity {
|
||||
gamePath = "";
|
||||
storagePermissionUnnecessary = false;
|
||||
embed = getResources().getBoolean(R.bool.embed);
|
||||
needToCopyGameInArchive = embed;
|
||||
|
||||
if (!embed) {
|
||||
handleIntent(getIntent());
|
||||
setIntent(null);
|
||||
Intent intent = getIntent();
|
||||
handleIntent(intent);
|
||||
intent.setData(null);
|
||||
}
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -171,6 +173,9 @@ public class GameActivity extends SDLActivity {
|
||||
filename = pathSegments[pathSegments.length - 1];
|
||||
}
|
||||
|
||||
// Sanitize filename to prevent PhysFS complaining later.
|
||||
filename = filename.replaceAll("[^a-zA-Z0-9_\\\\-\\\\.]", "_");
|
||||
|
||||
String destination_file = this.getCacheDir().getPath() + "/" + filename;
|
||||
InputStream data = getContentResolver().openInputStream(game);
|
||||
|
||||
@@ -200,11 +205,6 @@ public class GameActivity extends SDLActivity {
|
||||
alert_dialog.setCancelable(false);
|
||||
alert_dialog.create().show();
|
||||
}
|
||||
} else {
|
||||
// No game specified via the intent data or embed build is used.
|
||||
// Load game archive only when needed.
|
||||
needToCopyGameInArchive = embed;
|
||||
gamePath = "";
|
||||
}
|
||||
|
||||
Log.d("GameActivity", "new gamePath: " + gamePath);
|
||||
|
||||
@@ -48,8 +48,10 @@ public class SelectorActivity extends AppCompatActivity {
|
||||
new ActivityResultContracts.OpenDocument(),
|
||||
(Uri result) -> {
|
||||
if (result != null) {
|
||||
|
||||
Intent intent = new Intent(SelectorActivity.this, GameActivity.class);
|
||||
intent.setData(result);
|
||||
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user