Skip to content

Commit

Permalink
Change due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markvdouw committed Jul 12, 2023
1 parent 0979640 commit 279ed28
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,24 @@ public static String getDeviceImei() {
}

private int getSideloadedKitsCount() {
Set<Integer> kits = MParticle.getInstance().Internal().getKitManager().getSupportedKits();
int count = 0;
for (Integer kitId : kits) {
if (kitId >= 1000000) {
count++;
try {
Set<Integer> kits = MParticle.getInstance().Internal().getKitManager().getSupportedKits();
int count = 0;
for (Integer kitId : kits) {
if (kitId >= 1000000) {
count++;
}
}
return count;
} catch (Exception e) {
Logger.debug("Exception while adding sideloadedKitsCount to Device Attribute");
return 0;
}
return count;
}

/**
* Generates a collection of application attributes that will not change during an app's process.
*
* <p>
* This contains logic that MUST only be called once per app run.
*
* @param appContext the application context
Expand Down Expand Up @@ -170,7 +175,7 @@ public static void addAndroidId(JSONObject attributes, Context context) throws J

/**
* Generates a collection of device attributes that will not change during an app's process.
*
* <p>
* This contains logic that MUST only be called once per app run.
*
* @param appContext the application context
Expand Down

0 comments on commit 279ed28

Please sign in to comment.