Skip to content

Commit

Permalink
No need to install
Browse files Browse the repository at this point in the history
  • Loading branch information
typ0520 committed Jun 26, 2017
1 parent fdc7d3d commit 0fecc18
Show file tree
Hide file tree
Showing 130 changed files with 13,997 additions and 338 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ Android API 9(2.3)+ ; android-gradle-build 2.0.0+
- 2、fastdex会忽略开启混淆的buildType
- 3、强烈建议你的application不要直接依赖library工程,打成aar包让application工程远程依赖
- 3、强烈建议你的application不要直接依赖library工程,打成aar包让application工程远程依赖,目前还没有做充分测试
- 4、开启自定义的编译任务能获得更快的构建速度,对使用了butterknife的大型项目效果最明显,这一特性目前还不稳定0.0.3-beta3后默认关闭了,使用了,如果想尝试在build.gradle中加入下面配置
- 4、开启自定义的编译任务能获得更快的构建速度(这个特性目前不支持使用lambda),对使用了butterknife的大型项目效果最明显,这一特性目前还不稳定0.0.3-beta3后默认关闭了,使用了,如果想尝试在build.gradle中加入下面配置
````
fastdex {
Expand Down Expand Up @@ -101,4 +101,4 @@ Android API 9(2.3)+ ; android-gradle-build 2.0.0+
[Android应用程序资源的编译和打包过程分析](http://blog.csdn.net/luoshengyang/article/details/8744683)
4 changes: 2 additions & 2 deletions bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

def projectName = project.name
def projectName = project.hasProperty("MAVEN_ARTIFACT_ID") ? project.MAVEN_ARTIFACT_ID : project.name
def mavenDesc = projectName
def baseUrl = 'https://github.com/typ0520/fastdex'
def siteUrl = baseUrl
Expand Down Expand Up @@ -86,7 +86,7 @@ bintray {
configurations = ['archives']
pkg {
repo = 'maven'
name = "${project.group}:${projectName}"
name = "${project.groupId}:${projectName}"
desc = mavenDesc
websiteUrl = siteUrl
issueTrackerUrl = issueUrl
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
Expand Down
1 change: 1 addition & 0 deletions fastdex-build-lib/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
61 changes: 61 additions & 0 deletions fastdex-build-lib/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apply plugin: 'java'
apply plugin: 'maven'

sourceCompatibility = 1.7
targetCompatibility = 1.7

[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'

dependencies {
compile project(':fastdex-common')
compile 'org.apache.ant:ant:1.8.2'
compile 'com.google.guava:guava:18.0'
compile 'com.android.tools.ddms:ddmlib:25.3.1'

testCompile 'junit:junit:4.12'
testCompile 'com.google.code.gson:gson:2.3.1'
}

sourceSets {
main {
java {
srcDir 'src/main/java'
}

resources {
srcDir 'src/main/resources'
}
}
}

apply from: rootProject.file('bintray.gradle')


def generated = new File("${project.buildDir}/generated/java")
sourceSets {
main {
java {
srcDir generated
}
}
}

task generateVersionConstantsJava {
inputs.property("version", version)
ext.versionFile = new File(generated, "com/github/typ0520/fastdex/Version.java")
outputs.file(versionFile)
}

generateVersionConstantsJava << {
versionFile.parentFile.mkdirs()
versionFile.text = """
package com.github.typ0520.fastdex;
public final class Version {
private Version() {}
public static final String FASTDEX_BUILD_VERSION = "$version";
}
"""
}

tasks.compileJava.dependsOn generateVersionConstantsJava
Loading

0 comments on commit 0fecc18

Please sign in to comment.