Skip to content

Commit

Permalink
Default homepages for China releases
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeerias committed Feb 19, 2024
1 parent 1a3f0ec commit 5fc4244
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ android {
buildConfigField "Boolean", "FXA_USE_CHINA_SERVER", "true"
buildConfigField "Boolean", "WEBVIEW_IN_PHONE_UI", "true"
buildConfigField "Boolean", "CN_FIRST_RUN_IN_PHONE_UI", "true"
resValue 'string', 'HOMEPAGE_URL', 'https://wolvic.com/zh/start/pico.html'
}
}

Expand Down Expand Up @@ -820,6 +819,17 @@ android.applicationVariants.all { variant ->
variant.buildConfigField "String[]", "SPEECH_SERVICES", "{ com.igalia.wolvic.speech.SpeechServices.HUAWEI_ASR }"
}

// Default homepages for China releases.
if (store == "mainlandChina") {
if (platform.toLowerCase().startsWith('hvr')) {
variant.buildConfigField 'String', 'HOMEPAGE_URL', 'https://wolvic.com/zh/start/index.html'
} else if (platform.toLowerCase().startsWith('visionglass')) {
variant.buildConfigField 'String', 'HOMEPAGE_URL', 'https://wolvic.com/zh/start/hvg.html'
} else if (platform.toLowerCase().startsWith('pico')) {
variant.buildConfigField 'String', 'HOMEPAGE_URL', 'https://wolvic.com/zh/start/pico.html'
}
}

// Append "Dev" to the app name for debug builds. We do it by directly modifying the resource
// value so that this is visible from inside the app.
if (variant.buildType.name == "debug") {
Expand Down

0 comments on commit 5fc4244

Please sign in to comment.