Skip to content

Commit

Permalink
Fix android store path
Browse files Browse the repository at this point in the history
Save to Pictures/
  • Loading branch information
qiuxiang committed Jan 20, 2021
1 parent 5170bcb commit 447bf2f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 28
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
2 changes: 1 addition & 1 deletion android/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-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ImageGallerySaverPlugin(private val registrar: Registrar): MethodCallHandl
}

private fun generateFile(extension: String = "", name: String? = null): File {
val storePath = Environment.getExternalStorageDirectory().absolutePath + File.separator + getApplicationName()
val storePath = Environment.getExternalStorageDirectory().absolutePath + File.separator + Environment.DIRECTORY_PICTURES + File.separator + getApplicationName()
val appDir = File(storePath)
if (!appDir.exists()) {
appDir.mkdir()
Expand Down

0 comments on commit 447bf2f

Please sign in to comment.