Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjaydevtech/iconfinderandroid
IconFinder Api integrated into Android
https://github.com/sanjaydevtech/iconfinderandroid
android hilt iconfinder-api jetpack-compose kotlin retrofit
Last synced: 19 days ago
JSON representation
IconFinder Api integrated into Android
- Host: GitHub
- URL: https://github.com/sanjaydevtech/iconfinderandroid
- Owner: SanjayDevTech
- Created: 2022-08-05T16:48:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-05T16:51:09.000Z (over 2 years ago)
- Last Synced: 2024-11-25T23:34:02.636Z (3 months ago)
- Topics: android, hilt, iconfinder-api, jetpack-compose, kotlin, retrofit
- Language: Kotlin
- Homepage:
- Size: 500 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Icon Finder Android App
[IconFinder](https://www.iconfinder.com/)
[IconFinder docs](https://developer.iconfinder.com/reference/overview-1)
## Tech
- Jetpack Compose
- Hilt
- Retrofit## Setup
- Get an api key from IconFinder
- Create a `secrets.properties` file in the root of the project
- Paste the API key as `API_KEY=`
- Add the below function in `app/build.gradle` file
```groovy
static def getApiKey(){
def props = new Properties()
try {
props.load(new FileInputStream(new File('secrets.properties')))
return props['API_KEY']
} catch(ignored) {
return ""
}
}
```
- Add the API Key in build configuration
```groovy
android {
//...
buildTypes {
debug {
// for debug
buildConfigField "String", "API_KEY", "\"${getApiKey()}\""
}
release {
// for release
buildConfigField "String", "API_KEY", "\"${getApiKey()}\""
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
```
- Sync, Build & run!!! :)