Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ElishaAz committed Aug 27, 2023
1 parent 21ac7f6 commit c1f161c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
16 changes: 8 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.google.protobuf'
apply plugin: 'org.jetbrains.kotlin.android'

android {
compileSdkVersion 33
compileSdk 34
defaultConfig {
applicationId "com.elishaazaria.sayboard"
minSdkVersion 23
Expand Down Expand Up @@ -58,16 +58,16 @@ protobuf {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'net.java.dev.jna:jna:5.9.0@aar'
implementation group: 'com.alphacephei', name: 'vosk-android', version: '0.3.32'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation 'androidx.navigation:navigation-fragment:2.5.2'
implementation 'androidx.navigation:navigation-ui:2.5.2'
implementation 'androidx.preference:preference:1.2.0'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
implementation 'androidx.navigation:navigation-fragment:2.7.1'
implementation 'androidx.navigation:navigation-ui:2.7.1'
implementation 'androidx.preference:preference:1.2.1'

implementation 'org.greenrobot:eventbus:3.3.1'
implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.0.1'
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/com/elishaazaria/sayboard/ime/IME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class IME : InputMethodService(), RecognitionListener, LifecycleOwner {
initY = event.y
swiping = false
}

MotionEvent.ACTION_MOVE -> {
if (x < -threshold) {
swiping = true
Expand All @@ -159,6 +160,7 @@ class IME : InputMethodService(), RecognitionListener, LifecycleOwner {
actionManager.selectCharsBack(amount)
}
}

MotionEvent.ACTION_UP -> if (swiping) {
actionManager.deleteSelection()
} else {
Expand Down Expand Up @@ -286,10 +288,6 @@ class IME : InputMethodService(), RecognitionListener, LifecycleOwner {
viewManager.stateLD.postValue(ViewManager.Companion.STATE_PAUSED)
}

override fun getLifecycle(): Lifecycle {
return lifecycleRegistry
}

companion object {
private val editorActions = intArrayOf(
EditorInfo.IME_ACTION_UNSPECIFIED,
Expand All @@ -302,4 +300,7 @@ class IME : InputMethodService(), RecognitionListener, LifecycleOwner {
EditorInfo.IME_ACTION_PREVIOUS
)
}

override val lifecycle: Lifecycle
get() = lifecycleRegistry
}
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id "com.google.protobuf" version "0.9.3" apply false
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
id "com.google.protobuf" version "0.9.4" apply false
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit c1f161c

Please sign in to comment.