Skip to content

[WIP]An MVVM architectured android app for delivering artworks everyday. Calls open API from DeviantArt and uses oauth2 authentication process to login.

License

Notifications You must be signed in to change notification settings

rikucherry1993/artwork-espresso

Repository files navigation

--- Draft ---

Prototype

Installation

1. Get client ID & Secret

Client ID & Secret of DeviantArt APIs are required for building this project.
You can either create a new pair following the steps bellow:

  • Sign up to DeviantArt
  • Go to Developers and register an new application
    • In Application Settings, choose Authorization Code as OAuth2 Grant Type.
    • In OAuth2 Redirect URI Whitelist, add ``.
  • You will able to see your own client Id & Secret at Developers

Or, use the following credentials for testing.

  • API secrets
Client ID : XXXXX
Client Secret: XXXXXXXXXXXX
  • User credentials.
User Name:
Password: 

2. Hide API secrets in a C/C++ native file

Using hidden-secrets-gradle-plugin.

  • Execute gradlew commands at the top level of this package (Java Runtime is required):
./gradlew hideSecret -Pkey={yourClientIdToObfuscate} -PkeyName=ClientId -Ppackage=com.rikucherry.artworkespresso
./gradlew hideSecret -Pkey={yourClientSecretToObfuscate} -PkeyName=ClientSecret -Ppackage=com.rikucherry.artworkespresso
  • Let the generated [Secrets] class implement ISecrets for test purpose
class Secrets : ISecrets {
    //......
    external override fun getClientId(packageName: String): String
    external override fun getClientSecret(packageName: String): String
}

About

[WIP]An MVVM architectured android app for delivering artworks everyday. Calls open API from DeviantArt and uses oauth2 authentication process to login.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages