parent
b68329b2de
commit
a2fcdf82e6
|
|
@ -15,6 +15,7 @@ jobs:
|
||||||
RVX_ANALYSIS_ENABLED: ${{ vars.RVX_ANALYSIS_ENABLED }}
|
RVX_ANALYSIS_ENABLED: ${{ vars.RVX_ANALYSIS_ENABLED }}
|
||||||
RVX_ANALYSIS_BASEURL: ${{ vars.RVX_ANALYSIS_BASEURL }}
|
RVX_ANALYSIS_BASEURL: ${{ vars.RVX_ANALYSIS_BASEURL }}
|
||||||
RVX_DEBUG_APP_NAME: ${{ vars.RVX_DEBUG_APP_NAME }}
|
RVX_DEBUG_APP_NAME: ${{ vars.RVX_DEBUG_APP_NAME }}
|
||||||
|
RVX_BUILD_FLAVOUR_ID: ${{ vars.RVX_BUILD_FLAVOUR_ID }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ android {
|
||||||
shrinkResources true
|
shrinkResources true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
buildConfigField "String", "SENTRY_DSN", "\"${buildproperty('sentry.dsn', 'RVX_SENTRY_DSN')}\""
|
buildConfigField "String", "SENTRY_DSN", "\"${buildproperty('sentry.dsn', 'RVX_SENTRY_DSN')}\""
|
||||||
|
buildConfigField "String", "FLAVOUR_ID", "\"${buildproperty('build.flavour_id', 'RVX_BUILD_FLAVOUR_ID')}\""
|
||||||
}
|
}
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
|
|
@ -125,6 +126,7 @@ android {
|
||||||
resValue "string", "app_name", buildproperty('build.debug.app_name', 'RVX_DEBUG_APP_NAME')
|
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", "SENTRY_DSN", "\"${buildproperty('sentry.dsn', 'RVX_SENTRY_DSN')}\""
|
||||||
|
buildConfigField "String", "FLAVOUR_ID", "\"${buildproperty('build.flavour_id', 'RVX_BUILD_FLAVOUR_ID')}\""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ class AboutViewModel : ViewModel() {
|
||||||
return mapOf(
|
return mapOf(
|
||||||
"App ID" to BuildConfig.APPLICATION_ID,
|
"App ID" to BuildConfig.APPLICATION_ID,
|
||||||
"App Version" to BuildConfig.VERSION_NAME,
|
"App Version" to BuildConfig.VERSION_NAME,
|
||||||
|
"App Type" to BuildConfig.FLAVOUR_ID,
|
||||||
"API Host" to URI(REVOLT_BASE).host,
|
"API Host" to URI(REVOLT_BASE).host,
|
||||||
"API Version" to (root?.revolt ?: "Unknown"),
|
"API Version" to (root?.revolt ?: "Unknown"),
|
||||||
"Runtime SDK" to Build.VERSION.SDK_INT.toString(),
|
"Runtime SDK" to Build.VERSION.SDK_INT.toString(),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
sentry.dsn=
|
sentry.dsn=
|
||||||
sentry.upload_mappings=true
|
sentry.upload_mappings=true
|
||||||
build.debug.app_name=
|
build.debug.app_name=
|
||||||
|
build.flavour_id=ZZUU
|
||||||
Loading…
Reference in New Issue