Skip to content

Commit

Permalink
publish version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartDengg committed Feb 18, 2019
1 parent 020c453 commit b778969
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ buildscript {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.github.SmartDengg.interface-buoy:interface-buoy-gradle:1.1.0'
classpath 'com.github.SmartDengg.interface-buoy:interface-buoy-gradle:1.2.0'
}
}
Expand All @@ -44,7 +44,7 @@ apply plugin: 'com.smartdengg.interfacebuoy' // or apply plugin: 'interfacebuoy'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.github.SmartDengg.interface-buoy:interface-buoy-runtime:1.1.0'
implementation 'com.github.SmartDengg.interface-buoy:interface-buoy-runtime:1.2.0'
}
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// classpath 'com.github.SmartDengg.interface-buoy:interface-buoy-gradle:1.1.0'
classpath 'com.github.SmartDengg.interface-buoy:interface-buoy-gradle:1.2.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
14 changes: 7 additions & 7 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ dependencies {
implementation 'com.android.tools.build:gradle:3.3.0'
}

sourceSets {
main {
groovy.srcDirs = ['../interface-buoy-gradle/src/main/groovy']
java.srcDirs = ['../interface-buoy-gradle/src/main/java']
resources.srcDirs = ['../interface-buoy-gradle/src/main/resources']
}
}
//sourceSets {
// main {
// groovy.srcDirs = ['../interface-buoy-gradle/src/main/groovy']
// java.srcDirs = ['../interface-buoy-gradle/src/main/java']
// resources.srcDirs = ['../interface-buoy-gradle/src/main/resources']
// }
//}
4 changes: 2 additions & 2 deletions interface-buoy-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// implementation 'com.github.SmartDengg.interface-buoy:interface-buoy-runtime:1.1.0'
implementation project(':interface-buoy-runtime')
implementation 'com.github.SmartDengg.interface-buoy:interface-buoy-runtime:1.2.0'
// implementation project(':interface-buoy-runtime')
}


Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ public class MainActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

//Test null interface reference
setCallback(new Callback() {
@Override public void onClick(View view) {
Log.d(TAG,"hello world");
Log.d(TAG, "hello world");
}
});

//setCallback(null);

findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
@Override public void onClick(View v) {
callback.onClick(v);
Expand Down

0 comments on commit b778969

Please sign in to comment.