Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2023-12-05 11:54:05 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
822cef73e63867bb4575394b9182697cae7e2816
822cef73
1 parent
52cbbc8a
crash fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
warply_android_sdk/src/main/java/ly/warp/sdk/views/WarpView.java
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
822cef7
...
...
@@ -1586,8 +1586,8 @@ public enum Warply {
}
}
if
(
INSTANCE
.
mRequestQueue
==
null
)
INSTANCE
.
mRequestQueue
=
Volley
.
newRequestQueue
(
mContext
);
if
(
INSTANCE
.
mRequestQueue
==
null
&&
INSTANCE
.
mContext
!=
null
)
INSTANCE
.
mRequestQueue
=
Volley
.
newRequestQueue
(
INSTANCE
.
mContext
);
if
(
tempAnalytics
!=
null
&&
tempAnalytics
.
length
()
>
0
)
{
String
urlAnalytics
=
WarplyProperty
.
getBaseUrl
(
mContext
)
+
WarpConstants
.
WARPLY_ASYNC
+
WarpConstants
.
WARPLY_ANALYTICS
+
WarplyProperty
.
getAppUuid
(
mContext
)
+
"/"
;
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyManagerHelper.java
View file @
822cef7
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/views/WarpView.java
View file @
822cef7
...
...
@@ -659,6 +659,7 @@ public class WarpView extends WebView implements DefaultLifecycleObserver {
private
void
checkForPermissions
(
String
origin
,
Callback
callback
)
{
String
perm
=
Manifest
.
permission
.
ACCESS_FINE_LOCATION
;
if
(
Build
.
VERSION
.
SDK_INT
<
Build
.
VERSION_CODES
.
M
||
getContext
().
checkSelfPermission
(
perm
)
==
PackageManager
.
PERMISSION_GRANTED
)
{
geolocationCallback
=
callback
;
if
(
isGPSEnabled
())
{
callback
.
invoke
(
origin
,
true
,
false
);
}
else
{
...
...
@@ -678,6 +679,8 @@ public class WarpView extends WebView implements DefaultLifecycleObserver {
}
private
void
enableLocationSettings
()
{
if
(
geolocationCallback
==
null
)
return
;
GoogleApiClient
googleApiClient
=
new
GoogleApiClient
.
Builder
(
WarpActivity
)
.
addApi
(
LocationServices
.
API
)
.
build
();
...
...
Please
register
or
login
to post a comment