Skip to content

Commit

Permalink
Merge pull request #11 from ltrudu/master
Browse files Browse the repository at this point in the history
A13 Freeze Fix
  • Loading branch information
ltrudu authored Oct 10, 2023
2 parents 45e84b4 + 6f5da3f commit 61cc00c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions DeviceIdentifiersWrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 33
versionCode 9
versionName "0.9"
versionCode 12
versionName "0.9.3"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.net.Uri;
import android.os.Build;
import android.text.TextUtils;
import android.util.Log;
import android.util.Xml;
Expand Down Expand Up @@ -65,6 +66,7 @@ public class ErrorHolder
public void onStatus(EMDKManager.StatusData statusData, EMDKBase emdkBase) {
if(statusData.getResult() == EMDKResults.STATUS_CODE.SUCCESS)
{
logMessage("Profile manager retrieved.", EMessageType.DEBUG);
onProfileManagerInitialized((ProfileManager)emdkBase);
}
else
Expand Down Expand Up @@ -188,7 +190,21 @@ private void onEMDKManagerRetrieved(EMDKManager emdkManager)
if(mProfileManager == null)
{
try {
emdkManager.getInstanceAsync(EMDKManager.FEATURE_TYPE.PROFILE, mStatusListener);
logMessage("Requesting profile manager.", EMessageType.DEBUG);
logMessage("Current API version: " + android.os.Build.VERSION.SDK_INT, EMessageType.VERBOSE);
if(android.os.Build.VERSION.SDK_INT < 33) {
logMessage("Requesting profile manager Asynchonously", EMessageType.DEBUG);
emdkManager.getInstanceAsync(EMDKManager.FEATURE_TYPE.PROFILE, mStatusListener);
}
else
{
logMessage("Requesting profile manager synchronized", EMessageType.DEBUG);
ProfileManager profileManager = (ProfileManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.PROFILE);
if(profileManager != null)
{
onProfileManagerInitialized(profileManager);
}
}
} catch (EMDKException e) {
logMessage("Error when trying to retrieve profile manager: " + e.getMessage(), EMessageType.ERROR);
}
Expand Down Expand Up @@ -226,7 +242,7 @@ private void onProfileManagerInitialized(ProfileManager profileManager)
{
mProfileManager = profileManager;
bInitializing = false;
logMessage("Profile Manager retrieved.", EMessageType.DEBUG);
logMessage("Processing MX Content", EMessageType.DEBUG);
processMXContent();
}

Expand Down Expand Up @@ -263,6 +279,7 @@ private void processMXContent()
String[] params = new String[1];
params[0] = msProfileData;

logMessage("Processing profile :" + msProfileData, EMessageType.VERBOSE);
EMDKResults results = mProfileManager.processProfile(msProfileName, ProfileManager.PROFILE_FLAG.SET, params);

//Check the return status of processProfile
Expand Down

0 comments on commit 61cc00c

Please sign in to comment.