Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Feb 18, 2022
1 parent 9e8fb90 commit 4878593
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 100 deletions.
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Image Loader
[![Download](https://api.bintray.com/packages/yuriy-budiyev/maven/image-loader/images/download.svg)](https://bintray.com/yuriy-budiyev/maven/image-loader/_latestVersion)
[![Release](https://jitpack.io/v/yuriy-budiyev/image-loader.svg)](https://jitpack.io/#yuriy-budiyev/image-loader)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Image%20Loader-blue.svg?style=flat)](https://android-arsenal.com/details/1/6378)
[![API](https://img.shields.io/badge/API-14%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=14)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7ecfc5f4065c41ba9cd2e9409d072ebb)](https://www.codacy.com/app/yuriy-budiyev/image-loader?utm_source=github.com&utm_medium=referral&utm_content=yuriy-budiyev/image-loader&utm_campaign=Badge_Grade)

Image loader library for Android.

**Deprecated**. See [Glide](https://github.com/bumptech/glide).

### Features
* Image transformations
* Automatic memory and storage caching
Expand All @@ -16,12 +13,36 @@ Image loader library for Android.
* Almost unlimited customization

### Usage ([sample](https://github.com/yuriy-budiyev/lib-demo-app))
Add dependency:

Step 1. Add it in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```

or in settings.gradle file:
```gradle
dependencyResolutionManagement {
repositories {
maven { url 'https://jitpack.io' }
}
}
```

Step 2. Add dependency:
```gradle
dependencies {
implementation 'com.budiyev.android:image-loader:2.5.6'
implementation 'com.github.yuriy-budiyev:image-loaderr:2.5.7'
}
```

And load images simply:
```java
public class MainActivity extends AppCompatActivity {
Expand Down
133 changes: 40 additions & 93 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
buildscript {

repositories {

google()
jcenter()

mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'

classpath 'com.android.tools.build:gradle:7.1.1'
}
}

allprojects {

repositories {

google()
jcenter()

mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

ext {
libraryName = 'ImageLoader'
libraryDescription = 'Image loader tool for Android'
libraryVersion = '2.5.6'
artifact = 'image-loader'
developerId = 'yuriy-budiyev'
developerName = 'Yuriy Budiyev'
developerEmail = 'yuriy.budiyev@yandex.ru'
libraryVersion = '2.5.7'
publishedGroupId = 'com.budiyev.android'
siteUrl = 'https://github.com/yuriy-budiyev/image-loader'
gitUrl = 'https://github.com/yuriy-budiyev/image-loader.git'
bintrayRepo = 'maven'
bintrayName = 'image-loader'
licenseName = 'MIT License'
allLicenses = ['MIT']
}

group = publishedGroupId
version = libraryVersion

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
compileSdkVersion 31
buildToolsVersion '31.0.0'

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
versionCode 88
targetSdkVersion 31
versionCode 89
versionName libraryVersion
}

dexOptions {
javaMaxHeapSize "2048m"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

buildTypes {
Expand All @@ -63,90 +59,41 @@ android {
}

dependencies {
api 'androidx.annotation:annotation:1.0.1'
api 'androidx.exifinterface:exifinterface:1.0.0'
}

group = publishedGroupId

install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
groupId publishedGroupId
artifactId artifact
name libraryName
description libraryDescription
url siteUrl

licenses {
license {
name licenseName
}
}

developers {
developer {
id developerId
name developerName
email developerEmail
}
}

scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
api 'androidx.annotation:annotation:1.3.0'
api 'androidx.exifinterface:exifinterface:1.3.3'
}

version = libraryVersion

task sourcesJar(type: Jar) {
classifier = 'sources'
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
options.charSet = 'UTF-8'
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
failOnError = false
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.getDestinationDir()
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
archives javadocJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())

bintray {
user = properties.getProperty('bintray.user')
key = properties.getProperty('bintray.apikey')
configurations = ['archives']

pkg {
repo = bintrayRepo
name = bintrayName
desc = libraryDescription
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = allLicenses
publish = true

version {
desc = libraryDescription
vcsTag = 'v' + libraryVersion
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
artifactId = 'circular-progress-bar'
groupId = publishedGroupId
version = libraryVersion
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

0 comments on commit 4878593

Please sign in to comment.