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
2022-11-08 15:45:32 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
acbb7acdb30ef3d08b1a07d2f7f37d79d6dcf15c
acbb7acd
1 parent
956a7f2b
new keys
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/build.gradle
View file @
acbb7ac
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc
6
'
PUBLISH_VERSION
=
'4.5.4.6rc
7
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
acbb7ac
...
...
@@ -35,6 +35,7 @@ import android.content.pm.PackageInfo;
import
android.content.pm.PackageManager.NameNotFoundException
;
import
android.database.Cursor
;
import
android.net.Uri
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
androidx.appcompat.app.AlertDialog
;
...
...
@@ -158,18 +159,21 @@ public enum Warply {
WarpUtils
.
log
(
"Warply has not been initialized, call init(Context) first"
);
// return;
}
if
(
mContext
.
get
()
==
null
)
{
if
(
mContext
!=
null
&&
mContext
.
get
()
==
null
)
{
WarpUtils
.
log
(
"Warply has not been initialized, call init(Context) first"
);
// return;
}
String
apiKey
=
WarplyProperty
.
getAppUuid
(
mContext
.
get
());
if
(
apiKey
==
null
)
{
WarpUtils
.
log
(
"Warply application UUID has not been set in the Manifest"
);
if
(
mContext
!=
null
&&
mContext
.
get
()
!=
null
)
{
String
apiKey
=
WarplyProperty
.
getAppUuid
(
mContext
.
get
());
if
(
TextUtils
.
isEmpty
(
apiKey
))
{
WarpUtils
.
log
(
"Warply application UUID has not been set in the Manifest"
);
// return;
}
if
(
(
apiKey
.
length
()
!=
32
)
&&
(
apiKey
.
length
()
!=
36
))
{
WarpUtils
.
log
(
"Warply application UUID has not been set correclty in the Manifest, key got: "
+
apiKey
);
}
if
(!
TextUtils
.
isEmpty
(
apiKey
)
&&
(
apiKey
.
length
()
!=
32
)
&&
(
apiKey
.
length
()
!=
36
))
{
WarpUtils
.
log
(
"Warply application UUID has not been set correclty in the Manifest, key got: "
+
apiKey
);
// return;
}
}
}
...
...
Please
register
or
login
to post a comment