提交 4d729a71 编写于 作者: M mxdl

code perfect

上级 997de49f
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EclipseCodeFormatterProjectSettings">
<option name="selectedGlobalProfile">
<Settings>
<option name="formatter" value="ECLIPSE" />
<option name="id" value="1493019106702" />
<option name="name" value="default" />
<option name="pathToConfigFileJava" value="D:/soft/android/eclipse-google-code-style.xml" />
<option name="selectedJavaProfile" value="GoogleStyle" />
</Settings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
</project>
\ No newline at end of file
......@@ -3,6 +3,9 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<compositeConfiguration>
<compositeBuild compositeDefinitionSource="SCRIPT" />
</compositeConfiguration>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="D:/soft/android/gradle/gradle-4.1" />
......
<component name="MarkdownNavigator.ProfileManager">
<settings default="" pdf-export="" plain-text-search-scope="Project Files" />
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EclipseCodeFormatter">
<option name="defaultSettings" value="true" />
<option name="formatter" value="ECLIPSE" />
<option name="id" value="1493019106702" />
<option name="name" value="default" />
<option name="pathToConfigFileJava" value="D:/soft/android/eclipse-google-code-style.xml" />
<option name="selectedJavaProfile" value="GoogleStyle" />
</component>
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
......
......@@ -2,6 +2,8 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/FlyTranslate.iml" filepath="$PROJECT_DIR$/FlyTranslate.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/yigetranslate.iml" filepath="$PROJECT_DIR$/yigetranslate.iml" />
</modules>
......
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
<mapping directory="D:\workspace\yigetranslate\yicheng" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -11,7 +11,7 @@ import com.yige.translate.injection.module.APIModule;
import com.yige.translate.injection.module.AppModule;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
public class MyApplication extends Application {
......
......@@ -3,7 +3,7 @@ package com.yige.translate.injection;
import javax.inject.Scope;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
@Scope
public @interface ActivityScope {
......
......@@ -11,7 +11,7 @@ import javax.inject.Singleton;
import dagger.Component;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
@Singleton
@Component(modules = {AppModule.class, APIModule.class})
......
......@@ -8,7 +8,7 @@ import com.yige.translate.ui.activity.MainActivity;
import dagger.Component;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
@ActivityScope
@Component(modules = {MainModule.class} ,dependencies = {AppComponent.class})
......
......@@ -13,7 +13,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
@Module
public class APIModule {
......
......@@ -9,7 +9,7 @@ import dagger.Module;
import dagger.Provides;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
@Module
......
......@@ -10,7 +10,7 @@ import retrofit2.http.Query;
import retrofit2.http.QueryMap;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public interface BaiduAPI {
......
......@@ -16,7 +16,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public class BaiduModel implements IBaiduModel {
......
......@@ -5,7 +5,7 @@ import com.yige.translate.mvp.model.bean.TransResult;
import io.reactivex.Observable;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public interface IBaiduModel extends IBaseModel{
......
package com.yige.translate.mvp.model;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public interface IBaseModel {
......
package com.yige.translate.mvp.model;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
public interface ITranslateService {
......
......@@ -6,7 +6,7 @@ import io.reactivex.Observable;
import okhttp3.ResponseBody;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public interface IYoudaoModel extends IBaseModel{
......
......@@ -3,7 +3,7 @@ package com.yige.translate.mvp.model;
import javax.inject.Inject;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
public class TranslateService implements ITranslateService {
......
......@@ -10,7 +10,7 @@ import retrofit2.http.GET;
import retrofit2.http.QueryMap;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
public interface YoudaoAPI {
......
......@@ -14,7 +14,7 @@ import io.reactivex.Observable;
import okhttp3.ResponseBody;
/**
* Created by gxl on 2017/11/28.
* Created by mxdl on 2017/11/28.
*/
public class YoudaoModel implements IYoudaoModel {
......
package com.yige.translate.mvp.model.bean;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public class TransItem {
......
......@@ -3,7 +3,7 @@ package com.yige.translate.mvp.model.bean;
import java.util.List;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public class TransResult {
......
......@@ -2,7 +2,7 @@ package com.yige.translate.mvp.presenter;
import com.yige.translate.mvp.view.IBaseView;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public class BaiduContract {
......
......@@ -23,7 +23,7 @@ import io.reactivex.schedulers.Schedulers;
import okhttp3.ResponseBody;
/**
* Created by gxl on 2017/11/26.
* Created by mxdl on 2017/11/26.
*/
public class BaiduPresenter extends BasePresenter<IBaiduModel, BaiduContract.View>
......
......@@ -4,7 +4,7 @@ import com.yige.translate.mvp.view.IBaseView;
import com.yige.translate.mvp.model.IBaseModel;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public abstract class BasePresenter<M extends IBaseModel,V extends IBaseView> implements IBasePresenter {
......
package com.yige.translate.mvp.presenter;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public interface IBasePresenter{
......
......@@ -3,7 +3,7 @@ package com.yige.translate.mvp.view;
import android.content.Context;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public interface IBaseView {
......
......@@ -9,7 +9,7 @@ import com.yige.translate.mvp.view.IBaseView;
import javax.inject.Inject;
/**
* Created by gxl on 2017/11/27.
* Created by mxdl on 2017/11/27.
*/
public class BaseActivity<P extends BasePresenter> extends AppCompatActivity implements IBaseView {
......
yicheng @ d8868009
Subproject commit d88680097ce64cf657a1c859d8db7cd0b53b3378
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册