Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
android-mvp-dagger2-flytranslate
提交
4d729a71
A
android-mvp-dagger2-flytranslate
项目概览
门心叼龙
/
android-mvp-dagger2-flytranslate
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
android-mvp-dagger2-flytranslate
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4d729a71
编写于
6月 24, 2019
作者:
M
mxdl
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code perfect
上级
997de49f
变更
33
隐藏空白更改
内联
并排
Showing
33 changed file
with
50 addition
and
32 deletion
+50
-32
.idea/caches/build_file_checksums.ser
.idea/caches/build_file_checksums.ser
+0
-0
.idea/caches/gradle_models.ser
.idea/caches/gradle_models.ser
+0
-0
.idea/eclipseCodeFormatter.xml
.idea/eclipseCodeFormatter.xml
+14
-0
.idea/encodings.xml
.idea/encodings.xml
+4
-0
.idea/gradle.xml
.idea/gradle.xml
+3
-0
.idea/markdown-navigator/profiles_settings.xml
.idea/markdown-navigator/profiles_settings.xml
+3
-0
.idea/misc.xml
.idea/misc.xml
+0
-8
.idea/modules.xml
.idea/modules.xml
+2
-0
.idea/vcs.xml
.idea/vcs.xml
+1
-0
app/src/main/java/com/yige/translate/MyApplication.java
app/src/main/java/com/yige/translate/MyApplication.java
+1
-1
app/src/main/java/com/yige/translate/injection/ActivityScope.java
...main/java/com/yige/translate/injection/ActivityScope.java
+1
-1
app/src/main/java/com/yige/translate/injection/component/AppComponent.java
.../com/yige/translate/injection/component/AppComponent.java
+1
-1
app/src/main/java/com/yige/translate/injection/component/MainComponent.java
...com/yige/translate/injection/component/MainComponent.java
+1
-1
app/src/main/java/com/yige/translate/injection/module/APIModule.java
...n/java/com/yige/translate/injection/module/APIModule.java
+1
-1
app/src/main/java/com/yige/translate/injection/module/AppModule.java
...n/java/com/yige/translate/injection/module/AppModule.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/BaiduAPI.java
app/src/main/java/com/yige/translate/mvp/model/BaiduAPI.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/BaiduModel.java
...rc/main/java/com/yige/translate/mvp/model/BaiduModel.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/IBaiduModel.java
...c/main/java/com/yige/translate/mvp/model/IBaiduModel.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/IBaseModel.java
...rc/main/java/com/yige/translate/mvp/model/IBaseModel.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/ITranslateService.java
.../java/com/yige/translate/mvp/model/ITranslateService.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/IYoudaoModel.java
.../main/java/com/yige/translate/mvp/model/IYoudaoModel.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/TranslateService.java
...n/java/com/yige/translate/mvp/model/TranslateService.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/YoudaoAPI.java
...src/main/java/com/yige/translate/mvp/model/YoudaoAPI.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/YoudaoModel.java
...c/main/java/com/yige/translate/mvp/model/YoudaoModel.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/bean/TransItem.java
...ain/java/com/yige/translate/mvp/model/bean/TransItem.java
+1
-1
app/src/main/java/com/yige/translate/mvp/model/bean/TransResult.java
...n/java/com/yige/translate/mvp/model/bean/TransResult.java
+1
-1
app/src/main/java/com/yige/translate/mvp/presenter/BaiduContract.java
.../java/com/yige/translate/mvp/presenter/BaiduContract.java
+1
-1
app/src/main/java/com/yige/translate/mvp/presenter/BaiduPresenter.java
...java/com/yige/translate/mvp/presenter/BaiduPresenter.java
+1
-1
app/src/main/java/com/yige/translate/mvp/presenter/BasePresenter.java
.../java/com/yige/translate/mvp/presenter/BasePresenter.java
+1
-1
app/src/main/java/com/yige/translate/mvp/presenter/IBasePresenter.java
...java/com/yige/translate/mvp/presenter/IBasePresenter.java
+1
-1
app/src/main/java/com/yige/translate/mvp/view/IBaseView.java
app/src/main/java/com/yige/translate/mvp/view/IBaseView.java
+1
-1
app/src/main/java/com/yige/translate/ui/activity/BaseActivity.java
...ain/java/com/yige/translate/ui/activity/BaseActivity.java
+1
-1
yicheng
yicheng
+0
-1
未找到文件。
.idea/caches/build_file_checksums.ser
0 → 100644
浏览文件 @
4d729a71
文件已添加
.idea/caches/gradle_models.ser
0 → 100644
浏览文件 @
4d729a71
文件已添加
.idea/eclipseCodeFormatter.xml
0 → 100644
浏览文件 @
4d729a71
<?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
.idea/encodings.xml
0 → 100644
浏览文件 @
4d729a71
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"Encoding"
addBOMForNewFiles=
"with NO BOM"
/>
</project>
\ No newline at end of file
.idea/gradle.xml
浏览文件 @
4d729a71
...
...
@@ -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"
/>
...
...
.idea/markdown-navigator/profiles_settings.xml
0 → 100644
浏览文件 @
4d729a71
<component
name=
"MarkdownNavigator.ProfileManager"
>
<settings
default=
""
pdf-export=
""
plain-text-search-scope=
"Project Files"
/>
</component>
\ No newline at end of file
.idea/misc.xml
浏览文件 @
4d729a71
<?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"
/>
...
...
.idea/modules.xml
浏览文件 @
4d729a71
...
...
@@ -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>
...
...
.idea/vcs.xml
浏览文件 @
4d729a71
<?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
app/src/main/java/com/yige/translate/MyApplication.java
浏览文件 @
4d729a71
...
...
@@ -11,7 +11,7 @@ import com.yige.translate.injection.module.APIModule;
import
com.yige.translate.injection.module.AppModule
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
public
class
MyApplication
extends
Application
{
...
...
app/src/main/java/com/yige/translate/injection/ActivityScope.java
浏览文件 @
4d729a71
...
...
@@ -3,7 +3,7 @@ package com.yige.translate.injection;
import
javax.inject.Scope
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
@Scope
public
@interface
ActivityScope
{
...
...
app/src/main/java/com/yige/translate/injection/component/AppComponent.java
浏览文件 @
4d729a71
...
...
@@ -11,7 +11,7 @@ import javax.inject.Singleton;
import
dagger.Component
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
@Singleton
@Component
(
modules
=
{
AppModule
.
class
,
APIModule
.
class
})
...
...
app/src/main/java/com/yige/translate/injection/component/MainComponent.java
浏览文件 @
4d729a71
...
...
@@ -8,7 +8,7 @@ import com.yige.translate.ui.activity.MainActivity;
import
dagger.Component
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
@ActivityScope
@Component
(
modules
=
{
MainModule
.
class
}
,
dependencies
=
{
AppComponent
.
class
})
...
...
app/src/main/java/com/yige/translate/injection/module/APIModule.java
浏览文件 @
4d729a71
...
...
@@ -13,7 +13,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import
retrofit2.converter.gson.GsonConverterFactory
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
@Module
public
class
APIModule
{
...
...
app/src/main/java/com/yige/translate/injection/module/AppModule.java
浏览文件 @
4d729a71
...
...
@@ -9,7 +9,7 @@ import dagger.Module;
import
dagger.Provides
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
@Module
...
...
app/src/main/java/com/yige/translate/mvp/model/BaiduAPI.java
浏览文件 @
4d729a71
...
...
@@ -10,7 +10,7 @@ import retrofit2.http.Query;
import
retrofit2.http.QueryMap
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
interface
BaiduAPI
{
...
...
app/src/main/java/com/yige/translate/mvp/model/BaiduModel.java
浏览文件 @
4d729a71
...
...
@@ -16,7 +16,7 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import
retrofit2.converter.gson.GsonConverterFactory
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
class
BaiduModel
implements
IBaiduModel
{
...
...
app/src/main/java/com/yige/translate/mvp/model/IBaiduModel.java
浏览文件 @
4d729a71
...
...
@@ -5,7 +5,7 @@ import com.yige.translate.mvp.model.bean.TransResult;
import
io.reactivex.Observable
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
interface
IBaiduModel
extends
IBaseModel
{
...
...
app/src/main/java/com/yige/translate/mvp/model/IBaseModel.java
浏览文件 @
4d729a71
package
com.yige.translate.mvp.model
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
interface
IBaseModel
{
...
...
app/src/main/java/com/yige/translate/mvp/model/ITranslateService.java
浏览文件 @
4d729a71
package
com.yige.translate.mvp.model
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
public
interface
ITranslateService
{
...
...
app/src/main/java/com/yige/translate/mvp/model/IYoudaoModel.java
浏览文件 @
4d729a71
...
...
@@ -6,7 +6,7 @@ import io.reactivex.Observable;
import
okhttp3.ResponseBody
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
interface
IYoudaoModel
extends
IBaseModel
{
...
...
app/src/main/java/com/yige/translate/mvp/model/TranslateService.java
浏览文件 @
4d729a71
...
...
@@ -3,7 +3,7 @@ package com.yige.translate.mvp.model;
import
javax.inject.Inject
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
public
class
TranslateService
implements
ITranslateService
{
...
...
app/src/main/java/com/yige/translate/mvp/model/YoudaoAPI.java
浏览文件 @
4d729a71
...
...
@@ -10,7 +10,7 @@ import retrofit2.http.GET;
import
retrofit2.http.QueryMap
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
public
interface
YoudaoAPI
{
...
...
app/src/main/java/com/yige/translate/mvp/model/YoudaoModel.java
浏览文件 @
4d729a71
...
...
@@ -14,7 +14,7 @@ import io.reactivex.Observable;
import
okhttp3.ResponseBody
;
/**
* Created by
gx
l on 2017/11/28.
* Created by
mxd
l on 2017/11/28.
*/
public
class
YoudaoModel
implements
IYoudaoModel
{
...
...
app/src/main/java/com/yige/translate/mvp/model/bean/TransItem.java
浏览文件 @
4d729a71
package
com.yige.translate.mvp.model.bean
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
class
TransItem
{
...
...
app/src/main/java/com/yige/translate/mvp/model/bean/TransResult.java
浏览文件 @
4d729a71
...
...
@@ -3,7 +3,7 @@ package com.yige.translate.mvp.model.bean;
import
java.util.List
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
class
TransResult
{
...
...
app/src/main/java/com/yige/translate/mvp/presenter/BaiduContract.java
浏览文件 @
4d729a71
...
...
@@ -2,7 +2,7 @@ package com.yige.translate.mvp.presenter;
import
com.yige.translate.mvp.view.IBaseView
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
class
BaiduContract
{
...
...
app/src/main/java/com/yige/translate/mvp/presenter/BaiduPresenter.java
浏览文件 @
4d729a71
...
...
@@ -23,7 +23,7 @@ import io.reactivex.schedulers.Schedulers;
import
okhttp3.ResponseBody
;
/**
* Created by
gx
l on 2017/11/26.
* Created by
mxd
l on 2017/11/26.
*/
public
class
BaiduPresenter
extends
BasePresenter
<
IBaiduModel
,
BaiduContract
.
View
>
...
...
app/src/main/java/com/yige/translate/mvp/presenter/BasePresenter.java
浏览文件 @
4d729a71
...
...
@@ -4,7 +4,7 @@ import com.yige.translate.mvp.view.IBaseView;
import
com.yige.translate.mvp.model.IBaseModel
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
abstract
class
BasePresenter
<
M
extends
IBaseModel
,
V
extends
IBaseView
>
implements
IBasePresenter
{
...
...
app/src/main/java/com/yige/translate/mvp/presenter/IBasePresenter.java
浏览文件 @
4d729a71
package
com.yige.translate.mvp.presenter
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
interface
IBasePresenter
{
...
...
app/src/main/java/com/yige/translate/mvp/view/IBaseView.java
浏览文件 @
4d729a71
...
...
@@ -3,7 +3,7 @@ package com.yige.translate.mvp.view;
import
android.content.Context
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l on 2017/11/27.
*/
public
interface
IBaseView
{
...
...
app/src/main/java/com/yige/translate/ui/activity/BaseActivity.java
浏览文件 @
4d729a71
...
...
@@ -9,7 +9,7 @@ import com.yige.translate.mvp.view.IBaseView;
import
javax.inject.Inject
;
/**
* Created by
gx
l on 2017/11/27.
* Created by
mxd
l 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录