feat: app types

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-03-16 03:31:29 +01:00
parent b68329b2de
commit a2fcdf82e6
4 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,7 @@ jobs:
RVX_ANALYSIS_ENABLED: ${{ vars.RVX_ANALYSIS_ENABLED }}
RVX_ANALYSIS_BASEURL: ${{ vars.RVX_ANALYSIS_BASEURL }}
RVX_DEBUG_APP_NAME: ${{ vars.RVX_DEBUG_APP_NAME }}
RVX_BUILD_FLAVOUR_ID: ${{ vars.RVX_BUILD_FLAVOUR_ID }}
steps:
- uses: actions/checkout@v3

View File

@ -115,6 +115,7 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "String", "SENTRY_DSN", "\"${buildproperty('sentry.dsn', 'RVX_SENTRY_DSN')}\""
buildConfigField "String", "FLAVOUR_ID", "\"${buildproperty('build.flavour_id', 'RVX_BUILD_FLAVOUR_ID')}\""
}
debug {
@ -125,6 +126,7 @@ android {
resValue "string", "app_name", buildproperty('build.debug.app_name', 'RVX_DEBUG_APP_NAME')
buildConfigField "String", "SENTRY_DSN", "\"${buildproperty('sentry.dsn', 'RVX_SENTRY_DSN')}\""
buildConfigField "String", "FLAVOUR_ID", "\"${buildproperty('build.flavour_id', 'RVX_BUILD_FLAVOUR_ID')}\""
}
}
compileOptions {

View File

@ -72,6 +72,7 @@ class AboutViewModel : ViewModel() {
return mapOf(
"App ID" to BuildConfig.APPLICATION_ID,
"App Version" to BuildConfig.VERSION_NAME,
"App Type" to BuildConfig.FLAVOUR_ID,
"API Host" to URI(REVOLT_BASE).host,
"API Version" to (root?.revolt ?: "Unknown"),
"Runtime SDK" to Build.VERSION.SDK_INT.toString(),

View File

@ -1,3 +1,4 @@
sentry.dsn=
sentry.upload_mappings=true
build.debug.app_name=
build.debug.app_name=
build.flavour_id=ZZUU