mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
+
This commit is contained in:
parent
962bab1cdd
commit
6ea8d088ed
2 changed files with 7 additions and 2 deletions
|
|
@ -308,6 +308,11 @@ class MProviderBridged {
|
||||||
(visitor, positionalArgs, namedArgs, _) =>
|
(visitor, positionalArgs, namedArgs, _) =>
|
||||||
getJavascriptRuntime().evaluateAsync(positionalArgs[0] as String),
|
getJavascriptRuntime().evaluateAsync(positionalArgs[0] as String),
|
||||||
);
|
);
|
||||||
|
interpreter.registertopLevelFunction(
|
||||||
|
'evalJsSync',
|
||||||
|
(visitor, positionalArgs, namedArgs, _) =>
|
||||||
|
getJavascriptRuntime().evaluate(positionalArgs[0] as String),
|
||||||
|
);
|
||||||
interpreter.registertopLevelFunction(
|
interpreter.registertopLevelFunction(
|
||||||
'regExp',
|
'regExp',
|
||||||
(visitor, positionalArgs, namedArgs, _) => MBridge.regExp(
|
(visitor, positionalArgs, namedArgs, _) => MBridge.regExp(
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ class CargoKitPlugin implements Plugin<Project> {
|
||||||
private Plugin _findFlutterPlugin(Map projects) {
|
private Plugin _findFlutterPlugin(Map projects) {
|
||||||
for (project in projects) {
|
for (project in projects) {
|
||||||
for (plugin in project.value.getPlugins()) {
|
for (plugin in project.value.getPlugins()) {
|
||||||
if (plugin.class.name == "FlutterPlugin") {
|
if (plugin.class.name == "com.flutter.gradle.FlutterPlugin") {
|
||||||
return plugin;
|
return plugin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -128,7 +128,7 @@ class CargoKitPlugin implements Plugin<Project> {
|
||||||
def jniLibs = project.android.sourceSets.maybeCreate(buildType).jniLibs;
|
def jniLibs = project.android.sourceSets.maybeCreate(buildType).jniLibs;
|
||||||
jniLibs.srcDir(new File(cargoOutputDir))
|
jniLibs.srcDir(new File(cargoOutputDir))
|
||||||
|
|
||||||
def platforms = plugin.getTargetPlatforms().collect()
|
def platforms = com.flutter.gradle.FlutterPluginUtils.getTargetPlatforms(project).collect()
|
||||||
|
|
||||||
// Same thing addFlutterDependencies does in flutter.gradle
|
// Same thing addFlutterDependencies does in flutter.gradle
|
||||||
if (buildType == "debug") {
|
if (buildType == "debug") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue