From 918cfe62bb09b196fc197a544b3a906d712f5052 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Wed, 18 Apr 2018 10:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0gradle=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/caches/build_file_checksums.ser | Bin 906 -> 906 bytes AppHome/build.gradle | 6 ++-- BaseModel/build.gradle | 2 +- GameDataModel/build.gradle | 2 +- MgListModel/build.gradle | 6 ++-- RefreshRecyclerView/build.gradle | 2 +- .../usermodel/ExampleInstrumentedTest.java | 26 --------------- .../Interfaces/BaseActivityInterface.java | 31 ++++++++++++++++++ .../java/Interfaces/BaseFragmeneInerface.java | 15 +++++++++ .../com/jobs/usermodel/ExampleUnitTest.java | 17 ---------- app/build.gradle | 10 +++--- 11 files changed, 60 insertions(+), 57 deletions(-) delete mode 100644 UserModel/src/androidTest/java/com/jobs/usermodel/ExampleInstrumentedTest.java create mode 100644 UserModel/src/main/java/Interfaces/BaseActivityInterface.java create mode 100644 UserModel/src/main/java/Interfaces/BaseFragmeneInerface.java delete mode 100644 UserModel/src/test/java/com/jobs/usermodel/ExampleUnitTest.java diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser index 1f5251d7dc374ad52020b2119f8f639d6bbef1c3..b7c94044d5d8f75fe0cc8a7d39af10129d70a585 100644 GIT binary patch delta 234 zcmVucyIs!01&Db7Il*}U;y$5&V`>3y{mKp4|8R7bZKs9b1r9cVPtG& zb#VZG00xr|0Tz>40Wk#@RdZ!>lQ04tljs2wlZpW=5T0Ul6Swezl9o>{6>al&l#}=Y zArQNFqtRPK(R`h82!XU(L#2}`0wWLw1A7?PA0e67;+VXse!6UvTmn@Pw8>g-i$JkH kGDKOuRv~dxlfeQV5CMA)O=foIOO|*3w86)=2b1msoV1QwcmMzZ delta 196 zcmV;#06YJR2Z{%fm;}A(nc9(@PYDlmWps3DZfA3m{T>j~#T^6knn^uZr2OIvs)Tis z=^T@90SOQ)HOz|ZV!N^8wcR}kz!xc#R{=AVy#Xs1(2)6*88lAAMY8J7SC-`4bO07r zb7gXqFajNutN{^|`T-vhPx5-ry)-5HX%nkvN)!jElPLlt5Kr3`!l?PVO=R6^2QNN< y_mf-#RS?Lhy%f3>`cJK4g*OJj6$F#P0v!-1EO~uQV7?|a*<4B)AwKkz?gE@!Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("com.jobs.usermodel.test", appContext.getPackageName()); - } -} diff --git a/UserModel/src/main/java/Interfaces/BaseActivityInterface.java b/UserModel/src/main/java/Interfaces/BaseActivityInterface.java new file mode 100644 index 0000000..bbfc063 --- /dev/null +++ b/UserModel/src/main/java/Interfaces/BaseActivityInterface.java @@ -0,0 +1,31 @@ +package Interfaces; + +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.view.KeyEvent; +import android.view.MotionEvent; +import android.widget.LinearLayout; + + +/** + * Created by 58381 on 2018/2/27. + */ + +public interface BaseActivityInterface { + void onCreate(Bundle savedInstanceState, LinearLayout layout, Context context, Intent intent); + void onRestart(); + void onResume(); + void onPause(); + void onDestroy(); + void getIntent(Intent intent); + boolean onKeyDown(int keyCode, KeyEvent event); + boolean onKeyUp(int keyCode, KeyEvent event); + boolean onTouchEvent(MotionEvent event); + Data getData(); + class Data{ + private String type; + private String url; + + } +} diff --git a/UserModel/src/main/java/Interfaces/BaseFragmeneInerface.java b/UserModel/src/main/java/Interfaces/BaseFragmeneInerface.java new file mode 100644 index 0000000..65e2eee --- /dev/null +++ b/UserModel/src/main/java/Interfaces/BaseFragmeneInerface.java @@ -0,0 +1,15 @@ +package Interfaces; + +import android.content.Context; +import android.os.Bundle; +import android.support.annotation.Nullable; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +public interface BaseFragmeneInerface { + void init(Context context); + View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState); + void setIntent(); + +} diff --git a/UserModel/src/test/java/com/jobs/usermodel/ExampleUnitTest.java b/UserModel/src/test/java/com/jobs/usermodel/ExampleUnitTest.java deleted file mode 100644 index e9b7258..0000000 --- a/UserModel/src/test/java/com/jobs/usermodel/ExampleUnitTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.jobs.usermodel; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Example local unit test, which will execute on the development machine (host). - * - * @see Testing documentation - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 39233c6..d38a4c6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,10 +63,10 @@ dependencies { //毛玻璃 implementation 'jp.wasabeef:glide-transformations:3.0.0' // - compile project(path: ':BaseModel') - implementation project(path: ':GameDataModel') - implementation project(path: ':AppHome') - implementation project(path: ':MgListModel') - implementation project(path: ':ResModl') + api project(path: ':BaseModel') + api project(path: ':GameDataModel') + api project(path: ':AppHome') + api project(path: ':MgListModel') + api project(path: ':ResModl') }