Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FunkyMuse/MediaPicker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.1
Choose a base ref
...
head repository: FunkyMuse/MediaPicker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Dec 21, 2020

  1. fix: Closes #2

    CraZyLegenD committed Dec 21, 2020
    Copy the full SHA
    41bc6ee View commit details
  2. fix: better audio loading

    CraZyLegenD committed Dec 21, 2020
    Copy the full SHA
    e9a3b04 View commit details

Commits on Jul 15, 2022

  1. Closes #3

    FunkyMuse committed Jul 15, 2022
    Copy the full SHA
    4b2e5fc View commit details
  2. Copy the full SHA
    b010b9c View commit details
  3. Copy the full SHA
    40a77ec View commit details
  4. feat: add maven publish

    FunkyMuse committed Jul 15, 2022
    Copy the full SHA
    20e936d View commit details

Commits on Jul 17, 2022

  1. Update build.gradle

    FunkyMuse authored Jul 17, 2022
    Copy the full SHA
    b616cd4 View commit details

Commits on Oct 13, 2022

  1. Copy the full SHA
    bf4e2d0 View commit details
  2. Delete .gitignore

    dnsking authored Oct 13, 2022
    Copy the full SHA
    cb731b4 View commit details
  3. Delete compiler.xml

    dnsking authored Oct 13, 2022
    Copy the full SHA
    3eeee6c View commit details
  4. Delete gradle.xml

    dnsking authored Oct 13, 2022
    Copy the full SHA
    5b40a5b View commit details
  5. Delete misc.xml

    dnsking authored Oct 13, 2022
    Copy the full SHA
    2aeb9aa View commit details
  6. Delete vcs.xml

    dnsking authored Oct 13, 2022
    Copy the full SHA
    8259ea7 View commit details

Commits on Oct 14, 2022

  1. Merge pull request #5 from dnsking/master

    Updated readme to include Android studio Arctic Fox gradle changes
    FunkyMuse authored Oct 14, 2022
    Copy the full SHA
    93a5b2f View commit details

Commits on Jan 1, 2023

  1. Copy the full SHA
    e07c286 View commit details

Commits on Jan 3, 2023

  1. remove idea folder

    hoangchungk53qx1 committed Jan 3, 2023
    Copy the full SHA
    6da3b81 View commit details
  2. remove idea folder

    hoangchungk53qx1 committed Jan 3, 2023
    Copy the full SHA
    d8bfe61 View commit details
  3. Merge pull request #6 from hoangchungk53qx1/master

    update sdk 33,update permission android sdk33
    FunkyMuse authored Jan 3, 2023
    Copy the full SHA
    e571c8b View commit details

Commits on Jan 6, 2023

  1. Update README.md

    FunkyMuse authored Jan 6, 2023
    Copy the full SHA
    d5bc4ed View commit details

Commits on Sep 8, 2023

  1. Extension-Based Filtering

    vedraj360 committed Sep 8, 2023
    Copy the full SHA
    8e48ec2 View commit details

Commits on Sep 18, 2023

  1. Merge pull request #11 from vedraj360/master

    Extension-Based Filtering
    FunkyMuse authored Sep 18, 2023
    Copy the full SHA
    946a6b1 View commit details
  2. Update README.md

    FunkyMuse authored Sep 18, 2023
    Copy the full SHA
    64878d3 View commit details

Commits on Mar 12, 2024

  1. Merge pull request #1 from FunkyMuse/master

    Update
    vedraj360 authored Mar 12, 2024
    Copy the full SHA
    76a8943 View commit details
  2. Show file size

    vedraj360 committed Mar 12, 2024
    Copy the full SHA
    540819b View commit details

Commits on Mar 13, 2024

  1. Show file size changes

    vedraj360 committed Mar 13, 2024
    Copy the full SHA
    2ff9455 View commit details
  2. Show file size changes

    vedraj360 committed Mar 13, 2024
    Copy the full SHA
    ecd8fc5 View commit details

Commits on Mar 14, 2024

  1. dead code removed

    vedraj360 committed Mar 14, 2024
    Copy the full SHA
    f0e770f View commit details
  2. Merge pull request #13 from vedraj360/master

    Show file size
    FunkyMuse authored Mar 14, 2024
    Copy the full SHA
    3310f61 View commit details
Showing with 1,041 additions and 447 deletions.
  1. +15 −13 README.md
  2. +7 −3 app/build.gradle
  3. +14 −5 app/src/main/AndroidManifest.xml
  4. +122 −151 app/src/main/java/com/crazylegend/mediapicker/FragmentResult.kt
  5. +84 −55 app/src/main/java/com/crazylegend/mediapicker/MainActivity.kt
  6. +3 −0 audiopicker/build.gradle
  7. +1 −1 audiopicker/src/main/AndroidManifest.xml
  8. +5 −1 audiopicker/src/main/java/com/crazylegend/audiopicker/adapters/single/AudioSingleViewHolder.kt
  9. +11 −4 audiopicker/src/main/java/com/crazylegend/audiopicker/audios/AudioModel.kt
  10. +16 −15 audiopicker/src/main/java/com/crazylegend/audiopicker/audios/AudiosVM.kt
  11. +6 −2 ...cker/src/main/java/com/crazylegend/audiopicker/dialogs/multi/MultiAudioPickerBottomSheetDialog.kt
  12. +6 −2 ...er/src/main/java/com/crazylegend/audiopicker/dialogs/single/SingleAudioPickerBottomSheetDialog.kt
  13. +1 −2 audiopicker/src/main/java/com/crazylegend/audiopicker/pickers/MultiAudioPicker.kt
  14. +0 −2 audiopicker/src/main/java/com/crazylegend/audiopicker/pickers/SingleAudioPicker.kt
  15. +54 −26 build.gradle
  16. +3 −0 core/build.gradle
  17. +1 −1 core/src/main/AndroidManifest.xml
  18. +32 −1 core/src/main/java/com/crazylegend/core/Extensions.kt
  19. +15 −2 core/src/main/java/com/crazylegend/core/abstracts/AbstractAVM.kt
  20. +0 −1 core/src/main/java/com/crazylegend/core/abstracts/AbstractBottomSheetDialogFragment.kt
  21. +38 −0 core/src/main/java/com/crazylegend/core/adapters/BaseViewHolder.kt
  22. +4 −5 core/src/main/java/com/crazylegend/core/adapters/multi/MultiSelectAdapter.kt
  23. +13 −2 core/src/main/java/com/crazylegend/core/adapters/multi/MultiSelectViewHolder.kt
  24. +7 −3 core/src/main/java/com/crazylegend/core/adapters/single/SingleAdapter.kt
  25. +14 −2 core/src/main/java/com/crazylegend/core/adapters/single/SingleViewHolder.kt
  26. +1 −0 core/src/main/java/com/crazylegend/core/dto/BaseCursorModel.kt
  27. +3 −0 core/src/main/java/com/crazylegend/core/dto/PickerConfig.kt
  28. +130 −0 core/src/main/java/com/crazylegend/core/modifiers/SizeTextModifier.kt
  29. +17 −3 core/src/main/java/com/crazylegend/core/modifiers/base/BaseMultiPickerModifier.kt
  30. +7 −2 core/src/main/java/com/crazylegend/core/modifiers/base/BaseSinglePickerModifier.kt
  31. +18 −2 core/src/main/res/layout/itemview_image.xml
  32. +2 −0 core/src/main/res/values/colors.xml
  33. +3 −0 extensions/build.gradle
  34. +1 −1 extensions/src/main/AndroidManifest.xml
  35. +5 −1 extensions/src/main/java/com/crazylegend/extensions/Extensions.kt
  36. +1 −2 gradle.properties
  37. +1 −1 gradle/wrapper/gradle-wrapper.properties
  38. +12 −2 imagepicker/README.md
  39. +3 −0 imagepicker/build.gradle
  40. +1 −1 imagepicker/src/main/AndroidManifest.xml
  41. +33 −11 ...cker/src/main/java/com/crazylegend/imagepicker/dialogs/multi/MultiImagePickerBottomSheetDialog.kt
  42. +33 −13 ...er/src/main/java/com/crazylegend/imagepicker/dialogs/single/SingleImagePickerBottomSheetDialog.kt
  43. +62 −26 imagepicker/src/main/java/com/crazylegend/imagepicker/images/ImagesVM.kt
  44. +15 −7 imagepicker/src/main/java/com/crazylegend/imagepicker/pickers/MultiImagePicker.kt
  45. +11 −6 imagepicker/src/main/java/com/crazylegend/imagepicker/pickers/SingleImagePicker.kt
  46. +5 −0 jitpack.yml
  47. +15 −2 videopicker/README.md
  48. +3 −0 videopicker/build.gradle
  49. +1 −1 videopicker/src/main/AndroidManifest.xml
  50. +34 −10 ...cker/src/main/java/com/crazylegend/videopicker/dialogs/multi/MultiVideoPickerBottomSheetDialog.kt
  51. +34 −13 ...er/src/main/java/com/crazylegend/videopicker/dialogs/single/SingleVideoPickerBottomSheetDialog.kt
  52. +20 −6 videopicker/src/main/java/com/crazylegend/videopicker/pickers/MultiVideoPicker.kt
  53. +21 −7 videopicker/src/main/java/com/crazylegend/videopicker/pickers/SingleVideoPicker.kt
  54. +77 −31 videopicker/src/main/java/com/crazylegend/videopicker/videos/VideosVM.kt
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -5,9 +5,7 @@
# MediaPicker
### Kotlin Android library to pick images, videos and audios

[![](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)
![](https://jitpack.io/v/FunkyMuse/MediaPicker.svg)

## Usage
1. Add JitPack to your project build.gradle
@@ -21,15 +19,25 @@ allprojects {
}
```

#### or

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

```gradle
dependencyResolutionManagement {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

2. Add the dependency in the application build.gradle

```gradle
dependencies {
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.FunkyMuse.MediaPicker:core:$pickerVersion"
//images
implementation "com.github.FunkyMuse.MediaPicker:imagepicker:$pickerVersion"
//audios
@@ -56,13 +64,7 @@ dependencies {
}
```

4. Inside gradle.properties (optional)

```gradle
org.gradle.parallel=true
```

5. How to use and screens
4. How to use and screens

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

10 changes: 7 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

dependencies {

testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

//glide
implementation "com.github.bumptech.glide:glide:$glide"
@@ -26,3 +26,7 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle"
}

android {
namespace 'com.crazylegend.mediapicker'
}
19 changes: 14 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.crazylegend.mediapicker">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

<!-- Required only if your app needs to access videos
that other apps created. -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />

<!-- Required only if your app needs to access audio files
that other apps created. -->
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />

<application
android:fullBackupContent="false"
android:allowBackup="true"
android:fullBackupContent="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Loading