Skip to content

Commit

Permalink
target sdk 30 and adapt code, so we can deploy to play store
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-a committed Jan 5, 2022
1 parent bea76ca commit d193b28
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sudoq-app/sudoqapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ allprojects {
}

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
applicationId "de.sudoq"
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 30
resConfigs "en", "de", "fr"
testApplicationId "de.sudoq.test"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class SplashActivity : SudoqCompatActivity() {
try {
currentVersionName = this.packageManager.getPackageInfo(this.packageName, 0).versionName
} catch (e: PackageManager.NameNotFoundException) {
Log.v(LOG_TAG, e.message)
e.message?.let { Log.v(LOG_TAG, it) }
}

/* is this a new version? */
Expand Down Expand Up @@ -312,7 +312,7 @@ class SplashActivity : SudoqCompatActivity() {
try {
files = assets.list(relPath)
} catch (e: IOException) {
Log.e(LOG_TAG, e.message)
e.message?.let { Log.e(LOG_TAG, it) }
}
return files
}
Expand All @@ -336,9 +336,12 @@ class SplashActivity : SudoqCompatActivity() {
`in`.close()
out.flush()
out.close()
} catch (e: Exception) {
Log.e(LOG_TAG, e.message)
Log.e(LOG_TAG, "there seems to be an exception")
} catch (e: IOException) {
e.message?.let { Log.e(LOG_TAG, it) }
Log.e(LOG_TAG, "there seems to be an io exception")
} catch (e: FileNotFoundException) {
e.message?.let { Log.e(LOG_TAG, it) }
Log.e(LOG_TAG, "there seems to be a file not found exception")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,12 @@ class SudokuLoadingActivity : SudoqListActivity(), OnItemClickListener, OnItemLo
`in`.close()
out.flush()
out.close()
} catch (e: Exception) {
Log.e(LOG_TAG, e.message)
Log.e(LOG_TAG, "there seems to be an exception")
} catch (e: IOException) {
e.message?.let { Log.e(LOG_TAG, it) }
Log.e(LOG_TAG, "there seems to be an io exception")
} catch (e: FileNotFoundException) {
e.message?.let { Log.e(LOG_TAG, it) }
Log.e(LOG_TAG, "there seems to be a file not found exception")
}
Log.v("file-share", "tmpfile: " + tmpFile.absolutePath)
Log.v("file-share", "gamefile is null? " + (gameFile == null))
Expand Down

0 comments on commit d193b28

Please sign in to comment.