-
Notifications
You must be signed in to change notification settings - Fork 49
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 #499 from vimeo/release-2-prep
Release 2.0.0 Preparation
- Loading branch information
Showing
206 changed files
with
1,749 additions
and
3,326 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
To [contribute](https://guides.github.com/activities/contributing-to-open-source/) to this project, | ||
To [contribute](https://guides.github.com/activities/contributing-to-open-source/) to this project: | ||
|
||
1. Fork the repo | ||
2. Branch off of the default branch | ||
3. Pull request back to the default branch | ||
4. Lettuce know if you have questions along the way | ||
1. Fork the repo. | ||
2. Branch off of the default branch and make your changes. | ||
3. Validate changes by running `gradle test` and ensure that there are no lint warnings by running `gradle detekt`. | ||
4. Run `gradle detektFormat` to make sure the code is properly formatted. | ||
5. Pull request back to the default branch, we'll review as soon as we can. | ||
6. Let us know if you have questions along the way. |
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,11 +1,11 @@ | ||
#### Issue Summary | ||
# Summary | ||
A brief but thorough description of the issue. | ||
|
||
#### Reproduction Steps | ||
## Reproduction Steps | ||
Detailed steps to reproduce the issue. | ||
|
||
#### Expected Behavior | ||
## Expected Behavior | ||
What do you expect to happen as a result of the reproduction steps? | ||
|
||
#### Actual Behavior | ||
## Actual Behavior | ||
What currently happens as a result of the reproduction steps? |
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,9 +1,8 @@ | ||
#### Issue | ||
(If applicable) | ||
- https://github.com/vimeo//vimeo-networking-java/issues/NUMBER | ||
# Summary | ||
A summary of the changes. If applicable, include a link to the issue that this closes. | ||
|
||
#### Summary | ||
## Description | ||
A brief but thorough description of the changes. | ||
|
||
#### How to Test | ||
Detailed list of what to test and how to test it. Include all edge cases. | ||
## How to Test | ||
Detailed list of what to test and how to test it. |
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 @@ | ||
Change Log | ||
========== | ||
|
||
Version 2.0.0 *(2021-07-15)* | ||
---------------------------- | ||
- Initial release! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ object ApiConstants { | |
} | ||
|
||
/** | ||
* Parameters | ||
* Parameters. | ||
*/ | ||
object Parameters { | ||
// Common parameters | ||
|
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 |
---|---|---|
|
@@ -121,5 +121,4 @@ sealed class VimeoResponse<out T>(open val httpStatusCode: Int) { | |
|
||
private const val NA = "N/A" | ||
} | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
api-core/src/main/java/com/vimeo/networking2/config/AuthenticationMethod.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,32 @@ | ||
package com.vimeo.networking2.config | ||
|
||
import com.vimeo.networking2.Scopes | ||
import okhttp3.Credentials | ||
|
||
/** | ||
* The authentication method that will be used to access the API. | ||
* | ||
* @param basicAuthHeader The authentication header that will be used when there is no available logged in account. | ||
*/ | ||
sealed class AuthenticationMethod(val basicAuthHeader: String) { | ||
|
||
/** | ||
* A fixed access token that will be used to access the Vimeo API and disallows auth requests. | ||
* | ||
* @param accessToken The access token that will be used. | ||
*/ | ||
class AccessToken(accessToken: String) : AuthenticationMethod("Bearer $accessToken") | ||
|
||
/** | ||
* The client credentials, including the identifier and secret, that will be used to authenticate with the API. | ||
* | ||
* @param clientId The Vimeo API client ID. Should be obtained from [https://developer.vimeo.com/apps]. | ||
* @param clientSecret The Vimeo API client secret. Should be obtained from [https://developer.vimeo.com/apps]. | ||
* @param scopes The permission scopes requested by the client. | ||
*/ | ||
class ClientCredentials( | ||
val clientId: String, | ||
clientSecret: String, | ||
val scopes: Scopes | ||
) : AuthenticationMethod(Credentials.basic(clientId, clientSecret)) | ||
} |
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 |
---|---|---|
|
@@ -49,5 +49,4 @@ class RetrofitServicesCache(private val retrofit: Retrofit) { | |
fun clear() { | ||
cache.clear() | ||
} | ||
|
||
} |
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
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.