-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -334,31 +334,6 @@ private static void readDefaultOptionValues( | |
return null; | ||
} | ||
|
||
private static @Nullable String getProguardUUID( | ||
final @NotNull Context context, final @NotNull ILogger logger) { | ||
final AssetManager assets = context.getAssets(); | ||
// one may have thousands of asset files and looking up this list might slow down the SDK init. | ||
// quite a bit, for this reason, we try to open the file directly and take care of errors | ||
// like FileNotFoundException | ||
try (final InputStream is = | ||
new BufferedInputStream(assets.open("sentry-debug-meta.properties"))) { | ||
final Properties properties = new Properties(); | ||
properties.load(is); | ||
|
||
final String uuid = properties.getProperty("io.sentry.ProguardUuids"); | ||
logger.log(SentryLevel.DEBUG, "Proguard UUID found: %s", uuid); | ||
return uuid; | ||
} catch (FileNotFoundException e) { | ||
logger.log(SentryLevel.INFO, "sentry-debug-meta.properties file was not found."); | ||
} catch (IOException e) { | ||
logger.log(SentryLevel.ERROR, "Error getting Proguard UUIDs.", e); | ||
} catch (RuntimeException e) { | ||
logger.log(SentryLevel.ERROR, "sentry-debug-meta.properties file is malformed.", e); | ||
} | ||
|
||
return null; | ||
} | ||
|
||
/** | ||
* Returns the sentry release version (eg [email protected]+10000) - | ||
* packageName@versionName+buildVersion | ||
|