Submission untuk kelas Belajar Fundamental Aplikasi Android di Dicoding. Bahasa yang digunakan adalah Kotlin. Submission ini adalah sebuah aplikasi yang bertemakan GitHub User.
CAUTION : Repository ini dibuat sebagai bahan refrensi untuk Kelas Dicoding Belajar Fundamental Aplikasi Android agar dapat membantu teman-teman dalam menyelesaikan submission yang sedang dikerjakan. Ingat untuk tidak mengcopy-paste saja tanpa memahami skema programmingnya.
You need to update GitHub token in Constants class at com.gnacoding.submissionbfaa.utils
object Constants {
const val GITHUB_TOKEN = "put_your_github_token_here"
...
}
Or you can secure your token, you can put in local.properties then rebuild the project. Example:
GITHUB_TOKEN = ghp_123456789
then add this to build.gradle(app) to access your token from local.properties:
android {
...
defaultConfig {
...
Properties properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
buildConfigField "String", "GITHUB_TOKEN", "\"${properties.getProperty('GITHUB_TOKEN')}\""
}
...
}
Don't forget to sync the gradle and rebuild the project. Last, you can access it in Constants.kt
object Constants {
const val GITHUB_TOKEN = BuildConfig.GITHUB_TOKEN
...
}