Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
c5d8f980
Commit
c5d8f980
authored
Jul 10, 2019
by
linfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-member-john' of
http://113.105.137.151:22280/lify/rvapp
parents
a3f7a84b
97cadfcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
RvClientApplication.java
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
+7
-2
PersonalInformationActivity.java
...a/com/rv/rvmine/traveler/PersonalInformationActivity.java
+3
-3
update_file_paths.xml
plugin_version/src/main/res/xml/update_file_paths.xml
+1
-1
No files found.
RvClient/src/main/java/com/xxfc/rv/RvClientApplication.java
View file @
c5d8f980
...
...
@@ -2,6 +2,7 @@ package com.xxfc.rv;
import
android.app.Activity
;
import
android.os.StrictMode
;
import
com.alibaba.android.arouter.launcher.ARouter
;
import
com.baidu.mapapi.CoordType
;
...
...
@@ -42,6 +43,11 @@ public class RvClientApplication extends FrameApp {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
StrictMode
.
VmPolicy
.
Builder
builder
=
new
StrictMode
.
VmPolicy
.
Builder
();
StrictMode
.
setVmPolicy
(
builder
.
build
());
builder
.
detectFileUriExposure
();
CrashHandler
.
getInstance
().
init
(
this
);
// 在使用 SDK 各组间之前初始化 context 信息,传入 ApplicationContext
SDKInitializer
.
initialize
(
this
);
...
...
@@ -80,7 +86,7 @@ public class RvClientApplication extends FrameApp {
// ModuleUtil.register();
if
(
isDedugARouter
){
if
(
isDedugARouter
)
{
ARouter
.
openLog
();
ARouter
.
openDebug
();
}
...
...
@@ -129,7 +135,6 @@ public class RvClientApplication extends FrameApp {
}
private
void
initAuto
()
{
//当 App 中出现多进程, 并且您需要适配所有的进程, 就需要在 App 初始化时调用 initCompatMultiProcess()
...
...
module_mine/src/main/java/com/rv/rvmine/traveler/PersonalInformationActivity.java
View file @
c5d8f980
...
...
@@ -152,10 +152,10 @@ public class PersonalInformationActivity extends BaseStatusActivity<PickerPresen
if
(
data
!=
null
&&
data
.
getData
()
!=
null
)
{
mPresenter
.
cropPhoto
(
data
.
getData
());
}
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CAMERA_CODE
)
{
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CAMERA_CODE
&&
resultCode
==
RESULT_OK
)
{
mPresenter
.
cropPhoto
(
Uri
.
fromFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
())));
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CROP_CODE
)
{
String
url
=
String
.
format
(
"%1$s%2$s"
,
"file://"
,
mPresenter
.
gerCameraStoreUrl
()
);
}
else
if
(
requestCode
==
mPresenter
.
TYPE_CROP_CODE
&&
resultCode
==
RESULT_OK
)
{
String
url
=
mPresenter
.
gerCameraStoreUrl
(
);
GlideManager
.
getInstance
(
mActivity
).
loadImage
(
url
,
ivAvatar
);
uploadFile
(
new
File
(
mPresenter
.
gerCameraStoreUrl
()),
"camera"
);
}
...
...
plugin_version/src/main/res/xml/update_file_paths.xml
View file @
c5d8f980
...
...
@@ -5,7 +5,7 @@
<cache-path
name=
"cache-path"
path=
""
/>
<external-path
name=
"external-path"
path=
"photo"
/>
<external-path
name=
"external-path"
path=
"photo
/camera
"
/>
<external-files-path
name=
"external-files-path"
path=
""
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment