Skip to content

Commit

Permalink
fix gson crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed May 26, 2024
1 parent 70da1d8 commit 51d9c4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static def VersionName() {
process.waitFor()
def versionName = process.text.trim() - "v"
if (versionName.isEmpty()) {
versionName = "1.0.0"
versionName = "1.0.0"
}
return versionName
} catch (ignored) {
Expand All @@ -114,6 +114,8 @@ dependencies {
def retrofit2_version = "2.6.4"

implementation 'com.google.protobuf:protobuf-kotlin:3.25.1'
// Gson 2.10.1 and older: API level 19
implementation("com.google.code.gson:gson:2.10.1")
implementation "com.squareup.retrofit2:converter-gson:$retrofit2_version"
implementation "com.squareup.retrofit2:converter-protobuf:$retrofit2_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit2_version"
Expand Down

0 comments on commit 51d9c4c

Please sign in to comment.