readium / SDKLauncher-Android

Launcher app for Readium SDK on Android
BSD 3-Clause "New" or "Revised" License
77 stars 65 forks source link

Android / Gradle updates (current working build) #147

Open danielweck opened 5 years ago

danielweck commented 5 years ago

Upgraded API 26 to 28, build tools to 28.0.3, Gradle 5.4.1. NDK is version 16.1.4479499.

Pre-requisites (must read comments, notably the "Build output" section): https://github.com/readium/readium-sdk/pull/317 https://github.com/readium/readium-lcp-client/pull/49

platform/android/local.properties

(not checked into Git, must be created by developers)

sdk.dir=/PATH_TO/Android/sdk
ndk.dir=/PATH_TO/Android/sdk/ndk-bundle-old
readium.ndk_clang=false
readium.ndk_skipX86=false
readium.ndk_skipARM=false
readium.ndk_experimental=false

readium.sdk_lib_dir=/PATH_TO/SDKLauncher-Android/readium-sdk/Platform/Android/epub3/libs/
readium.sdk_include_dir=/PATH_TO/SDKLauncher-Android/readium-sdk/Platform/Android/epub3/include/

readium.sign_key_password=app/ReadiumAndroidAPKSign.jks
readium.sign_store_password=app/ReadiumAndroidAPKSign.jks
vsbojkovski commented 5 years ago

Question moved here: https://github.com/readium/SDKLauncher-Android/issues/148


We have implemented readium.js in our own application in 2016.

Now, on Android 8.0 if the epub file has more than 100 xhtml files (chapters), app freezes (not crashes, but freezes). It looks like the webview or the app hasn’t еnough memory. (I am testing on Samsung s8 which has memory).

On previous version on android everything is ok (4.4,5.0,5.1,6.0 etc.)

Do you have any idea about the problem?

danielweck commented 5 years ago

Hello @vsbojkovski could you please post an issue here: https://github.com/readium/SDKLauncher-Android/issues/new Thank you!

danielweck commented 5 years ago

TODO: the references to the bintray repository should probably be updated in order to reflect the latest available versions, for example:

https://bintray.com/android/android-tools/com.android.tools.build.gradle/view (2.3.3)

vs.

https://mvnrepository.com/artifact/com.android.tools.build/gradle?repo=google (3.x)

...and:

https://bintray.com/android/android-tools/com.android.tools.build.gradle-experimental/view (0.9.3)

vs.

https://mvnrepository.com/artifact/com.android.tools.build/gradle-experimental?repo=google (0.11)

Also see: https://developer.android.com/studio/releases/gradle-plugin