Skip to content

Commit 7eb4faf

Browse files
committed
Added dependency and improved description
1 parent aa51c31 commit 7eb4faf

7 files changed

Lines changed: 77 additions & 1 deletion

File tree

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <url_launcher_linux/url_launcher_plugin.h>
910

1011
void fl_register_plugins(FlPluginRegistry* registry) {
12+
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
13+
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
14+
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
1115
}

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
url_launcher_linux
67
)
78

89
list(APPEND FLUTTER_FFI_PLUGIN_LIST

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import Foundation
77

88
import path_provider_foundation
99
import shared_preferences_foundation
10+
import url_launcher_macos
1011

1112
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1213
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1314
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
15+
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1416
}

pubspec.lock

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,70 @@ packages:
362362
url: "https://pub.dev"
363363
source: hosted
364364
version: "0.7.7"
365+
url_launcher:
366+
dependency: "direct main"
367+
description:
368+
name: url_launcher
369+
sha256: f6a7e5c4835bb4e3026a04793a4199ca2d14c739ec378fdfe23fc8075d0439f8
370+
url: "https://pub.dev"
371+
source: hosted
372+
version: "6.3.2"
373+
url_launcher_android:
374+
dependency: transitive
375+
description:
376+
name: url_launcher_android
377+
sha256: "767344bf3063897b5cf0db830e94f904528e6dd50a6dfaf839f0abf509009611"
378+
url: "https://pub.dev"
379+
source: hosted
380+
version: "6.3.28"
381+
url_launcher_ios:
382+
dependency: transitive
383+
description:
384+
name: url_launcher_ios
385+
sha256: cfde38aa257dae62ffe79c87fab20165dfdf6988c1d31b58ebf59b9106062aad
386+
url: "https://pub.dev"
387+
source: hosted
388+
version: "6.3.6"
389+
url_launcher_linux:
390+
dependency: transitive
391+
description:
392+
name: url_launcher_linux
393+
sha256: d5e14138b3bc193a0f63c10a53c94b91d399df0512b1f29b94a043db7482384a
394+
url: "https://pub.dev"
395+
source: hosted
396+
version: "3.2.2"
397+
url_launcher_macos:
398+
dependency: transitive
399+
description:
400+
name: url_launcher_macos
401+
sha256: "368adf46f71ad3c21b8f06614adb38346f193f3a59ba8fe9a2fd74133070ba18"
402+
url: "https://pub.dev"
403+
source: hosted
404+
version: "3.2.5"
405+
url_launcher_platform_interface:
406+
dependency: transitive
407+
description:
408+
name: url_launcher_platform_interface
409+
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
410+
url: "https://pub.dev"
411+
source: hosted
412+
version: "2.3.2"
413+
url_launcher_web:
414+
dependency: transitive
415+
description:
416+
name: url_launcher_web
417+
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
418+
url: "https://pub.dev"
419+
source: hosted
420+
version: "2.4.1"
421+
url_launcher_windows:
422+
dependency: transitive
423+
description:
424+
name: url_launcher_windows
425+
sha256: "712c70ab1b99744ff066053cbe3e80c73332b38d46e5e945c98689b2e66fc15f"
426+
url: "https://pub.dev"
427+
source: hosted
428+
version: "3.1.5"
365429
vector_math:
366430
dependency: transitive
367431
description:

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: code_juge
2-
description: "A new Flutter project."
2+
description: "A simple code judger, which helps students to learn programming by heart."
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
55
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
@@ -30,6 +30,7 @@ environment:
3030
dependencies:
3131
flutter:
3232
sdk: flutter
33+
url_launcher: ^6.3.2
3334

3435
# The following adds the Cupertino Icons font to your application.
3536
# Use with the CupertinoIcons class for iOS style icons.

windows/flutter/generated_plugin_registrant.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <url_launcher_windows/url_launcher_windows.h>
910

1011
void RegisterPlugins(flutter::PluginRegistry* registry) {
12+
UrlLauncherWindowsRegisterWithRegistrar(
13+
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
1114
}

windows/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
url_launcher_windows
67
)
78

89
list(APPEND FLUTTER_FFI_PLUGIN_LIST

0 commit comments

Comments
 (0)