Skip to content

Commit 22254ea

Browse files
committed
compile to api.
1 parent 4763fe4 commit 22254ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

hellodaemon/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ android {
4646
}
4747

4848
dependencies {
49-
compile 'io.reactivex.rxjava2:rxjava:2.+'
50-
compile 'com.android.support:support-annotations:+'
49+
api 'io.reactivex.rxjava2:rxjava:2.+'
50+
api 'com.android.support:support-annotations:+'
5151
}
5252

5353
// Place it at the end of the file

sample/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ android {
2222
}
2323

2424
dependencies {
25-
compile 'io.reactivex.rxjava2:rxjava:2.+'
26-
compile project(':hellodaemon')
25+
api 'io.reactivex.rxjava2:rxjava:2.+'
26+
api project(':hellodaemon')
2727
}

sample/src/main/java/com/xdandroid/sample/misc/GenOpsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public class GenOpsActivity extends Activity {
1818

19-
static String genOp(String pkg, String op) {
19+
/* static String genOp(String pkg, String op) {
2020
return "adb shell cmd appops set " + pkg + " " + op + " " + ("RUN_IN_BACKGROUND".equals(op) && WHITE_LIST_APPS.contains(pkg) ? "allow" : "ignore") + "\n\n";
2121
}
2222
@@ -48,5 +48,5 @@ protected void onCreate(Bundle savedInstanceState) {
4848
} catch (Exception e) { e.printStackTrace(); }
4949
}).start();
5050
finish();
51-
}
51+
}*/
5252
}

0 commit comments

Comments
 (0)