Skip to content

Commit

Permalink
Revert "disabled deprecated calls"
Browse files Browse the repository at this point in the history
This reverts commit 924a9dc
  • Loading branch information
VaiTon committed Aug 13, 2021
1 parent c06c049 commit 987f711
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -6,7 +6,7 @@ import android.os.Environment
import android.util.Log
import openfoodfacts.github.scrachx.openfood.BuildConfig
import tools.fastlane.screengrab.ScreenshotCallback
#import tools.fastlane.screengrab.file.Chmod
import tools.fastlane.screengrab.file.Chmod
import java.io.BufferedOutputStream
import java.io.File
import java.io.FileOutputStream
Expand All @@ -32,7 +32,7 @@ class FileWritingScreenshotCallback internal constructor(
try {
BufferedOutputStream(FileOutputStream(screenshotFile)).use { fos ->
screenshot.compress(CompressFormat.PNG, 100, fos)
#chmodPlusR(screenshotFile)
Chmod.chmodPlusR(screenshotFile)
}
} finally {
screenshot.recycle()
Expand Down Expand Up @@ -86,7 +86,7 @@ class FileWritingScreenshotCallback internal constructor(
@Throws(IOException::class)
private fun createPathTo(dir: File) {
if (dir.exists() || dir.mkdirs()) {
#Chmod.chmodPlusRWX(dir)
Chmod.chmodPlusRWX(dir)
} else {
throw IOException("Unable to create output dir: ${dir.absolutePath}")
}
Expand Down

0 comments on commit 987f711

Please sign in to comment.