This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 712
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 #30 from ILIYANGERMANOV/develop
Milestone #1 Go Open Source!
- Loading branch information
Showing
22 changed files
with
495 additions
and
94 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 was deleted.
Oops, something went wrong.
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
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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/ivy/wallet/network/request/github/OpenIssueRequest.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,6 @@ | ||
package com.ivy.wallet.network.request.github | ||
|
||
data class OpenIssueRequest( | ||
val title: String, | ||
val body: String, | ||
) |
5 changes: 5 additions & 0 deletions
5
app/src/main/java/com/ivy/wallet/network/request/github/OpenIssueResponse.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,5 @@ | ||
package com.ivy.wallet.network.request.github | ||
|
||
data class OpenIssueResponse( | ||
val url: String | ||
) |
27 changes: 27 additions & 0 deletions
27
app/src/main/java/com/ivy/wallet/network/service/GithubService.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,27 @@ | ||
package com.ivy.wallet.network.service | ||
|
||
import com.ivy.wallet.network.request.github.OpenIssueRequest | ||
import com.ivy.wallet.network.request.github.OpenIssueResponse | ||
import retrofit2.http.Body | ||
import retrofit2.http.Header | ||
import retrofit2.http.POST | ||
|
||
interface GithubService { | ||
companion object { | ||
const val BASE_URL = "https://api.github.com" | ||
const val OPEN_ISSUE_URL = "$BASE_URL/repos/ILIYANGERMANOV/ivy-wallet/issues" | ||
|
||
const val GITHUB_SERVICE_ACC_USERNAME = "ivywallet" | ||
|
||
//Split Github Access token in two parts so Github doesn't delete it | ||
//because "Personal access token was found in commit." | ||
const val GITHUB_SERVICE_ACC_ACCESS_TOKEN_PART_1 = "ghp_MuvrbtIH897" | ||
const val GITHUB_SERVICE_ACC_ACCESS_TOKEN_PART_2 = "JASL6i8mBvXJ3aM7DLk4U9Gwq" | ||
} | ||
|
||
@POST(OPEN_ISSUE_URL) | ||
suspend fun openIssue( | ||
@Header("Accept") accept: String = "application/vnd.github.v3+json", | ||
@Body request: OpenIssueRequest | ||
): OpenIssueResponse | ||
} |
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.