From 4b208dbd5c4bcc040ca60a73b8dbf39d1b8989ce Mon Sep 17 00:00:00 2001 From: wuhaojie Date: Tue, 18 Oct 2016 10:37:34 +0800 Subject: [PATCH] update. --- README.md | 12 +++++++++++- README_zh.md | 13 +++++++++++-- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d4720c1..6120182 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,17 @@ There are two ways: - just add following code to you build.gradle: ```groovy - compile 'top.wuhaojie:installerlibrary:1.0.0' + // Add it in your root build.gradle at the end of repositories + allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } + } + // Add the dependency + dependencies { + compile 'com.github.a-voyager:AutoInstaller:ea0c990b9e' + } ``` ## Usage diff --git a/README_zh.md b/README_zh.md index e277b1a..cb5d22a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -24,8 +24,17 @@ - 只需要在build.gradle中添加一下代码即可(可能暂时无法使用): ```groovy - compile 'top.wuhaojie:installerlibrary:1.0.0' - ``` + // 在项目根目录 build.gradle 添加 + allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } + } + // 在App目录 build.gradle 添加依赖 + dependencies { + compile 'com.github.a-voyager:AutoInstaller:ea0c990b9e' + } ## 用法 - 获取实例 diff --git a/build.gradle b/build.gradle index aff4f41..53f4fad 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.2' + classpath 'com.android.tools.build:gradle:2.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 122a0dc..f06ce25 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Dec 28 10:00:20 PST 2015 +#Tue Oct 18 10:33:38 CST 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip