Skip to content

Commit

Permalink
disable sentry autoinit in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
hilpitome committed Sep 16, 2022
1 parent e99c344 commit 1c31914
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
17 changes: 17 additions & 0 deletions android-json-form-wizard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ jacoco {
reportsDir = file("$buildDir/reports/jacoco")
}

Properties properties = new Properties()
if (project.rootProject.file("local.properties").exists()) {
properties.load(project.rootProject.file("local.properties").newDataInputStream())
}
ext.getLocalProperty = { key ->
if (properties != null && properties.containsKey(key)) {
println(key + ": " + properties[key])
return properties[key]
} else {
return "\"123\""
}
}

android {
compileSdkVersion androidCompileSdkVersion
buildToolsVersion androidBuildToolsVersion
Expand All @@ -39,6 +52,7 @@ android {
}

multiDexKeepProguard file('multidex-config.pro')
manifestPlaceholders += [ sentryDsnId:getLocalProperty("sentry.dsn")]
}

buildTypes {
Expand Down Expand Up @@ -225,3 +239,6 @@ task javadoc(type: Javadoc) {
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}



9 changes: 1 addition & 8 deletions android-json-form-wizard/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
android:theme="@style/NativeFormsAppTheme"
tools:replace="android:theme">

<meta-data android:name="io.sentry.auto-init" android:value="false" />
<activity
android:name=".activities.JsonFormBarcodeScanActivity"
android:configChanges="keyboardHidden|orientation"
Expand All @@ -37,13 +38,5 @@
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<meta-data
android:name="io.sentry.dsn"
android:value="https://[email protected]/57" />

<meta-data
android:name="io.sentry.traces.sample-rate"
android:value="1.0" />

</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static NativeFormLibrary getInstance() {
if (instance == null) {
instance = new NativeFormLibrary();
}

return instance;
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=3.0.0-SNAPSHOT
VERSION_NAME=3.0.1-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Native Form Json Wizard
Expand Down

0 comments on commit 1c31914

Please sign in to comment.