Skip to content

Commit

Permalink
1.0.2新增支持直接打开project
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyLau committed Jun 14, 2019
1 parent c925c21 commit ece3773
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions anchors/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'

android {
compileSdkVersion 28
Expand All @@ -15,3 +16,13 @@ dependencies {
implementation 'com.android.support:appcompat-v7:28.0.0'
}


//publish {
// userOrg = 'yummylau'
// groupId = 'com.effective.android'
// artifactId = 'anchors'
// publishVersion = '1.0.2'
// desc = 'Android startup framework'
// website = 'https://github.com/YummyLau/Anchors'
//}

Expand Up @@ -40,9 +40,13 @@ public synchronized void start(@NonNull Task task) {
if (task == null) {
throw new RuntimeException("can no run a task that was null !");
}
AnchorsRuntime.traversalDependenciesAndInit(task);
Task startTask = task;
if(startTask instanceof Project){
startTask = ((Project)task).getStartTask();
}
AnchorsRuntime.traversalDependenciesAndInit(startTask);
boolean logEnd = logStartWithAnchorsInfo();
task.start();
startTask.start();
while (AnchorsRuntime.hasAnchorTasks()) {
try {
Thread.sleep(10);
Expand Down
3 changes: 2 additions & 1 deletion app/build.gradle
Expand Up @@ -14,8 +14,9 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.effective.android:anchors:1.0.1'
implementation 'com.effective.android:anchors:1.0.2'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
// implementation project(':anchors')
}
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
// classpath 'com.novoda:bintray-release:0.9'
// classpath 'com.novoda:bintray-release:0.9.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
5 changes: 5 additions & 0 deletions gradle.properties
Expand Up @@ -12,4 +12,9 @@ org.gradle.jvmargs=-Xmx1536m
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1087
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1087


0 comments on commit ece3773

Please sign in to comment.