Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix πŸ›(chore) build #8968

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions apps/ledger-live-mobile/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
apply plugin: "io.sentry.android.gradle"

apply plugin: 'com.google.gms.google-services'

Expand Down Expand Up @@ -63,6 +64,7 @@ react {
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]
/* Autolinking */

autolinkLibrariesWithApp()
}

Expand All @@ -73,13 +75,6 @@ project.ext.react = [
enableHermes: true,
bundleInDebug: System.getenv("ANDROID_BUNDLE_IN_DEBUG") != null, // Generates JS bundle and sourcemap at build time
]
project.ext.sentryCli = [
logLevel: "debug"
]

if (System.getenv("SENTRY_AUTH_TOKEN") != null) {
apply from: "../../node_modules/@sentry/react-native/sentry.gradle"
}

/**
* Set this to true to create four separate APKs instead of one,
Expand Down Expand Up @@ -137,14 +132,6 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}


if (System.getenv("SENTRY_AUTH_TOKEN") != null) {
sentry {
autoUploadProguardMapping = shouldSentryAutoUpload()
uploadNativeSymbols = shouldSentryAutoUpload()
}
}

configurations.all {
resolutionStrategy {
// Needed for Braze
Expand Down Expand Up @@ -207,6 +194,27 @@ android {
}
}


apply from: "../../node_modules/@sentry/react-native/sentry.gradle"

project.ext.sentryCli = [
logLevel: "debug",
sentryProperties: System.getenv('SENTRY_PROPERTIES') ?: '../sentry.properties'
]

sentry {
autoUploadProguardMapping = shouldSentryAutoUpload()
uploadNativeSymbols = shouldSentryAutoUpload()

includeNativeSources = true

autoInstallation {
enabled = false
}
}



dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
Expand Down
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("io.sentry:sentry-android-gradle-plugin:4.14.1")
classpath("io.sentry:sentry-android-gradle-plugin:4.2.0")
classpath("com.android.tools.build:gradle:7.4.1")
classpath("com.facebook.react:react-native-gradle-plugin")
// NOTE: Do not place your application dependencies here; they belong
Expand Down
2 changes: 2 additions & 0 deletions apps/ledger-live-mobile/android/sentry.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
defaults.url=https://sentry.io/
defaults.org=ledger
default.project=ledger-live-mobile
cli.executable=../node_modules/@sentry/cli/bin/sentry-cli
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"@react-native-community/cli-platform-ios": "14.1.0",
"@react-native/babel-preset": "0.75.4",
"@react-native/dev-middleware": "0.75.4",
"@sentry/cli": "2.40.0",
"@sentry/cli": "2.41.1",
"@swc/core": "1.4.11",
"@swc/jest": "0.2.36",
"@testing-library/jest-native": "5.4.3",
Expand Down
Loading
Loading