feat(pwa) update generated Android project

This commit is contained in:
Saúl Ibarra Corretgé 2020-10-14 15:48:18 +02:00 committed by Saúl Ibarra Corretgé
parent 4762d5a153
commit a7fa9d8a97
4 changed files with 27 additions and 18 deletions

View File

@ -24,12 +24,12 @@ def twaManifest = [
launchUrl: '/', // The start path for the TWA. Must be relative to the domain.
name: 'Jitsi Meet', // The application name.
launcherName: 'Jitsi Meet', // The name shown on the Android Launcher.
themeColor: '#2A3A4B', // The color used for the status bar.
themeColor: '#17A0DB', // The color used for the status bar.
navigationColor: '#000000', // The color used for the navigation bar.
navigationColorDark: '#000000', // The color used for the dark navbar.
navigationDividerColor: '#000000', // The navbar divider color.
navigationDividerColorDark: '#000000', // The dark navbar divider color.
backgroundColor: '#2A3A4B', // The color used for the splash screen background.
backgroundColor: '#17A0DB', // The color used for the splash screen background.
enableNotifications: false, // Set to true to enable notification delegation.
// Every shortcut must include the following fields:
// - name: String that will show up in the shortcut.
@ -46,14 +46,20 @@ def twaManifest = [
enableSiteSettingsShortcut: 'true',
]
// Use the number of seconds/10 since Jan 1 2019 as the versionCode.
// This lets us upload a new build at most every 10 seconds for the
// next ~680 years.
// https://stackoverflow.com/a/38643838
def vcode = (int) (((new Date().getTime() / 1000) - 1546297200) / 10)
android {
compileSdkVersion 29
defaultConfig {
applicationId "org.jitsi.meet"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1"
versionCode vcode
versionName "20.5.0"
// The name for the application
resValue "string", "appName", twaManifest.name
@ -69,7 +75,7 @@ android {
// The URL the Web Manifest for the Progressive Web App that the TWA points to. This
// is used by Chrome OS to open the Web version of the PWA instead of the TWA, as it
// will probably give a better user experience for non-mobile devices.
resValue "string", "webManifestUrl", 'https://alpha.jitsi.net/static/pwa/manifest.json'
resValue "string", "webManifestUrl", 'https://meet.jit.si/static/pwa/manifest.json'
// The hostname is used when building the intent-filter, so the TWA is able to

View File

@ -25,6 +25,8 @@
<uses-feature android:name="org.chromium.arc" android:required="true" />
<application
android:name="Application"

View File

@ -1,5 +1,6 @@
#Wed Oct 14 15:52:23 CEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

View File

@ -18,8 +18,8 @@
"path": "./jitsi-upload.keystore",
"alias": "upload"
},
"appVersionName": "1",
"appVersionCode": 1,
"appVersionName": "20.5.0",
"appVersionCode": 3,
"shortcuts": [],
"generatorApp": "bubblewrap-cli",
"webManifestUrl": "https://meet.jit.si/static/pwa/manifest.json",
@ -27,5 +27,5 @@
"features": {},
"enableSiteSettingsShortcut": true,
"isChromeOSOnly": true,
"appVersion": "1"
"appVersion": "20.5.0"
}