Skip to content

Commit

Permalink
Merge pull request #30 from andremion/support/android10
Browse files Browse the repository at this point in the history
Support Android 10
  • Loading branch information
andremion authored Apr 27, 2021
2 parents 9aeddc8 + 595b004 commit 5f30d77
Show file tree
Hide file tree
Showing 31 changed files with 421 additions and 420 deletions.
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.

Loading

0 comments on commit 5f30d77

Please sign in to comment.