mirror of
https://github.com/NoCrypt/migu.git
synced 2026-05-14 05:50:38 +00:00
Merge upstream
This commit is contained in:
parent
5620a99776
commit
c9617a1665
9 changed files with 1105 additions and 5653 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"npm.exclude": "**/git_modules/**"
|
"npm.exclude": "**/git_modules/**",
|
||||||
|
"java.configuration.updateBuildConfiguration": "interactive"
|
||||||
}
|
}
|
||||||
|
|
@ -13,7 +13,7 @@ versions.each (code) -> {
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace "watch.migu"
|
namespace "watch.migu"
|
||||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
compileSdk rootProject.ext.compileSdkVersion
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "watch.migu"
|
applicationId "watch.migu"
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@
|
||||||
<!-- Permissions -->
|
<!-- Permissions -->
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||||
<uses-feature android:name="android.software.leanback" android:required="false" />
|
<uses-feature android:name="android.software.leanback" android:required="false" />
|
||||||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,30 @@
|
||||||
package watch.migu;
|
package watch.migu;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.webkit.ServiceWorkerClient;
|
||||||
|
import android.webkit.ServiceWorkerController;
|
||||||
|
import android.webkit.WebResourceRequest;
|
||||||
|
import android.webkit.WebResourceResponse;
|
||||||
import com.getcapacitor.BridgeActivity;
|
import com.getcapacitor.BridgeActivity;
|
||||||
|
|
||||||
public class MainActivity extends BridgeActivity {}
|
public class MainActivity extends BridgeActivity {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
||||||
|
ServiceWorkerController swController = null;
|
||||||
|
swController = ServiceWorkerController.getInstance();
|
||||||
|
|
||||||
|
swController.setServiceWorkerClient(new ServiceWorkerClient() {
|
||||||
|
@Override
|
||||||
|
public WebResourceResponse shouldInterceptRequest(WebResourceRequest request) {
|
||||||
|
if (request.getUrl().toString().contains("index.html")) {
|
||||||
|
request.getRequestHeaders().put("Accept", "text/html");
|
||||||
|
}
|
||||||
|
return bridge.getLocalServer().shouldInterceptRequest(request);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,13 +2,13 @@ ext {
|
||||||
minSdkVersion = 22
|
minSdkVersion = 22
|
||||||
compileSdkVersion = 34
|
compileSdkVersion = 34
|
||||||
targetSdkVersion = 34
|
targetSdkVersion = 34
|
||||||
androidxActivityVersion = '1.7.0'
|
androidxActivityVersion = '1.8.0'
|
||||||
androidxAppCompatVersion = '1.6.1'
|
androidxAppCompatVersion = '1.6.1'
|
||||||
androidxCoordinatorLayoutVersion = '1.2.0'
|
androidxCoordinatorLayoutVersion = '1.2.0'
|
||||||
androidxCoreVersion = '1.10.0'
|
androidxCoreVersion = '1.12.0'
|
||||||
androidxFragmentVersion = '1.5.6'
|
androidxFragmentVersion = '1.6.2'
|
||||||
coreSplashScreenVersion = '1.0.0'
|
coreSplashScreenVersion = '1.0.1'
|
||||||
androidxWebkitVersion = '1.6.1'
|
androidxWebkitVersion = '1.9.0'
|
||||||
junitVersion = '4.13.2'
|
junitVersion = '4.13.2'
|
||||||
androidxJunitVersion = '1.1.5'
|
androidxJunitVersion = '1.1.5'
|
||||||
androidxEspressoCoreVersion = '3.5.1'
|
androidxEspressoCoreVersion = '3.5.1'
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ const config = {
|
||||||
keystorePath: './watch.migu',
|
keystorePath: './watch.migu',
|
||||||
keystorePassword: '',
|
keystorePassword: '',
|
||||||
keystoreAlias: 'watch.migu'
|
keystoreAlias: 'watch.migu'
|
||||||
}
|
},
|
||||||
|
webContentsDebuggingEnabled: true
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
SplashScreen: { launchShowDuration: 0 },
|
SplashScreen: { launchShowDuration: 0 },
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@capacitor/assets": "github:thaunknown/capacitor-assets",
|
"@capacitor/assets": "github:thaunknown/capacitor-assets",
|
||||||
|
"@capacitor/cli": "^6.1.1",
|
||||||
"cordova-res": "^0.15.4",
|
"cordova-res": "^0.15.4",
|
||||||
"nodejs-mobile-gyp": "^0.3.1",
|
"nodejs-mobile-gyp": "^0.3.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
|
|
@ -26,16 +27,15 @@
|
||||||
"webpack-merge": "^5.10.0"
|
"webpack-merge": "^5.10.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@capacitor/android": "^5.5.1",
|
"@capacitor/android": "^6.1.1",
|
||||||
"@capacitor/app": "^5.0.6",
|
"@capacitor/app": "^6.0.0",
|
||||||
"@capacitor/browser": "^5.1.0",
|
"@capacitor/browser": "^6.0.1",
|
||||||
"@capacitor/cli": "^5.5.1",
|
"@capacitor/core": "^6.1.1",
|
||||||
"@capacitor/core": "^5.5.1",
|
"@capacitor/ios": "^6.1.1",
|
||||||
"@capacitor/ios": "^5.5.1",
|
"@capacitor/local-notifications": "^6.0.0",
|
||||||
"@capacitor/local-notifications": "5.0.8",
|
"@capacitor/status-bar": "^6.0.0",
|
||||||
"@capacitor/status-bar": "^5.0.6",
|
|
||||||
"capacitor-nodejs": "https://github.com/funniray/Capacitor-NodeJS/releases/download/nodejs-18/capacitor-nodejs-1.0.0-beta.6.tgz",
|
"capacitor-nodejs": "https://github.com/funniray/Capacitor-NodeJS/releases/download/nodejs-18/capacitor-nodejs-1.0.0-beta.6.tgz",
|
||||||
"capacitor-plugin-safe-area": "^2.0.5",
|
"capacitor-plugin-safe-area": "^2.0.6",
|
||||||
"common": "workspace:*",
|
"common": "workspace:*",
|
||||||
"cordova-plugin-navigationbar-color": "^0.1.0",
|
"cordova-plugin-navigationbar-color": "^0.1.0",
|
||||||
"cordova-plugin-pip": "^0.0.2",
|
"cordova-plugin-pip": "^0.0.2",
|
||||||
|
|
|
||||||
|
|
@ -1531,6 +1531,12 @@
|
||||||
.seekbar {
|
.seekbar {
|
||||||
font-size: 2rem !important;
|
font-size: 2rem !important;
|
||||||
}
|
}
|
||||||
|
.miniplayer .mobile-focus-target {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
.miniplayer .mobile-focus-target:focus-visible {
|
||||||
|
background: hsla(209, 100%, 55%, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
@media (pointer: none), (pointer: coarse) {
|
@media (pointer: none), (pointer: coarse) {
|
||||||
.bottom .ctrl[data-name='playPause'],
|
.bottom .ctrl[data-name='playPause'],
|
||||||
|
|
@ -1555,12 +1561,6 @@
|
||||||
.toggle-fullscreen {
|
.toggle-fullscreen {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
.miniplayer .mobile-focus-target {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
.miniplayer .mobile-focus-target:focus-visible {
|
|
||||||
background: hsla(209, 100%, 55%, 0.3);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
6682
pnpm-lock.yaml
6682
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue