File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed
java/com/blankj/androidutilcode
utilcode/src/test/java/com/blankj/utilcode/utils Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ compile 'com.blankj:utilcode:1.3.4'
570570
571571### How to use
572572```
573- Utils.
573+ Utils.init(context);
574574```
575575
576576### Proguard
Original file line number Diff line number Diff line change @@ -565,6 +565,11 @@ Gradle:
565565compile 'com.blankj:utilcode:1.3.4'
566566```
567567
568+ ### How to use
569+ ```
570+ Utils.init(context);
571+ ```
572+
568573### Proguard
569574***
570575```
@@ -679,6 +684,9 @@ limitations under the License.
679684[ snackbar.java ] : https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/src/main/java/com/blankj/utilcode/utils/SnackbarUtils.java
680685[ snackbar.demo ] : https://github.com/Blankj/AndroidUtilCode/blob/master/app/src/main/java/com/blankj/androidutilcode/activities/SnackbarActivity.java
681686
687+ [ spannable.java ] : https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/src/main/java/com/blankj/utilcode/utils/SpannableStringUtils.java
688+ [ spannable.demo ] : https://github.com/Blankj/AndroidUtilCode/blob/master/app/src/main/java/com/blankj/androidutilcode/activities/SpannableActivity.java
689+
682690[ sp.java ] : https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/src/main/java/com/blankj/utilcode/utils/SPUtils.java
683691[ sp.test ] : https://github.com/Blankj/AndroidUtilCode/blob/master/utilcode/src/test/java/com/blankj/utilcode/utils/SPUtilsTest.java
684692
Original file line number Diff line number Diff line change 4444<!-- process-->
4545 <uses-permission android : name =" android.permission.KILL_BACKGROUND_PROCESSES" />
4646 <application
47- android : name =" .App "
47+ android : name =" .UtilsApp "
4848android : allowBackup =" true"
4949android : icon =" @mipmap/ic_launcher"
5050android : label =" @string/my_app_name"
Original file line number Diff line number Diff line change 1212 * author: Blankj
1313 * blog : http://blankj.com
1414 * time : 2016/10/12
15- * desc : App
15+ * desc : 工具类测试App
1616 * </pre>
1717 */
18- public class App extends Application {
18+ public class UtilsApp extends Application {
1919
20- private static App appContext ;
20+ private static UtilsApp appContext ;
2121
22- public static App getInstance (){
22+ public static UtilsApp getInstance (){
2323return appContext ;
2424 }
2525
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class TestUtils{
2727 + SEP + "src" + SEP + "test" + SEP + "res" + SEP ;
2828
2929public static void init (){
30- Utils .getContext () = RuntimeEnvironment .application ;
30+ Utils .init ( RuntimeEnvironment .application ) ;
3131 }
3232
3333@ Test
You can’t perform that action at this time.
0 commit comments