Skip to content

Commit

Permalink
Merge pull request #31 from andremion/development
Browse files Browse the repository at this point in the history
Update master for 1.3.0 version
  • Loading branch information
andremion committed Apr 27, 2021
2 parents 3d12411 + 5f30d77 commit f6f0f94
Show file tree
Hide file tree
Showing 32 changed files with 435 additions and 429 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<img alt="Icon" src="sample/src/main/res/mipmap-xxhdpi/ic_launcher.png?raw=true" align="left" hspace="1" vspace="1">

<a alt='Buy Me a Coffee at ko-fi.com' href='https://ko-fi.com/T6T05M4O' target='_blank' align='right'><img align='right' height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=0' border='0' /></a>
<a alt='Get it on Google Play' href='https://play.google.com/store/apps/details?id=com.andremion.louvre.sample' target='_blank' align='right'><img align='right' height='36' style='border:0px;height:36px;' src='https://developer.android.com/images/brand/en_generic_rgb_wo_60.png' border='0' /></a>
# Louvre

A small customizable image picker. Useful to handle an gallery image pick action built-in your app.

</br>

[![License Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=true)](http://www.apache.org/licenses/LICENSE-2.0)
![minSdkVersion 19](https://img.shields.io/badge/minSdkVersion-19-red.svg?style=true)
![compileSdkVersion 25](https://img.shields.io/badge/compileSdkVersion-25-yellow.svg?style=true)
Expand All @@ -6,15 +16,10 @@
[![Android Arsenal Louvre](https://img.shields.io/badge/Android%20Arsenal-Louvre-green.svg?style=true)](https://android-arsenal.com/details/1/5188)
[![MaterialUp Louvre](https://img.shields.io/badge/MaterialUp-Louvre-blue.svg?style=true)](https://www.uplabs.com/posts/louvre)

![Icon](https://raw.githubusercontent.com/andremion/Louvre/master/sample/src/main/res/mipmap-hdpi/ic_launcher.png)
# Louvre
A small customizable image picker. Useful to handle an gallery image pick action built-in your app.

![Sample](https://raw.githubusercontent.com/andremion/Louvre/master/art/sample.gif)

**Images from Google Image Search*

[![Get it on Google Play](https://developer.android.com/images/brand/en_generic_rgb_wo_60.png)](https://play.google.com/store/apps/details?id=com.andremion.louvre.sample)
<p align="center">
<img alt='Sample' src="https://raw.githubusercontent.com/andremion/Louvre/master/art/sample.gif"></br>
<i>*Images from Google Image Search</i>
</p>

## Installation

Expand Down
27 changes: 14 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlinVersion = "1.4.10"
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

Expand All @@ -17,27 +17,28 @@ plugins {

allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url "https://maven.google.com" }
}
project.ext {

compileSdkVersion = 26
buildToolsVersion = '26.0.2'
compileSdkVersion = 30
minSdkVersion = 16
targetSdkVersion = 26
targetSdkVersion = 30

versionCode = 9
versionName = "1.2.3"
versionCode = 10
versionName = "1.3.0"

supportLibraryVersion = '26.1.0'
counterFabVersion = '1.0.2'
glideVersion = '4.3.1'
materialVersion = '1.2.1'
recyclerViewVersion = '1.1.0'
counterFabVersion = '1.2.2'
glideVersion = '4.11.0'
photoViewVersion = '2.0.0'

junitVersion = '4.12'
espressoVersion = '2.2.+'
junitVersion = '4.13.1'

name = 'Louvre'
description = 'A small customizable image picker. Useful to handle an gallery image pick action built-in your app.'
Expand Down
15 changes: 3 additions & 12 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

android.enableJetifier=true
android.useAndroidX=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Oct 26 09:01:11 WEST 2017
#Tue Nov 03 09:28:16 WET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
11 changes: 5 additions & 6 deletions louvre/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

android {
compileSdkVersion project.ext.compileSdkVersion
buildToolsVersion project.ext.buildToolsVersion
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode project.ext.versionCode
versionName project.ext.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
Expand All @@ -23,15 +23,14 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "com.android.support:design:$supportLibraryVersion"
implementation "com.android.support:recyclerview-v7:$supportLibraryVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion"
implementation "com.github.andremion:counterfab:$counterFabVersion"
implementation "com.github.bumptech.glide:glide:$glideVersion"
implementation "com.github.chrisbanes:PhotoView:$photoViewVersion"

testImplementation "junit:junit:$junitVersion"

androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
}

//apply from: 'https://raw.githubusercontent.com/andremion/JCenter/master/deploy.gradle'
12 changes: 6 additions & 6 deletions louvre/src/main/java/com/andremion/louvre/Louvre.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017. André Mion
* Copyright (c) 2020. André Mion
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -19,11 +19,11 @@
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.StringDef;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatDelegate;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.StringDef;
import androidx.fragment.app.Fragment;
import androidx.appcompat.app.AppCompatDelegate;

import com.andremion.louvre.home.GalleryActivity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017. André Mion
* Copyright (c) 2020. André Mion
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,11 +21,11 @@
import android.content.pm.PackageManager;
import android.net.Uri;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import androidx.annotation.NonNull;
import com.google.android.material.snackbar.Snackbar;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import androidx.appcompat.app.AppCompatActivity;
import android.view.View;

/**
Expand Down
183 changes: 0 additions & 183 deletions louvre/src/main/java/com/andremion/louvre/data/MediaLoader.java

This file was deleted.

0 comments on commit f6f0f94

Please sign in to comment.