#2310 Target Android 29 before November - increase targetSDK - request legacy storage

This commit is contained in:
Sean Mac Gillicuddy 2020-10-09 11:00:36 +01:00
parent cb8d702aab
commit 88de7c4350
4 changed files with 6 additions and 6 deletions

View File

@ -75,7 +75,7 @@ class ZimHostFragment : BaseFragment(), ZimHostCallbacks, ZimHostContract.View {
private lateinit var bookDelegate: BookOnDiskDelegate.BookDelegate
private var hotspotService: HotspotService? = null
private var ip: String? = null
private var serviceConnection: ServiceConnection? = null
private lateinit var serviceConnection: ServiceConnection
private var progressDialog: ProgressDialog? = null
private val selectedBooksPath: ArrayList<String>

View File

@ -19,8 +19,8 @@
import org.gradle.api.JavaVersion
object Config {
const val compileSdk = 28
const val compileSdk = 29
const val minSdk = 21
const val targetSdk = 28
const val targetSdk = 29
val javaVersion = JavaVersion.VERSION_1_8
}

View File

@ -18,12 +18,12 @@
android:extractNativeLibs="false"
android:fullBackupContent="@xml/backup_rules"
android:hardwareAccelerated="true"
android:label="@string/app_name"
android:resizeableActivity="true"
android:supportsRtl="true"
android:theme="@style/KiwixTheme"
android:usesCleartextTraffic="true"
tools:targetApi="n">
android:requestLegacyExternalStorage="true"
tools:targetApi="q">
<!-- Version < 3.0. DeX Mode and Screen Mirroring support -->
<meta-data

View File

@ -22,7 +22,7 @@ import java.io.BufferedReader
import java.io.IOException
class FileReader {
fun readFile(filePath: String?, context: Context): String = try {
fun readFile(filePath: String, context: Context): String = try {
context.assets.open(filePath)
.bufferedReader()
.use(BufferedReader::readText)