mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +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, _) =>
|
||||
getJavascriptRuntime().evaluateAsync(positionalArgs[0] as String),
|
||||
);
|
||||
interpreter.registertopLevelFunction(
|
||||
'evalJsSync',
|
||||
(visitor, positionalArgs, namedArgs, _) =>
|
||||
getJavascriptRuntime().evaluate(positionalArgs[0] as String),
|
||||
);
|
||||
interpreter.registertopLevelFunction(
|
||||
'regExp',
|
||||
(visitor, positionalArgs, namedArgs, _) => MBridge.regExp(
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class CargoKitPlugin implements Plugin<Project> {
|
|||
private Plugin _findFlutterPlugin(Map projects) {
|
||||
for (project in projects) {
|
||||
for (plugin in project.value.getPlugins()) {
|
||||
if (plugin.class.name == "FlutterPlugin") {
|
||||
if (plugin.class.name == "com.flutter.gradle.FlutterPlugin") {
|
||||
return plugin;
|
||||
}
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ class CargoKitPlugin implements Plugin<Project> {
|
|||
def jniLibs = project.android.sourceSets.maybeCreate(buildType).jniLibs;
|
||||
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
|
||||
if (buildType == "debug") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue