Skip to content

Commit

Permalink
Fix Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Chittacouple committed Apr 5, 2022
1 parent 86a3ecb commit 99884b5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 15 deletions.
18 changes: 9 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
plugins {
id 'io.sentry.android.gradle'
id("io.sentry.android.gradle") version "3.0.1"
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
}

sentry {
includeProguardMapping = true
autoUploadProguardMapping = true
}

android {
compileSdkVersion 31
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.example.barcodescanner"
Expand Down Expand Up @@ -56,11 +61,6 @@ android {
buildConfigField "boolean", "ERROR_REPORTS_ENABLED_BY_DEFAULT", "false"
}
}

sentry {
autoProguardConfig true
autoUpload true
}
}

dependencies {
Expand All @@ -77,7 +77,7 @@ dependencies {
implementation 'androidx.multidex:multidex:2.0.1'

// Room
final roomVersion = "2.2.5"
final roomVersion = "2.4.2"
kapt "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-runtime:$roomVersion"
implementation "androidx.room:room-rxjava2:$roomVersion"
Expand Down Expand Up @@ -114,5 +114,5 @@ dependencies {
implementation 'com.github.florent37:singledateandtimepicker:2.2.6'

// Sentry
implementation 'io.sentry:sentry-android:2.3.1'
implementation 'io.sentry:sentry-android:5.7.1'
}
17 changes: 17 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
android:name=".feature.tile.QuickSettingsTileService"
android:icon="@drawable/ic_scan"
android:label="@string/app_name"
android:exported="true"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action
Expand All @@ -58,6 +59,7 @@
android:name=".feature.tabs.BottomTabsActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="true"
>

<intent-filter>
Expand All @@ -81,6 +83,7 @@
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
tools:ignore="AppLinkUrlError"
android:exported="true"
>

<intent-filter android:label="@string/intent_filter_scan_image">
Expand All @@ -102,6 +105,7 @@
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:windowSoftInputMode="stateVisible"
android:exported="true"
>
<intent-filter android:label="@string/intent_filter_create_qr_code_text">
<action android:name="android.intent.action.SEND"/>
Expand All @@ -119,69 +123,82 @@
android:name=".feature.tabs.create.qr.CreateQrCodeAllActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.tabs.create.barcode.CreateBarcodeAllActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>

<activity
android:name="com.example.barcodescanner.feature.barcode.BarcodeActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name="com.example.barcodescanner.feature.barcode.BarcodeImageActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.barcode.otp.OtpActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.barcode.save.SaveBarcodeAsTextActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.barcode.save.SaveBarcodeAsImageActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>

<activity
android:name=".feature.tabs.history.export.ExportHistoryActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>

<activity
android:name=".feature.tabs.settings.theme.ChooseThemeActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.tabs.settings.camera.ChooseCameraActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.tabs.settings.formats.SupportedFormatsActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.tabs.settings.search.ChooseSearchEngineActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>
<activity
android:name=".feature.tabs.settings.permissions.AllPermissionsActivity"
android:screenOrientation="fullSensor"
android:configChanges="orientation|screenSize"
android:exported="false"
/>

</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.example.barcodescanner.usecase

import com.example.barcodescanner.BuildConfig
import io.sentry.core.Sentry
import io.sentry.Sentry

object Logger {
var isEnabled = BuildConfig.ERROR_REPORTS_ENABLED_BY_DEFAULT
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ buildscript {
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.sentry:sentry-android-gradle-plugin:1.7.28'
}
}

Expand Down
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#Sun Jul 26 01:41:08 MSK 2020
#Tue Apr 05 16:05:22 MSK 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
zipStoreBase=GRADLE_USER_HOME
android.enableJetifier=true
android.useAndroidX=true

0 comments on commit 99884b5

Please sign in to comment.