Skip to content

Commit

Permalink
Merge pull request #12 from khainhero/patch-3
Browse files Browse the repository at this point in the history
Update sdk 28 to 29 for Android
  • Loading branch information
jonataslaw committed Apr 16, 2020
2 parents 08196ed + d996891 commit 8796511
Show file tree
Hide file tree
Showing 2 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 29

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class VideoCompressPlugin private constructor(private val activity: Activity, pr
val includeAudio = call.argument<Boolean>("includeAudio")
val frameRate = if (call.argument<Int>("frameRate")==null) 30 else call.argument<Int>("frameRate")

val tempDir: String = context.getExternalFilesDir("video_compress").absolutePath
val tempDir: String = this.context.getExternalFilesDir("video_compress")!!.absolutePath
val out = SimpleDateFormat("yyyy-MM-dd hh-mm-ss").format(Date())
val destPath: String = tempDir + File.separator + "VID_" + out + ".mp4"

Expand Down Expand Up @@ -129,4 +129,4 @@ class VideoCompressPlugin private constructor(private val activity: Activity, pr
}
}

}
}

0 comments on commit 8796511

Please sign in to comment.