更新gradle配置

This commit is contained in:
Yutousama 2018-04-18 10:34:51 +08:00
parent 8c51f52a2c
commit 918cfe62bb
11 changed files with 60 additions and 57 deletions

View File

@ -40,7 +40,7 @@ dependencies {
//
implementation 'com.kaopiz:kprogresshud:1.1.0'
compile project(path: ':BaseModel')
compile project(path: ':ResModl')
compile project(path: ':RefreshRecyclerView')
api project(path: ':BaseModel')
api project(path: ':ResModl')
api project(path: ':RefreshRecyclerView')
}

View File

@ -66,5 +66,5 @@ dependencies {
//
implementation 'jp.wasabeef:glide-transformations:3.0.0'
// compile project(path: ':app')
compile project(path: ':ResModl')
api project(path: ':ResModl')
}

View File

@ -33,5 +33,5 @@ dependencies {
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
//
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation project(path: ':ResModl')
api project(path: ':ResModl')
}

View File

@ -46,7 +46,7 @@ dependencies {
implementation 'com.github.limedroid:XRichText:v1.0.0'
//
implementation 'com.github.limedroid:XRichText:v1.0.0'
compile project(path: ':BaseModel')
compile project(path: ':ResModl')
compile project(path: ':RefreshRecyclerView')
api project(path: ':BaseModel')
api project(path: ':ResModl')
api project(path: ':RefreshRecyclerView')
}

View File

@ -19,7 +19,7 @@ android {
}
dependencies {
compile 'com.android.support:recyclerview-v7:26+'
implementation 'com.android.support:recyclerview-v7:26+'
}
ext {

View File

@ -1,26 +0,0 @@
package com.jobs.usermodel;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@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());
}
}

View File

@ -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;
}
}

View File

@ -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();
}

View File

@ -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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

View File

@ -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')
}