Panagiotis Triantafyllou

new keys

......@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'ly.warp'
PUBLISH_VERSION = '4.5.4.6rc6'
PUBLISH_VERSION = '4.5.4.6rc7'
PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
}
......
......@@ -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,20 +159,23 @@ 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;
}
if (mContext != null && mContext.get() != null) {
String apiKey = WarplyProperty.getAppUuid(mContext.get());
if (apiKey == null) {
if (TextUtils.isEmpty(apiKey)) {
WarpUtils.log("Warply application UUID has not been set in the Manifest");
// return;
}
if ((apiKey.length() != 32) && (apiKey.length() != 36)) {
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;
}
}
}
/**
* Method used to check if the Warply INSTANCE is initialized
......