Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
location share white
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
location share white
Commits
9587e914
Commit
9587e914
authored
Oct 23, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
7abc49eb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
29 deletions
+50
-29
build.gradle.kts
app/build.gradle.kts
+1
-0
LocationLoginUtils.kt
...om/base/locationsharewhite/location/LocationLoginUtils.kt
+10
-8
LocationPositionUtils.kt
...base/locationsharewhite/location/LocationPositionUtils.kt
+5
-4
LocationShareListUtils.kt
...ase/locationsharewhite/location/LocationShareListUtils.kt
+11
-6
LocationShareUtils.kt
...om/base/locationsharewhite/location/LocationShareUtils.kt
+9
-7
LocationShareActivity.kt
.../base/locationsharewhite/ui/main/LocationShareActivity.kt
+2
-0
activity_location_share.xml
app/src/main/res/layout/activity_location_share.xml
+12
-4
No files found.
app/build.gradle.kts
View file @
9587e914
...
...
@@ -53,6 +53,7 @@ dependencies {
implementation
(
"io.github.cymchad:BaseRecyclerViewAdapterHelper4:4.1.4"
)
implementation
(
"io.github.youth5201314:banner:2.2.3"
)
implementation
(
"de.hdodenhof:circleimageview:3.1.0"
)
implementation
(
"io.supercharge:shimmerlayout:2.1.0"
)
//google地图
implementation
(
libs
.
play
.
services
.
maps
)
...
...
app/src/main/java/com/base/locationsharewhite/location/LocationLoginUtils.kt
View file @
9587e914
...
...
@@ -69,14 +69,16 @@ object LocationLoginUtils {
val
paramJson
=
AESHelper
.
encrypt
(
body
)
LogEx
.
logDebug
(
TAG
,
"url=$url"
)
val
result
=
doPost
(
url
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
val
responseData
=
extractData
(
result
)
LogEx
.
logDebug
(
TAG
,
"responseData=$responseData"
)
if
(
responseData
!=
null
)
{
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
LogEx
.
logDebug
(
TAG
,
"decryptedData=$decryptedData"
)
parseLoginData
(
decryptedData
)
runCatching
{
val
result
=
doPost
(
url
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
val
responseData
=
extractData
(
result
)
LogEx
.
logDebug
(
TAG
,
"responseData=$responseData"
)
if
(
responseData
!=
null
)
{
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
LogEx
.
logDebug
(
TAG
,
"decryptedData=$decryptedData"
)
parseLoginData
(
decryptedData
)
}
}
}.
start
()
...
...
app/src/main/java/com/base/locationsharewhite/location/LocationPositionUtils.kt
View file @
9587e914
...
...
@@ -58,10 +58,11 @@ object LocationPositionUtils {
.
toString
()
val
paramJson
=
AESHelper
.
encrypt
(
body
)
LogEx
.
logDebug
(
TAG
,
"uploadUrl=${uploadUrl}"
)
val
result
=
ReportUtils
.
doPost
(
uploadUrl
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
runCatching
{
LogEx
.
logDebug
(
TAG
,
"uploadUrl=${uploadUrl}"
)
val
result
=
ReportUtils
.
doPost
(
uploadUrl
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
}
}.
start
()
}
}
\ No newline at end of file
app/src/main/java/com/base/locationsharewhite/location/LocationShareListUtils.kt
View file @
9587e914
...
...
@@ -16,7 +16,7 @@ import org.json.JSONObject
*/
object
LocationShareListUtils
{
private
val
TAG
=
"LocationListUtils"
private
val
TAG
=
"Location
Share
ListUtils"
/**
* 分享关系列表
...
...
@@ -54,11 +54,16 @@ object LocationShareListUtils {
.
toString
()
val
paramJson
=
AESHelper
.
encrypt
(
body
)
val
result
=
ReportUtils
.
doPost
(
url
,
HashMap
(),
paramJson
)
val
responseData
=
LocationLoginUtils
.
extractData
(
result
)
if
(
responseData
!=
null
)
{
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
parseShareListData
(
decryptedData
,
viewerListCallBack
,
viewingListCallBack
)
runCatching
{
val
result
=
ReportUtils
.
doPost
(
url
,
HashMap
(),
paramJson
)
LogEx
.
logDebug
(
TAG
,
"result=$result"
)
val
responseData
=
LocationLoginUtils
.
extractData
(
result
)
LogEx
.
logDebug
(
TAG
,
"responseData=$responseData"
)
if
(
responseData
!=
null
)
{
val
decryptedData
=
AESHelper
.
decrypt
(
responseData
)
LogEx
.
logDebug
(
TAG
,
"decryptedData=$decryptedData"
)
parseShareListData
(
decryptedData
,
viewerListCallBack
,
viewingListCallBack
)
}
}
}.
start
()
}
...
...
app/src/main/java/com/base/locationsharewhite/location/LocationShareUtils.kt
View file @
9587e914
...
...
@@ -61,13 +61,15 @@ object LocationShareUtils {
.
toString
()
val
paramJson
=
AESHelper
.
encrypt
(
body
)
val
result
=
ReportUtils
.
doPost
(
url
,
HashMap
(),
paramJson
)
val
responseData
=
extractData
(
result
)
if
(
responseData
!=
null
)
{
val
state
=
AESHelper
.
decrypt
(
responseData
).
toInt
()
callBack
.
invoke
(
state
)
}
else
{
callBack
.
invoke
(
0
)
runCatching
{
val
result
=
ReportUtils
.
doPost
(
url
,
HashMap
(),
paramJson
)
val
responseData
=
extractData
(
result
)
if
(
responseData
!=
null
)
{
val
state
=
AESHelper
.
decrypt
(
responseData
).
toInt
()
callBack
.
invoke
(
state
)
}
else
{
callBack
.
invoke
(
0
)
}
}
}.
start
()
}
...
...
app/src/main/java/com/base/locationsharewhite/ui/main/LocationShareActivity.kt
View file @
9587e914
...
...
@@ -29,6 +29,8 @@ class LocationShareActivity : BaseActivity<ActivityLocationShareBinding>() {
BarUtils
.
setStatusBarColor
(
this
,
Color
.
WHITE
)
binding
.
root
.
updatePadding
(
top
=
BarUtils
.
getStatusBarHeight
())
binding
.
shimmerLayout
.
startShimmerAnimation
()
initShareData
()
}
...
...
app/src/main/res/layout/activity_location_share.xml
View file @
9587e914
...
...
@@ -44,13 +44,21 @@
android:orientation=
"vertical"
app:layout_constraintTop_toBottomOf=
"@id/fl_fanhui"
>
<ImageView
android:layout_width=
"match_parent"
<io.supercharge.shimmerlayout.ShimmerLayout
android:id=
"@+id/shimmerLayout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginHorizontal=
"16dp"
android:src=
"@mipmap/lan_weizhi"
tools:ignore=
"ContentDescription"
/>
app:shimmer_animation_duration=
"2000"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:src=
"@mipmap/lan_weizhi"
tools:ignore=
"ContentDescription"
/>
</io.supercharge.shimmerlayout.ShimmerLayout>
<TextView
android:layout_width=
"match_parent"
...
...
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