Skip to content

Commit

Permalink
Merge branch 'feature_newDemo' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
查郁 committed Mar 24, 2017
2 parents 602b329 + 3016eae commit c55026d
Show file tree
Hide file tree
Showing 121 changed files with 24,354 additions and 1,199 deletions.
11 changes: 4 additions & 7 deletions atlas-demo/AtlasDemo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ android {
vectorDrawables.useSupportLibrary = true
}

// dataBinding{
// enabled=true
// }
// dataBinding{
// enabled=true
// }

buildTypes {
release {
Expand Down Expand Up @@ -59,13 +59,10 @@ atlas {
}
}
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// bundleCompile project()
// providedCompile
compile('com.taobao.android:atlas_core:5.0.6-rc9@aar') {
transitive = true
}
Expand Down Expand Up @@ -103,7 +100,7 @@ String getEnvValue(key, defValue) {
return defValue;
}

tasks.whenTaskAdded { task ->
tasks.whenTaskAdded {task ->
if (task.name.contains("DebugAndroidTest")) {
task.setEnabled(false);
}
Expand Down
2 changes: 1 addition & 1 deletion atlas-demo/AtlasDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
classpath "com.taobao.android:atlasplugin:2.3.0.alpha4"
classpath "com.taobao.android:atlasplugin:2.3.0.alpha+"
}
}

Expand Down
94 changes: 2 additions & 92 deletions atlas-gradle-plugin/dexpatch/build.gradle
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
apply plugin: 'java'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

//buildscript {
//
// repositories {
// mavenCentral()
// jcenter()
// }
// dependencies {
//// classpath 'com.android.tools.build:gradle:2.2.0'
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
// classpath "com.github.dcendents:android-maven-gradle-plugin:1.4.1"
// }
//}
repositories {
// flatDir {
// dirs 'libs'
// }
mavenCentral()
jcenter()

}

archivesBaseName = 'dex_patch'

apply plugin: 'java'
sourceSets {
main {
// groovy.srcDirs = ['src/main/groovy']
Expand Down Expand Up @@ -53,72 +29,6 @@ dependencies {

}

def siteUrl = 'https://github.com/alibaba/atlas'
// 项目的主页
def gitUrl = 'https://github.com/alibaba/atlas'
// Git仓库的url
install {
repositories.mavenInstaller {
// This generates POM.xml with proper parameters
pom {
project {
packaging 'jar'
// Add your description here
name 'dex_patch' //项目描述
// Set your license
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'alibabaatlas' //填写的一些基本信息
name 'dex_patch'
email '[email protected]'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

Properties properties = new Properties()
def file = project.rootProject.file('local.properties')
if (file.exists()) {
properties.load(file.newDataInputStream())
}
bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")
configurations = ['archives']
pkg {
repo = "maven"
name = "dex_patch" //发布到JCenter上的项目名字
websiteUrl = "atlas.alibaba.net"
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}

}

task sourcesJar(type: Jar) {
from('src/main/java') {
include '**'
}
classifier = 'sources'
}

artifacts {
archives sourcesJar
}

group 'com.taobao.android'
version "1.0.3.1"
version "1.1.0.2"
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@
*/
public class BasePatchTool {

protected static final String BASE_APK_UNZIP_NAME = "base.apk";
protected static final String NEW_APK_UNZIP_NAME = "new.apk";
public static final String BASE_APK_UNZIP_NAME = "base.apk";
public static final String NEW_APK_UNZIP_NAME = "new.apk";
protected static final String DEX_NAME = "classes.dex";
protected static final String DEX_SUFFIX = ".dex";
protected static final String CLASSES = "classes";
Expand Down
Loading

0 comments on commit c55026d

Please sign in to comment.