-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from GuoXiCheng/dev-c
update custom config
- Loading branch information
Showing
12 changed files
with
186 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
app/src/main/java/com/android/skip/data/network/api/MyApiService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
package com.android.skip.data.network.api | ||
|
||
import retrofit2.Call | ||
import retrofit2.Response | ||
import retrofit2.http.GET | ||
import retrofit2.http.Url | ||
|
||
interface MyApiService { | ||
@GET("/skip_config_v3.yaml") | ||
fun getSkipConfigV3(): Call<String> | ||
|
||
@GET | ||
suspend fun getConfigFromUrl(@Url url: String): Response<String> | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/android/skip/dataclass/ConfigPostSchema.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.android.skip.dataclass | ||
|
||
enum class ConfigState { | ||
SUCCESS, PENDING, FAIL | ||
} | ||
|
||
data class ConfigPostSchema( | ||
val status: ConfigState, | ||
val value: String, | ||
val configReadSchemaList: List<ConfigReadSchema>? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.