feat(pwa) update generated Android project
This commit is contained in:
parent
4762d5a153
commit
a7fa9d8a97
|
@ -24,12 +24,12 @@ def twaManifest = [
|
||||||
launchUrl: '/', // The start path for the TWA. Must be relative to the domain.
|
launchUrl: '/', // The start path for the TWA. Must be relative to the domain.
|
||||||
name: 'Jitsi Meet', // The application name.
|
name: 'Jitsi Meet', // The application name.
|
||||||
launcherName: 'Jitsi Meet', // The name shown on the Android Launcher.
|
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.
|
navigationColor: '#000000', // The color used for the navigation bar.
|
||||||
navigationColorDark: '#000000', // The color used for the dark navbar.
|
navigationColorDark: '#000000', // The color used for the dark navbar.
|
||||||
navigationDividerColor: '#000000', // The navbar divider color.
|
navigationDividerColor: '#000000', // The navbar divider color.
|
||||||
navigationDividerColorDark: '#000000', // The dark 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.
|
enableNotifications: false, // Set to true to enable notification delegation.
|
||||||
// Every shortcut must include the following fields:
|
// Every shortcut must include the following fields:
|
||||||
// - name: String that will show up in the shortcut.
|
// - name: String that will show up in the shortcut.
|
||||||
|
@ -46,14 +46,20 @@ def twaManifest = [
|
||||||
enableSiteSettingsShortcut: 'true',
|
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 {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.jitsi.meet"
|
applicationId "org.jitsi.meet"
|
||||||
minSdkVersion 19
|
minSdkVersion 19
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 1
|
versionCode vcode
|
||||||
versionName "1"
|
versionName "20.5.0"
|
||||||
|
|
||||||
// The name for the application
|
// The name for the application
|
||||||
resValue "string", "appName", twaManifest.name
|
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
|
// 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
|
// 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.
|
// 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
|
// The hostname is used when building the intent-filter, so the TWA is able to
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<uses-feature android:name="org.chromium.arc" android:required="true" />
|
||||||
|
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name="Application"
|
android:name="Application"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
#Wed Oct 14 15:52:23 CEST 2020
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
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
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
"path": "./jitsi-upload.keystore",
|
"path": "./jitsi-upload.keystore",
|
||||||
"alias": "upload"
|
"alias": "upload"
|
||||||
},
|
},
|
||||||
"appVersionName": "1",
|
"appVersionName": "20.5.0",
|
||||||
"appVersionCode": 1,
|
"appVersionCode": 3,
|
||||||
"shortcuts": [],
|
"shortcuts": [],
|
||||||
"generatorApp": "bubblewrap-cli",
|
"generatorApp": "bubblewrap-cli",
|
||||||
"webManifestUrl": "https://meet.jit.si/static/pwa/manifest.json",
|
"webManifestUrl": "https://meet.jit.si/static/pwa/manifest.json",
|
||||||
|
@ -27,5 +27,5 @@
|
||||||
"features": {},
|
"features": {},
|
||||||
"enableSiteSettingsShortcut": true,
|
"enableSiteSettingsShortcut": true,
|
||||||
"isChromeOSOnly": true,
|
"isChromeOSOnly": true,
|
||||||
"appVersion": "1"
|
"appVersion": "20.5.0"
|
||||||
}
|
}
|
Loading…
Reference in New Issue