Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuriy Budiyev committed Oct 24, 2017
1 parent 44c61c9 commit 4686538
Show file tree
Hide file tree
Showing 39 changed files with 3,223 additions and 50 deletions.
57 changes: 8 additions & 49 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,14 @@
# Built application files
*.iml
.gradle
.DS_Store
.navigation
/.idea
/local.properties
/build
/captures
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/dictionaries
.idea/libraries

# Keystore files
*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# Google Services (e.g. APIs or Firebase)
google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Yuriy Budiyev
Copyright (c) 2017 Yuriy Budiyev [yuriy.budiyev@yandex.ru]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ImageLoader
[![Download](https://api.bintray.com/packages/yuriy-budiyev/maven/image-loader/images/download.svg)](https://bintray.com/yuriy-budiyev/maven/image-loader/_latestVersion)

Image loader tool for Android

### Usage
```
dependencies {
implementation 'com.budiyev.android:image-loader:1.4.0'
}
```
152 changes: 152 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
buildscript {
repositories {
jcenter()
google()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-rc2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}

allprojects {
repositories {
jcenter()
google()
}
}

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

ext {
libraryName = 'ImageLoader'
libraryDescription = 'Image loader tool for Android'
libraryVersion = '1.4.0'
artifact = 'image-loader'
developerId = 'yuriy-budiyev'
developerName = 'Yuriy Budiyev'
developerEmail = 'yuriy.budiyev@yandex.ru'
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']
}

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"

defaultConfig {
minSdkVersion 19
targetSdkVersion 26
versionCode 6
versionName libraryVersion
}

dexOptions {
javaMaxHeapSize "2048m"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
api 'com.android.support:support-annotations:26.1.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
}
}
}
}
}

version = libraryVersion

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

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
failOnError = false
}

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

artifacts {
archives javadocJar
archives sourcesJar
}

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
publicDownloadNumbers = true

version {
desc = libraryDescription
vcsTag = 'v' + libraryVersion
}
}
}
17 changes: 17 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri May 19 18:43:34 MSK 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip
Loading

0 comments on commit 4686538

Please sign in to comment.