Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lib_base
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sikang
lib_base
Commits
e2b4babf
Commit
e2b4babf
authored
Jun 24, 2019
by
sikang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.100.14.92:8929/sikang/lib_base
add permission.
parents
ea37ce6b
668a63ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
script/release_builder.sh
+1
-2
script/res/update_gateway.py
+1
-1
src/main/AndroidManifest.xml
+4
-2
src/main/java/com/common/activity/TakePhotoActivity.java
+5
-0
No files found.
script/release_builder.sh
View file @
e2b4babf
...
...
@@ -17,8 +17,7 @@ gradlew clean
init
(){
cd
lib_base/script
#api混淆
if
((
${
rename_api
}
==
'true'
))
then
if
[[
"
$rename_api
"
=
"true"
]]
;
then
cd
code
chmod a+x rename_api.py
./rename_api.py
...
...
script/res/update_gateway.py
View file @
e2b4babf
...
...
@@ -21,7 +21,7 @@ with open(path, "w") as f_w:
elif
"harvest_ip="
in
line
:
harvester
=
gateway
[
'harvester'
][
0
]
.
split
(
":"
)
line
=
"harvest_ip=
\"
%
s
\"\n
"
%
(
harvester
[
0
]
+
harvester
[
1
])
line
=
"harvest_ip=
\"
%
s
:
%
s
\"\n
"
%
(
harvester
[
0
],
harvester
[
1
])
elif
"harvest_port="
in
line
:
line
=
"harvest_port=
%
s
\n
"
%
(
gateway
[
'harvester'
][
0
]
.
split
(
":"
)[
2
])
...
...
src/main/AndroidManifest.xml
View file @
e2b4babf
...
...
@@ -5,10 +5,12 @@
<uses-permission
android:name=
"android.permission.FOREGROUND_SERVICE"
/>
<!--写入SD卡-->
<uses-permission
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
/>
android:name=
"android.permission.WRITE_EXTERNAL_STORAGE"
tools:node=
"remove"
/>
<!--读取SD卡-->
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
tools:node=
"remove"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<!--相机-->
<uses-permission
android:name=
"android.permission.CAMERA"
/>
...
...
src/main/java/com/common/activity/TakePhotoActivity.java
View file @
e2b4babf
...
...
@@ -9,6 +9,7 @@ import android.widget.Button;
import
android.widget.ImageView
;
import
com.common.toolbox.tracker.TrackEvent
;
import
com.qmuiteam.qmui.util.QMUIStatusBarHelper
;
import
java.io.File
;
...
...
@@ -23,6 +24,7 @@ import tech.starwin.utils.BitmapUtils;
import
tech.starwin.utils.FileUtils
;
import
tech.starwin.utils.PreferencesManager
;
import
tech.starwin.utils.SPDataProvider
;
import
tech.starwin.utils.TrackEventHelper
;
import
tech.starwin.utils.context_utils.ActivityJumper
;
import
tech.starwin.utils.context_utils.EasyActivityResult
;
import
tech.starwin.utils.ui_utils.QMUIHelper
;
...
...
@@ -95,7 +97,10 @@ public class TakePhotoActivity extends BaseActivity {
}
String
type
=
getIntent
().
getStringExtra
(
"photo_type"
);
if
(
TextUtils
.
equals
(
type
,
PhotoType
.
KTP
.
name
()))
{
TrackEventHelper
.
logEvent
(
TrackEvent
.
Click
.
KTP_SHOT
);
findViewById
(
R
.
id
.
imageview_id_frame
).
setVisibility
(
View
.
VISIBLE
);
}
else
if
(
TextUtils
.
equals
(
type
,
PhotoType
.
WORK_CARD
.
name
())){
TrackEventHelper
.
logEvent
(
TrackEvent
.
Click
.
WORK_CARD_SHOT
);
}
UIHelper
.
bindClickListener
(
new
OnNoShakeClickListener
()
{
...
...
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