Skip to content

FunkyMuse/MediaPicker

Repository files navigation

MediaPicker

Kotlin Android library to pick images, videos and audios

Usage

  1. Add JitPack to your project build.gradle
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
}

or

If your Android studio version is Arctic Fox and above then add it in your settings.gradle:

dependencyResolutionManagement {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
  1. Add the dependency in the application build.gradle
dependencies {
    def pickerVersion = "1.0.0" //look-up the latest one on jitpack
    
    //images
    implementation "com.github.FunkyMuse.MediaPicker:imagepicker:$pickerVersion"
    //audios
    implementation "com.github.FunkyMuse.MediaPicker:audiopicker:$pickerVersion"
    //videos
    implementation "com.github.FunkyMuse.MediaPicker:videopicker:$pickerVersion"
  }
  1. To not run into any issues in your application build.gradle add
   compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
    
    viewBinding {
        enabled = true
    }
  1. How to use and screens

Image picker

Video picker

Audio picker

Sample app

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Apache 2.0