Skip to content

Commit

Permalink
chore: Fixed minor gradle and kotlin issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Oct 8, 2023
1 parent 71d97cc commit 419c424
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ plugins {

android {
namespace "com.termux.styling"
compileSdkVersion 34

defaultConfig {
applicationId "com.termux.styling"
minSdkVersion 21
targetSdkVersion 28
compileSdk 34
versionCode 30
versionName "0.30"
}
Expand Down Expand Up @@ -51,8 +51,8 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

task versionName {
doLast {
print android.defaultConfig.versionName
}
tasks.register("versionName") {
doLast {
print android.defaultConfig.versionName
}
}
7 changes: 3 additions & 4 deletions app/src/main/java/com/termux/styling/TermuxStyleActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
import java.nio.charset.StandardCharsets
import java.util.*
Expand Down Expand Up @@ -178,9 +177,9 @@ class TermuxStyleActivity : Activity() {
atomicFile.finishWrite(out)

// Note: Must match constant in Term#onCreate():
val ACTION_RELOAD = "com.termux.app.reload_style"
val executeIntent = Intent(ACTION_RELOAD)
executeIntent.putExtra(ACTION_RELOAD, if (colors) "colors" else "font")
val actionReload = "com.termux.app.reload_style"
val executeIntent = Intent(actionReload)
executeIntent.putExtra(actionReload, if (colors) "colors" else "font")
sendBroadcast(executeIntent)
} catch (e: Exception) {
Log.w("termux", "Failed to write $outputFile", e)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {

repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -15,6 +15,6 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

0 comments on commit 419c424

Please sign in to comment.