mirror of
https://github.com/lizongying/my-tv.git
synced 2026-10-26 14:16:29 +08:00
fix gson crash
This commit is contained in:
+3
-1
@@ -89,7 +89,7 @@ static def VersionName() {
|
|||||||
process.waitFor()
|
process.waitFor()
|
||||||
def versionName = process.text.trim() - "v"
|
def versionName = process.text.trim() - "v"
|
||||||
if (versionName.isEmpty()) {
|
if (versionName.isEmpty()) {
|
||||||
versionName = "1.0.0"
|
versionName = "1.0.0"
|
||||||
}
|
}
|
||||||
return versionName
|
return versionName
|
||||||
} catch (ignored) {
|
} catch (ignored) {
|
||||||
@@ -114,6 +114,8 @@ dependencies {
|
|||||||
def retrofit2_version = "2.6.4"
|
def retrofit2_version = "2.6.4"
|
||||||
|
|
||||||
implementation 'com.google.protobuf:protobuf-kotlin:3.25.1'
|
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-gson:$retrofit2_version"
|
||||||
implementation "com.squareup.retrofit2:converter-protobuf:$retrofit2_version"
|
implementation "com.squareup.retrofit2:converter-protobuf:$retrofit2_version"
|
||||||
implementation "com.squareup.retrofit2:retrofit:$retrofit2_version"
|
implementation "com.squareup.retrofit2:retrofit:$retrofit2_version"
|
||||||
|
|||||||
Reference in New Issue
Block a user