Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyLegenD committed Dec 2, 2020
2 parents 8324498 + c8bf156 commit c992d6b
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 40 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# MediaPicker
### Kotlin Android library to pick images, videos and audios

[![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)](https://jitpack.io/#CraZyLegenD/MediaPicker) [![Kotlin](https://img.shields.io/badge/Kotlin-1.3.72-blue.svg)](https://kotlinlang.org) [![Platform](https://img.shields.io/badge/Platform-Android-green.svg)](https://developer.android.com/guide/)
[![](https://jitpack.io/v/FunkyMuse/MediaPicker.svg)](https://jitpack.io/#FunkyMuse/MediaPicker) [![Kotlin](https://img.shields.io/badge/Kotlin-1.4.20-blue.svg)](https://kotlinlang.org) [![Platform](https://img.shields.io/badge/Platform-Android-green.svg)](https://developer.android.com/guide/)
![API](https://img.shields.io/badge/Min%20API-21-green)
![API](https://img.shields.io/badge/Compiled%20API-30-green)

Expand All @@ -25,17 +25,17 @@ allprojects {

```gradle
dependencies {
def pickerVersion = "0.0.1" //look-up the latest one on jitpack
def pickerVersion = "1.0.0" //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"
implementation "com.github.FunkyMuse.MediaPicker:core:$pickerVersion"
//images
implementation "com.github.CraZyLegenD.MediaPicker:imagepicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:imagepicker:$pickerVersion"
//audios
implementation "com.github.CraZyLegenD.MediaPicker:audiopicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:audiopicker:$pickerVersion"
//videos
implementation "com.github.CraZyLegenD.MediaPicker:videopicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:videopicker:$pickerVersion"
}
```

Expand Down Expand Up @@ -64,13 +64,13 @@ org.gradle.parallel=true

5. How to use and screens

[Image picker](https://github.com/CraZyLegenD/MediaPicker/tree/master/imagepicker)
[Image picker](https://github.com/FunkyMuse/MediaPicker/tree/master/imagepicker)

[Video picker](https://github.com/CraZyLegenD/MediaPicker/tree/master/videopicker)
[Video picker](https://github.com/FunkyMuse/MediaPicker/tree/master/videopicker)

[Audio picker](https://github.com/CraZyLegenD/MediaPicker/tree/master/audiopicker)
[Audio picker](https://github.com/FunkyMuse/MediaPicker/tree/master/audiopicker)

[Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)
[Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Expand Down
20 changes: 10 additions & 10 deletions audiopicker/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)](https://jitpack.io/#CraZyLegenD/MediaPicker)
Current jitpack version: [![](https://jitpack.io/v/FunkyMuse/MediaPicker.svg)](https://jitpack.io/#FunkyMuse/MediaPicker)

1. You must declare the permission in your manifest
```xml
Expand All @@ -7,16 +7,16 @@ Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)]
2. If you haven't included the dependencies from the previous screen now's a good time
```gradle
dependencies {
def pickerVersion = "0.0.1" //look-up the latest one on jitpack
def pickerVersion = "1.0.0" //look-up the latest one on jitpack
//the core package is a must
implementation "com.github.CraZyLegenD.MediaPicker:core:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:core:$pickerVersion"
//audios
implementation "com.github.CraZyLegenD.MediaPicker:audiopicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:audiopicker:$pickerVersion"
}
```
3. How to use single picker and check out [how to customize single audio picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Single-audio-picker-customization)
3. How to use single picker and check out [how to customize single audio picker](https://github.com/FunkyMuse/MediaPicker/wiki/Single-audio-picker-customization)
```kotlin
//simple usage without customization
SingleAudioPicker.showPicker(this) {
Expand Down Expand Up @@ -49,7 +49,7 @@ dependencies {

```

4. How to use multi picker and check out [how to customize multi audio picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Multi-audio-picker-customization)
4. How to use multi picker and check out [how to customize multi audio picker](https://github.com/FunkyMuse/MediaPicker/wiki/Multi-audio-picker-customization)
```kotlin
//simple usage without customization
MultiAudioPicker.showPicker(this) {
Expand Down Expand Up @@ -108,17 +108,17 @@ setFragmentResultListener(MultiAudioPicker.MULTI_AUDIO_REQUEST_KEY) { _, bundle
}
```
##
If you're still not sure how to use, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)
If you're still not sure how to use, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)

##
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L330)
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L330)

## Screens

Single picker

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/audiopicker/screens/screen_1.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/audiopicker/screens/screen_1.png" width="15%"></img>

Multi picker

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/audiopicker/screens/screen_3.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/audiopicker/screens/screen_3.png" width="15%"></img>
20 changes: 10 additions & 10 deletions imagepicker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)](https://jitpack.io/#CraZyLegenD/MediaPicker)
Current jitpack version: [![](https://jitpack.io/v/FunkyMuse/MediaPicker.svg)](https://jitpack.io/#FunkyMuse/MediaPicker)

1. You must declare the permission in your manifest
```xml
Expand All @@ -9,16 +9,16 @@ Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)]
2. If you haven't included the dependencies from the previous screen now's a good time
```gradle
dependencies {
def pickerVersion = "0.0.1" //look-up the latest one on jitpack
def pickerVersion = "1.0.0" //look-up the latest one on jitpack
//the core package is a must
implementation "com.github.CraZyLegenD.MediaPicker:core:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:core:$pickerVersion"
//images
implementation "com.github.CraZyLegenD.MediaPicker:imagepicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:imagepicker:$pickerVersion"
}
```
3. How to use single picker and check out [how to customize single image picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Single--image-video-picker-customization)
3. How to use single picker and check out [how to customize single image picker](https://github.com/FunkyMuse/MediaPicker/wiki/Single--image-video-picker-customization)
```kotlin
//simple usage without customizations
SingleImagePicker.showPicker(context = this){
Expand Down Expand Up @@ -52,7 +52,7 @@ dependencies {
}, ::loadImage)
```

4. How to use multi picker and check out [how to customize multi image picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Multi-image-video-picker-customization)
4. How to use multi picker and check out [how to customize multi image picker](https://github.com/FunkyMuse/MediaPicker/wiki/Multi-image-video-picker-customization)
```kotlin
//simple usage without customizations
MultiImagePicker.showPicker(this){ doSomethingWithImageList(it) }
Expand Down Expand Up @@ -106,17 +106,17 @@ setFragmentResultListener(MultiImagePicker.MULTI_IMAGE_REQUEST_KEY) { _, bundle
```

##
If you're still not sure how to use, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)
If you're still not sure how to use, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)

##
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L310)
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L310)

## Screens

Single picker

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/imagepicker/screens/screen_1.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/imagepicker/screens/screen_1.png" width="15%"></img>

Multi picker

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/imagepicker/screens/screen_3.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/imagepicker/screens/screen_3.png" width="15%"></img>
20 changes: 10 additions & 10 deletions videopicker/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)](https://jitpack.io/#CraZyLegenD/MediaPicker)
Current jitpack version: [![](https://jitpack.io/v/FunkyMuse/MediaPicker.svg)](https://jitpack.io/#CraZyLegenD/MediaPicker)

1. You must declare the permission in your manifest
```xml
Expand All @@ -8,16 +8,16 @@ Current jitpack version: [![](https://jitpack.io/v/CraZyLegenD/MediaPicker.svg)]
2. If you haven't included the dependencies from the previous screen now's a good time
```gradle
dependencies {
def pickerVersion = "0.0.1" //look-up the latest one on jitpack
def pickerVersion = "1.0.0" //look-up the latest one on jitpack
//the core package is a must
implementation "com.github.CraZyLegenD.MediaPicker:core:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:core:$pickerVersion"
//videos
implementation "com.github.CraZyLegenD.MediaPicker:videopicker:$pickerVersion"
implementation "com.github.FunkyMuse.MediaPicker:videopicker:$pickerVersion"
}
```
3. How to use single picker and check out [how to customize single video picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Single--image-video-picker-customization)
3. How to use single picker and check out [how to customize single video picker](https://github.com/FunkyMuse/MediaPicker/wiki/Single--image-video-picker-customization)
```kotlin
//simple usage without customization
SingleVideoPicker.showPicker(context = this, onPickedVideo = ::loadVideo)
Expand All @@ -43,7 +43,7 @@ dependencies {

```

4. How to use multi picker and check out [how to customize multi video picker](https://github.com/CraZyLegenD/MediaPicker/wiki/Multi-image-video-picker-customization)
4. How to use multi picker and check out [how to customize multi video picker](https://github.com/FunkyMuse/MediaPicker/wiki/Multi-image-video-picker-customization)
```kotlin
//simple usage without customization
MultiVideoPicker.showPicker(this) { loadVideos(it) }
Expand Down Expand Up @@ -96,17 +96,17 @@ setFragmentResultListener(MultiVideoPicker.MULTI_VIDEO_REQUEST_KEY) { _, bundle
```

##
If you're still not sure how to use, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)
If you're still not sure how to use, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt)

##
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/CraZyLegenD/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L320)
If you're still not sure how to use fragment listener, take a look at the [Sample app](https://github.com/FunkyMuse/MediaPicker/blob/master/app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt#L320)

## Screens

Single picker

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/videopicker/screens/screen_1.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/videopicker/screens/screen_1.png" width="15%"></img>

Multi pickers

<img src="https://raw.githubusercontent.com/CraZyLegenD/MediaPicker/master/videopicker/screens/screen_3.png" width="15%"></img>
<img src="https://raw.githubusercontent.com/FunkyMuse/MediaPicker/master/videopicker/screens/screen_3.png" width="15%"></img>

0 comments on commit c992d6b

Please sign in to comment.