Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Restructure directories for sample applications. (#496)
Browse files Browse the repository at this point in the history
Moved `sentry-sample` Android application to `sentry-samples/sentry-samples-android`.
  • Loading branch information
maciejwalkowiak authored Jul 27, 2020
1 parent 89b011b commit de86043
Show file tree
Hide file tree
Showing 28 changed files with 5 additions and 5 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(Sentry-Sample LANGUAGES C CXX)

add_library(native-sample SHARED src/main/cpp/native-sample.cpp)

add_subdirectory(../sentry-android-ndk/${SENTRY_NATIVE_SRC} sentry_build)
add_subdirectory(../../sentry-android-ndk/${SENTRY_NATIVE_SRC} sentry_build)

find_library(LOG_LIB log)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ android {
buildToolsVersion(Config.Android.buildToolsVersion)

defaultConfig {
applicationId = "io.sentry.sample"
applicationId = "io.sentry.samples.android"
minSdkVersion(Config.Android.minSdkVersionNdk)
targetSdkVersion(Config.Android.targetSdkVersion)
versionCode = 2
versionName = "1.1.0"

externalNativeBuild {
val sentryNativeSrc = if (File("${project.projectDir}/../sentry-android-ndk/sentry-native-local").exists()) {
val sentryNativeSrc = if (File("${project.projectDir}/../../sentry-android-ndk/sentry-native-local").exists()) {
"sentry-native-local"
} else {
"sentry-native"
}
println("sentry-sample: $sentryNativeSrc")
println("sentry-samples-android: $sentryNativeSrc")

cmake {
arguments.add(0, "-DANDROID_STL=c++_static")
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ include("sentry-android",
"sentry-android-ndk",
"sentry-android-core",
"sentry-core",
"sentry-sample",
"sentry-samples:sentry-samples-android",
"sentry-android-timber")

0 comments on commit de86043

Please sign in to comment.