Skip to content

Commit

Permalink
[ScoppedStorage] Do not support for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMercandalli committed May 21, 2019
1 parent 5e5f3cd commit b844b54
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<application
android:name=".main.MainApplication"
android:allowBackup="false"
android:allowExternalStorageSandbox="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.30'
ext.kotlin_version = '1.3.31'
ext.kotlin_coroutines_version = '1.1.1'
ext.okhttp_version = '3.12.1' // Above 3.12.1 require to support API<21. Bump carefully
repositories {
Expand All @@ -10,7 +10,7 @@ buildscript {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0-alpha12'
classpath 'com.android.tools.build:gradle:3.5.0-beta01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.2.0'

Expand All @@ -21,7 +21,7 @@ buildscript {
// Fabric
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.28.1'
classpath 'io.fabric.tools:gradle:1.29.0'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ class FileScopedStorageManagerImpl(
) : FileScopedStorageManager {

override fun isScopedStorage(): Boolean {
return false
/*
if (checkStoragePermission()) {
return false
}
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q ||
BuildCompat.isAtLeastQ()
*/
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit b844b54

Please sign in to comment.