Skip to content

TechMangalam/IconFinderAppAndroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

IconFinderAppAndroid

App to download icons from iconfinder API

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=<api_key>
  • Add the below function in app/build.gradle file
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
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!!! :)

IconFinder

IconFinder docs

Tech

  • Jetpack Compose
  • Hilt
  • Retrofit

About

App to download icons from iconfinder API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages