mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
#2310 Target Android 29 before November - increase targetSDK - request legacy storage
This commit is contained in:
parent
cb8d702aab
commit
88de7c4350
@ -75,7 +75,7 @@ class ZimHostFragment : BaseFragment(), ZimHostCallbacks, ZimHostContract.View {
|
|||||||
private lateinit var bookDelegate: BookOnDiskDelegate.BookDelegate
|
private lateinit var bookDelegate: BookOnDiskDelegate.BookDelegate
|
||||||
private var hotspotService: HotspotService? = null
|
private var hotspotService: HotspotService? = null
|
||||||
private var ip: String? = null
|
private var ip: String? = null
|
||||||
private var serviceConnection: ServiceConnection? = null
|
private lateinit var serviceConnection: ServiceConnection
|
||||||
private var progressDialog: ProgressDialog? = null
|
private var progressDialog: ProgressDialog? = null
|
||||||
|
|
||||||
private val selectedBooksPath: ArrayList<String>
|
private val selectedBooksPath: ArrayList<String>
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
import org.gradle.api.JavaVersion
|
import org.gradle.api.JavaVersion
|
||||||
|
|
||||||
object Config {
|
object Config {
|
||||||
const val compileSdk = 28
|
const val compileSdk = 29
|
||||||
const val minSdk = 21
|
const val minSdk = 21
|
||||||
const val targetSdk = 28
|
const val targetSdk = 29
|
||||||
val javaVersion = JavaVersion.VERSION_1_8
|
val javaVersion = JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
@ -18,12 +18,12 @@
|
|||||||
android:extractNativeLibs="false"
|
android:extractNativeLibs="false"
|
||||||
android:fullBackupContent="@xml/backup_rules"
|
android:fullBackupContent="@xml/backup_rules"
|
||||||
android:hardwareAccelerated="true"
|
android:hardwareAccelerated="true"
|
||||||
android:label="@string/app_name"
|
|
||||||
android:resizeableActivity="true"
|
android:resizeableActivity="true"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/KiwixTheme"
|
android:theme="@style/KiwixTheme"
|
||||||
android:usesCleartextTraffic="true"
|
android:usesCleartextTraffic="true"
|
||||||
tools:targetApi="n">
|
android:requestLegacyExternalStorage="true"
|
||||||
|
tools:targetApi="q">
|
||||||
|
|
||||||
<!-- Version < 3.0. DeX Mode and Screen Mirroring support -->
|
<!-- Version < 3.0. DeX Mode and Screen Mirroring support -->
|
||||||
<meta-data
|
<meta-data
|
||||||
|
@ -22,7 +22,7 @@ import java.io.BufferedReader
|
|||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
|
|
||||||
class FileReader {
|
class FileReader {
|
||||||
fun readFile(filePath: String?, context: Context): String = try {
|
fun readFile(filePath: String, context: Context): String = try {
|
||||||
context.assets.open(filePath)
|
context.assets.open(filePath)
|
||||||
.bufferedReader()
|
.bufferedReader()
|
||||||
.use(BufferedReader::readText)
|
.use(BufferedReader::readText)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user