Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
388 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 26 | ||
|
||
defaultConfig { | ||
minSdkVersion 15 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'com.android.support:appcompat-v7:26.0.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
implementation 'com.facebook.fresco:fresco:1.9.0' | ||
compileOnly project(':ImageLoaderLibrary') | ||
} | ||
|
||
/*********************上传jCenter依赖*********************/ | ||
apply plugin: 'com.novoda.bintray-release' | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.3' | ||
classpath 'com.novoda:bintray-release:0.8.0' | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
/**避免中文注释:编码GBK的不可映射字符**/ | ||
tasks.withType(Javadoc) { | ||
options { | ||
encoding "UTF-8" | ||
charSet 'UTF-8' | ||
links "http://docs.oracle.com/javase/7/docs/api" | ||
} | ||
} | ||
|
||
/**避免Javadocs错误:找不到引用**/ | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
options.addStringOption('encoding', 'UTF-8') | ||
} | ||
|
||
/**发布到我的Bintray仓库**/ | ||
def user = getPropertyValue('bintrayUser') | ||
def key = getPropertyValue('bintrayKey') | ||
def org = getPropertyValue('userOrg') | ||
|
||
publish { | ||
bintrayUser = user | ||
bintrayKey = key | ||
dryRun = false | ||
userOrg = org | ||
groupId = 'com.excellence' | ||
artifactId = 'imageloader-fresco' | ||
publishVersion = '1.0.0' | ||
desc = 'Fresco图片加载器' | ||
website = 'https://github.com/VeiZhang/ImageLoader' | ||
licences = ['Apache-2.0'] | ||
} | ||
|
||
/**读取bintray.key文件的key**/ | ||
def getPropertyValue(String key) { | ||
if (key == null || key.length() == 0) | ||
return null | ||
|
||
File file = project.rootProject.file('../../bintray.key') | ||
if (!file.exists()) | ||
return null | ||
|
||
InputStream inputStream = file.newDataInputStream() | ||
Properties properties = new Properties() | ||
properties.load(inputStream) | ||
|
||
//读取Key | ||
return properties.getProperty(key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<manifest package="com.excellence.imageloader.fresco" | ||
xmlns:android="http://schemas.android.com/apk/res/android"/> |
2 changes: 1 addition & 1 deletion
2
...ageloader/strategy/FrescoImageLoader.java → ...imageloader/fresco/FrescoImageLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<resources> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 26 | ||
|
||
defaultConfig { | ||
minSdkVersion 15 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation 'com.android.support:appcompat-v7:26.0.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
implementation 'com.github.bumptech.glide:glide:4.8.0' | ||
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0' | ||
compileOnly project(':ImageLoaderLibrary') | ||
} | ||
|
||
/*********************上传jCenter依赖*********************/ | ||
apply plugin: 'com.novoda.bintray-release' | ||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.3.3' | ||
classpath 'com.novoda:bintray-release:0.8.0' | ||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
/**避免中文注释:编码GBK的不可映射字符**/ | ||
tasks.withType(Javadoc) { | ||
options { | ||
encoding "UTF-8" | ||
charSet 'UTF-8' | ||
links "http://docs.oracle.com/javase/7/docs/api" | ||
} | ||
} | ||
|
||
/**避免Javadocs错误:找不到引用**/ | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
options.addStringOption('encoding', 'UTF-8') | ||
} | ||
|
||
/**发布到我的Bintray仓库**/ | ||
def user = getPropertyValue('bintrayUser') | ||
def key = getPropertyValue('bintrayKey') | ||
def org = getPropertyValue('userOrg') | ||
|
||
publish { | ||
bintrayUser = user | ||
bintrayKey = key | ||
dryRun = false | ||
userOrg = org | ||
groupId = 'com.excellence' | ||
artifactId = 'imageloader-glide' | ||
publishVersion = '1.0.0' | ||
desc = 'Glide图片加载器' | ||
website = 'https://github.com/VeiZhang/ImageLoader' | ||
licences = ['Apache-2.0'] | ||
} | ||
|
||
/**读取bintray.key文件的key**/ | ||
def getPropertyValue(String key) { | ||
if (key == null || key.length() == 0) | ||
return null | ||
|
||
File file = project.rootProject.file('../../bintray.key') | ||
if (!file.exists()) | ||
return null | ||
|
||
InputStream inputStream = file.newDataInputStream() | ||
Properties properties = new Properties() | ||
properties.load(inputStream) | ||
|
||
//读取Key | ||
return properties.getProperty(key) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<manifest package="com.excellence.imageloader.glide" | ||
xmlns:android="http://schemas.android.com/apk/res/android"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ader/utils/AppGlideImageLoaderModule.java → ...lide/utils/AppGlideImageLoaderModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<resources> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Oops, something went wrong.