Commit Graph

103 Commits

Author SHA1 Message Date
antoniou
dad5179e9d ANDROID: Fix warning unchecked conversion
In CustomKeyboardView for mKeysDownCodesSet ArraySet

Also enable the option -Xlint:unchecked (within build.gradle) to show the unchecked conversion warnings on compile
2021-08-05 13:26:31 +03:00
antoniou
250206bd00 ANDROID: Add a checkbox for a revoke SAF permissions button
Themes were updated to version SCUMMVM_THEME_VERSION_STR "SCUMMVM_STX0.8.48"
2021-08-01 16:10:54 +03:00
Cameron Cawley
c1702a0953 ANDROID: Add an on-screen menu button 2021-06-19 14:37:35 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Cameron Cawley
cc328d9cfa ANDROID: Remove README.Android 2021-03-15 18:39:39 +02:00
Cameron Cawley
4e3c35e26b Revert "ANDROID: Set minimal SDK to 21+ (Android 5+). The app crashes at launch on Android 4"
This reverts commit ac666c2306.
2021-01-17 21:50:35 +01:00
antoniou
987becc529 ANDROID: Fix physical mouse behavior and allow multitouch hold and drag
Also added various comments to document behavior.

Minor JE_MULTI event (Fix concerned bad brackets code in the events.cpp for JE_MULTI (multiple fingers held down)
) fix and comments for mouse behavior
Allow onHover to catch the mouse events instead of OnTrackBallEvent()
Also the "system back" button is ignored for the Trackball too because we treat it as mouse in isMouse(e) check
Add multitouch handler class. Handling and early filtering of multitouch events is moved in the new class.
2021-01-10 22:10:29 +02:00
Eugene Sandulenko
ac666c2306 ANDROID: Set minimal SDK to 21+ (Android 5+). The app crashes at launch on Android 4 2021-01-08 19:31:19 +01:00
antoniou
568572e2cc ANDROID: Upgrade gradle to 4.1.1 2020-11-26 14:43:51 +02:00
antoniou
60e7ea79d2 ANDROID: Menu key on virtual keyboard is system menu now
Before it was a Media Top Menu key and did nothing
2020-11-26 14:43:50 +02:00
antoniou
0de952a59c ANDROID: Raise targetsdk to 29 but make use of requestLegacyExternalStorage
Also some fixes for deprecated warnings
2020-11-07 23:38:03 +02:00
antoniou
8fe6aae59e ANDROID: Use SAF for folder and file creation when normal way fails
Should affect only external "secondary" storage (eg. physical SD card)
2020-11-01 19:38:07 +02:00
Matthew Duggan
5135f1f4b9 ALL: Run optipng to reduce png file size 2020-11-01 21:34:03 +09:00
Eugene Sandulenko
2902e3336e DISTS: ANDROID: Sync phone screenshots with the store 2020-10-25 19:39:24 +01:00
antoniou79
64778522ce ANDROID: New screenshots from Xperiam Z5 Compact
With filtering enabled
2020-10-25 20:26:43 +02:00
antoniou79
e3f430df11 DISTS: ANDROID: Update phone screenshots with 2.2.1 ones
These are taken from my Xperia Z5 Compact (7.1.1)

Settings: Filter Graphics Disabled, Keep Aspect Ratio Enabled, Fit to Window Stretch mode
2020-10-25 17:11:44 +02:00
Eugene Sandulenko
f2a845cd6b DISTS: ANDROID: Release of 2.2.1 2020-10-25 15:32:04 +01:00
antoniou
17196e65ac ANDROID: update comment on build.gradle
For Play Store release (Oct 2020)
2020-10-25 13:57:11 +02:00
antoniou
79acea3a18 ANDROID: use gradle's auto-align and set debuggable to false for release build
There were issues with manually aligning apks possibly due to upgrading gradle

The manual zipalign even though running with no fail message, would NOT align the apk properly anymore.
Command to manual verify alignment of an apk is:
Android/Sdk/tools/bin/zipalign -c -v 4 release/ScummVM-release-unsigned.apk
2020-10-18 13:42:44 +03:00
Eugene Sandulenko
468d52cbe0 ANDROID: Info for 2.2.1c (beta) release 2020-10-18 10:00:11 +02:00
antoniou
ff89ca68d6 ANDROID: Update versionCode to accomodate new beta3 (2.2.1) release 2020-10-17 22:49:42 +03:00
antoniou
7551d119e2 ANDROID: Fix crash when connecting or disconnecting physical keyboard
And also add some code to load and use the keyCharacterMap of the source device for the event

It is unclear if getUnicodeChar() already does this (loads the keyCharacterMap of the source device.
If it does, then the extra code is redundant.
2020-10-17 21:40:08 +03:00
antoniou
87a76f4a56 ANDROID: Fix shifted keys and key combos 2020-10-17 19:20:58 +03:00
antoniou
4a9b6d12ac ANDROID: Use gradle 6.7 and plugin 4.1.0
Also remove ndk.dir from local.properties since it is getting deprecated

Gradle will only use the info (ndkVersion) in gradle.build. Possibly ndkPath too, but we probably don't need that, since ndk is within the sdk folder (default location)
2020-10-15 19:06:33 +03:00
antoniou
4d9ed8351b ANDROID: Use a in-app keyboard instead of system
Keyboard was ported over from our SDL port which used https://github.com/pelya/commandergenius/tree/sdl_android/project

Pending optimizations, floatable/draggable implementation and a few bug fixes
We are using a local copy and slightly modified version of KeyboardView and Keyboard (and related resources).
since the android KeyboardView widget will be deprecated in API 29.
The copies are taken from the AOSP, as per the recommendation from Android Developers.
2020-10-15 18:21:52 +03:00
antoniou
7bd9b1ac3d ANDROID: Reduce lint warnings and offer more drawable sizes
Also slightly tweak position and size of keyboard icon
2020-10-13 14:06:07 +03:00
antoniou
18b83107db ANDROID: Revert to targeting API 28 to prevent file access issues
See bug ticket: https://bugs.scummvm.org/ticket/11753

API 29 makes certain file access functions return empty lists due to restricitve policies. We need to come up with an alternative for Android 10 and higher, when we will switch to targeting API 29 (or higher). Google enforces this switch on November 2nd for application updates.
2020-10-04 12:32:31 +03:00
antoniou
7e174a05ef ANDROID: Restore app icon that got wrongly removed 2020-10-03 01:09:59 +03:00
antoniou
319149343f ANDROID: Reduce more Lint warnings
Unused resources, mem leak for event handler, overried View's performClick for accessibility
2020-10-02 19:50:30 +03:00
antoniou
d4aad77b11 ANDROID: Update expected versionCode for 2.3.0 2020-09-30 19:54:23 +03:00
antoniou
4ea7455e09 ANDROID: Splash screen and additional locations to search for config and saves
The splash screen is an addition that was "forced" by the need to allow for permission granted to access external physical storage
2020-09-29 22:10:56 +03:00
antoniou
aa5a490bc7 ANDROID: Reduce Lint warnings 2020-09-28 17:55:04 +03:00
antoniou79
40298ce3a6 ANDROID: Set target SDK to 29
As per the Play Store rules.

From 2 November 2020, app updates must target Android 10 (API level 29) or higher. (https://developer.android.com/distribute/best-practices/develop/target-sdk)
2020-09-28 01:08:09 +03:00
antoniou79
f3e4d3986a ANDROID: DISTS: Upgrade gradle and gradle plugin versions
This repeats the commit change that mduggan did

The original commit was:
fdf84ed93e
Then it got revered by:
280446deb1
We need to manually remove some (android_project) directories in order for the builds to succeed on our buildbot after these changes. The buildbot does this itself once daily.
2020-09-27 23:04:34 +03:00
antoniou
e08ba6ff14 ANDROID: Screenshots from 10 inch tablet for distribution 2020-09-27 17:12:25 +03:00
Eugene Sandulenko
c083069b68 DISTS: ANDROID: Updated beta changelog 2020-09-27 16:10:30 +02:00
Eugene Sandulenko
c58e3a2534 DISTS: Dumped our Android presence 2020-09-27 15:12:21 +02:00
Matthew Duggan
8fd6a1a452 ANDROID: Add more icon variants
This makes the icon render much better on Android 11 and Chromebook devices.  I
think it should also be backwards compatible - although the oldest device I had
to test was Android 7, it works fine there.
2020-09-27 13:14:15 +09:00
Matthew Duggan
280446deb1 Revert "ANDROID: Update gradle versions to make Android Studio happy"
This does need upgrading at some point and it's basically harmless, but I need
to coordinate upgrading gradle on the buildbot to make it work.

This reverts commit fdf84ed93e.
2020-09-26 12:34:29 +09:00
Matthew Duggan
fdf84ed93e ANDROID: Update gradle versions to make Android Studio happy 2020-09-26 12:19:00 +09:00
antoniou
0d7d8fdaa1 ANDROID: Account for possible v2.2.1 in build.gradle 2020-09-24 13:48:16 +03:00
antoniou
c45dfd4a2f ANDROID: Migrate old save files
More testing pending
2020-09-24 01:50:45 +03:00
antoniou
bd95672815 ANDROID: get version info (wip) and use androidx for annotations
Also androidx is replacing the Android Support library so it's best to use this one

According to https://developer.android.com/jetpack/androidx
AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.
AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
2020-09-14 09:32:37 +03:00
antoniou
b9798d8be3 ANDROID: Set new version code(s) for 2.3.0 2020-09-14 09:32:37 +03:00
antoniou79
70fce0d0a4 ANDROID: Comment about new versioCodes 2020-07-22 06:05:24 +03:00
antoniou79
c002873cc4 ANDROID: Request NDK version 21.3.6528147 in build.gradle 2020-07-22 05:44:56 +03:00
Le Philousophe
4367c2d350 ANDROID: Don't target Android API level 29 yet
Android API level 29 introduces scoped storage which is enabled by
default for applications targeting level 29.
This protection prevents us to access external storage.
There is a compatibility flag but it will disappear in Android 11.
To target more recent platforms, we should implement SAF FS backend.
2020-04-07 11:36:02 +03:00
Peter Kohaut
470a1d3586 ANDROID: Switch to Gradle
Updated NDK to r21 (LTS)
Switch target Android to 29 as it is required by Google Play Store
Switch minimum Android to 16 (4.1) as it is the lowest supported version by NDK
Removed MIPS and armeabi as they are no longer supported
Renamed Android build names into official ones
2020-03-27 22:45:25 +01:00
Thanasis Antoniou
3c9741a4c3 ANDROID: Early fix for Android 9+ crash and config/save path issues 2020-01-31 17:23:15 +02:00
Thanasis Antoniou
e7a19d378e ANDROID: Disable support for split screen
Currently the ScummVM app will just exit in split-screen so that's not desireable

Disabled until we implement proper support, if deemed necessary
2019-11-10 17:05:20 +02:00