Skip to content

Commit

Permalink
add customerType tag (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Zhong <simon@KX1QFM6F52.local>
  • Loading branch information
sdzhong and Simon Zhong authored Aug 27, 2024
1 parent bda28e9 commit 8fb9ca1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
Binary file modified app-debug.apk
Binary file not shown.
Binary file modified app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ android {
applicationId "com.example.vu.android"
minSdkVersion 21
targetSdkVersion 29
versionCode 46
versionName "2.11.0"
versionCode 47
versionName "2.11.1"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/example/vu/android/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ protected void onCreate(Bundle savedInstanceState) {
// SENTRY Tag and Breadcrumb
String activity = this.getClass().getSimpleName();
Sentry.setTag("activity", activity);
Sentry.setTag("customerType", "enterprise");

Breadcrumb breadcrumb = new Breadcrumb();
breadcrumb.setMessage("Android activity was created");
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/com/example/vu/android/MyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public void onCreate() {
});
});

String[] allCustomerTypes = {"medium-plan", "large-plan", "small-plan", "enterprise"};
String customerType = allCustomerTypes[(int) (Math.random() * 4)];
Sentry.setTag("customerType", customerType);
Sentry.setTag("se", SE);

// Set User info on Sentry event using a random email
Expand Down
Binary file modified release/app-release.apk
Binary file not shown.

0 comments on commit 8fb9ca1

Please sign in to comment.