forked from hpdx/fresco-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
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
李松
committed
Nov 19, 2016
1 parent
9f39734
commit 1293447
Showing
45 changed files
with
546 additions
and
123 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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 |
---|---|---|
@@ -1,18 +1 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.facebook.fresco.helper"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:supportsRtl="true"> | ||
|
||
<activity android:name="com.facebook.fresco.helper.photo.PictureBrowseActivity" | ||
android:screenOrientation="portrait" | ||
android:theme="@style/picture_browse_activity_style"/> | ||
|
||
</application> | ||
|
||
</manifest> | ||
<manifest package="com.facebook.fresco.helper"/> |
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 was deleted.
Oops, something went wrong.
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,126 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
apply plugin: 'com.jfrog.bintray' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "25.0.0" | ||
|
||
defaultConfig { | ||
minSdkVersion 17 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile 'com.android.support:support-v4:24.2.1' | ||
compile 'com.android.support:recyclerview-v7:24.2.1' | ||
|
||
compile 'com.facebook.fresco:fresco:0.14.1' | ||
compile 'com.facebook.fresco:animated-base-support:0.14.1' | ||
compile 'com.facebook.fresco:animated-gif:0.14.1' | ||
compile 'com.facebook.fresco:webpsupport:0.14.1' | ||
compile 'com.facebook.fresco:animated-webp:0.14.1' | ||
compile 'com.facebook.fresco:imagepipeline-okhttp3:0.14.1' | ||
// compile 'com.squareup.okhttp3:logging-interceptor:3.4.1' | ||
|
||
} | ||
|
||
// Maven Group ID | ||
group = "com.facebook.fresco.helper" | ||
// library的版本号,后面每次更新都需要更改这个值 | ||
version = "1.0.4" | ||
|
||
// 生成jar包的task | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
} | ||
|
||
// 生成jarDoc的task | ||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
failOnError false // 忽略注释语法错误,如果用jdk1.8你的注释写的不规范就编译不过。 | ||
} | ||
|
||
// 生成javaDoc的jar | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
name 'fresco-helper' | ||
description 'Android上图片加载库Fresco的使用帮助类' | ||
url 'https://github.com/hpdx/fresco-helper' | ||
inceptionYear '2016' | ||
|
||
packaging 'aar' | ||
groupId 'com.facebook.fresco.helper' | ||
artifactId 'photoview' | ||
version '1.0.4' | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
scm { | ||
connection 'https://github.com/hpdx/fresco-helper.git' // Git仓库地址。 | ||
developerConnection 'https://github.com/hpdx/fresco-helper.git' // Git仓库地址。 | ||
url 'https://github.com/hpdx/fresco-helper' // 项目主页。 | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'android_ls' | ||
name 'android_ls' | ||
email 'android_ls@163.com' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
Properties properties = new Properties() | ||
// 读取properties的配置信息 | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
|
||
bintray { | ||
user = properties.getProperty("bintray.user") | ||
key = properties.getProperty("bintray.apikey") | ||
configurations = ['archives'] | ||
pkg { | ||
repo = 'maven' | ||
name = 'fresco-helper' | ||
userOrg = user | ||
licenses = ['Apache-2.0'] | ||
websiteUrl = 'https://github.com/hpdx/fresco-helper' | ||
vcsUrl = 'https://github.com/hpdx/fresco-helper.git' | ||
publish = true | ||
} | ||
} | ||
|
||
|
||
|
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,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/android_ls/Documents/Tool/adt-bundle-mac-x86_64-20130917/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# 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 *; | ||
#} |
Oops, something went wrong.