|
@@ -46,20 +46,14 @@ def twaManifest = [
|
46
|
46
|
enableSiteSettingsShortcut: 'true',
|
47
|
47
|
]
|
48
|
48
|
|
49
|
|
-// Use the number of seconds/10 since Jan 1 2019 as the versionCode.
|
50
|
|
-// This lets us upload a new build at most every 10 seconds for the
|
51
|
|
-// next ~680 years.
|
52
|
|
-// https://stackoverflow.com/a/38643838
|
53
|
|
-def vcode = (int) (((new Date().getTime() / 1000) - 1546297200) / 10)
|
54
|
|
-
|
55
|
49
|
android {
|
56
|
50
|
compileSdkVersion 29
|
57
|
51
|
defaultConfig {
|
58
|
52
|
applicationId "org.jitsi.meet"
|
59
|
53
|
minSdkVersion 19
|
60
|
54
|
targetSdkVersion 29
|
61
|
|
- versionCode vcode
|
62
|
|
- versionName "20.5.0"
|
|
55
|
+ versionCode 2000000000
|
|
56
|
+ versionName "1.0.0"
|
63
|
57
|
|
64
|
58
|
// The name for the application
|
65
|
59
|
resValue "string", "appName", twaManifest.name
|
|
@@ -71,12 +65,12 @@ android {
|
71
|
65
|
def launchUrl = "https://" + twaManifest.hostName + twaManifest.launchUrl
|
72
|
66
|
resValue "string", "launchUrl", launchUrl
|
73
|
67
|
|
74
|
|
-
|
|
68
|
+
|
75
|
69
|
// The URL the Web Manifest for the Progressive Web App that the TWA points to. This
|
76
|
70
|
// is used by Chrome OS to open the Web version of the PWA instead of the TWA, as it
|
77
|
71
|
// will probably give a better user experience for non-mobile devices.
|
78
|
|
- resValue "string", "webManifestUrl", 'https://meet.jit.si/static/pwa/manifest.json'
|
79
|
|
-
|
|
72
|
+ resValue "string", "webManifestUrl", 'https://meet.jit.si/manifest.json'
|
|
73
|
+
|
80
|
74
|
|
81
|
75
|
// The hostname is used when building the intent-filter, so the TWA is able to
|
82
|
76
|
// handle Intents to open https://svgomg.firebaseapp.com.
|
|
@@ -106,13 +100,13 @@ android {
|
106
|
100
|
// compile. If not set, the navigation bar color defaults to #000000 - black.
|
107
|
101
|
resValue "color", "navigationColorDark", twaManifest.navigationColorDark
|
108
|
102
|
|
109
|
|
- // This attribute sets the navbar divider color for the TWA. It can be either
|
110
|
|
- // set here or in `res/values/colors.xml`. Setting in both places is an error and the app
|
|
103
|
+ // This attribute sets the navbar divider color for the TWA. It can be either
|
|
104
|
+ // set here or in `res/values/colors.xml`. Setting in both places is an error and the app
|
111
|
105
|
// will not compile. If not set, the divider color defaults to #00000000 - transparent.
|
112
|
106
|
resValue "color", "navigationDividerColor", twaManifest.navigationDividerColor
|
113
|
107
|
|
114
|
|
- // This attribute sets the dark navbar divider color for the TWA. It can be either
|
115
|
|
- // set here or in `res/values/colors.xml`. Setting in both places is an error and the
|
|
108
|
+ // This attribute sets the dark navbar divider color for the TWA. It can be either
|
|
109
|
+ // set here or in `res/values/colors.xml`. Setting in both places is an error and the
|
116
|
110
|
//app will not compile. If not set, the divider color defaults to #000000 - black.
|
117
|
111
|
resValue "color", "navigationDividerColorDark", twaManifest.navigationDividerColorDark
|
118
|
112
|
|
|
@@ -192,11 +186,11 @@ task generateShorcutsFile {
|
192
|
186
|
preBuild.dependsOn(generateShorcutsFile)
|
193
|
187
|
|
194
|
188
|
repositories {
|
195
|
|
-
|
|
189
|
+
|
196
|
190
|
}
|
197
|
191
|
|
198
|
192
|
dependencies {
|
199
|
193
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
200
|
|
-
|
201
|
|
- implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.0.0'
|
|
194
|
+
|
|
195
|
+ implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.0.0'
|
202
|
196
|
}
|