Skip to content

FunkyMuse/MediaPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

202cf32 · May 24, 2020

History

96 Commits
May 24, 2020
May 24, 2020
May 19, 2020
May 18, 2020
May 8, 2020
May 24, 2020
May 24, 2020
May 8, 2020
May 15, 2020
May 15, 2020
May 14, 2020
May 11, 2020
May 8, 2020
May 8, 2020
May 12, 2020

Repository files navigation

MediaPicker

Kotlin Android library to pick images, videos and audios

Kotlin Platform

Minimum Android API 21

Compiled Android API 29

Usage

  1. Add JitPack to your project build.gradle
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
}
  1. Add the dependency in the application build.gradle
dependencies {
    def pickerVersion = "0.0.1" //look-up the latest one on jitpack
    
    //the core package is a must then you include the one you need
    implementation "com.github.CraZyLegenD.MediaPicker:core:$pickerVersion"
    
    //images
    implementation "com.github.CraZyLegenD.MediaPicker:imagepicker:$pickerVersion"
    //audios
    implementation "com.github.CraZyLegenD.MediaPicker:audiopicker:$pickerVersion"
    //videos
    implementation "com.github.CraZyLegenD.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. Inside gradle.properties (optional)
org.gradle.parallel=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