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,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;
}
}
}
......