Skip to content

Commit

Permalink
v8.3 (#79)
Browse files Browse the repository at this point in the history
* Fix initialization process of openai

* Upgrade AGP

* Upgrade version
  • Loading branch information
aqua-ix authored Jun 16, 2024
1 parent ce16683 commit 05436c5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "comviewaquahp.google.sites.youbimiku"
minSdk = 21
targetSdk = 34
versionCode = 32
versionName = "8.2"
versionCode = 33
versionName = "8.3"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
ksp {
arg("room.schemaLocation", "$projectDir/schemas")
Expand Down
9 changes: 7 additions & 2 deletions app/src/main/java/com/aqua_ix/youbimiku/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class MainActivity : AppCompatActivity(), View.OnClickListener, DialogListener {
initDatabase()
showInAppReviewIfNeeded()

setupOpenAI()
setupChat()
setupAdNetwork()
}
Expand All @@ -93,7 +92,13 @@ class MainActivity : AppCompatActivity(), View.OnClickListener, DialogListener {
}
remoteConfig.setConfigSettingsAsync(configSettings)
remoteConfig.setDefaultsAsync(R.xml.remote_config_defaults)
remoteConfig.fetchAndActivate()
remoteConfig.fetchAndActivate().addOnCompleteListener { task ->
if (task.isSuccessful) {
setupOpenAI()
} else {
Log.e(TAG, "Failed to fetch remote config.")
}
}
}

private fun initDatabase() {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
maven(url = "https://jitpack.io")
}
dependencies {
classpath("com.android.tools.build:gradle:8.3.0")
classpath("com.android.tools.build:gradle:8.4.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
classpath("com.google.gms:google-services:4.4.1")
classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1")
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip

0 comments on commit 05436c5

Please sign in to comment.