Skip to content

Commit 27b847e

Browse files
FLUT-7164-[feature]: Modifed the pubspec file
1 parent 0d4f16d commit 27b847e

9 files changed

+78
-104
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
11
package io.flutter.plugins;
22

3-
import io.flutter.plugin.common.PluginRegistry;
4-
import io.flutter.plugins.pathprovider.PathProviderPlugin;
5-
import io.flutter.plugins.urllauncher.UrlLauncherPlugin;
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
68

79
/**
810
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
913
*/
14+
@Keep
1015
public final class GeneratedPluginRegistrant {
11-
public static void registerWith(PluginRegistry registry) {
12-
if (alreadyRegisteredWith(registry)) {
13-
return;
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin path_provider_android, io.flutter.plugins.pathprovider.PathProviderPlugin", e);
1422
}
15-
PathProviderPlugin.registerWith(registry.registrarFor("io.flutter.plugins.pathprovider.PathProviderPlugin"));
16-
UrlLauncherPlugin.registerWith(registry.registrarFor("io.flutter.plugins.urllauncher.UrlLauncherPlugin"));
17-
}
18-
19-
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
20-
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
21-
if (registry.hasPlugin(key)) {
22-
return true;
23+
try {
24+
flutterEngine.getPlugins().add(new com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin());
25+
} catch(Exception e) {
26+
Log.e(TAG, "Error registering plugin syncfusion_flutter_pdfviewer, com.syncfusion.flutter.pdfviewer.SyncfusionFlutterPdfViewerPlugin", e);
27+
}
28+
try {
29+
flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin());
30+
} catch(Exception e) {
31+
Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e);
2332
}
24-
registry.registrarFor(key);
25-
return false;
2633
}
2734
}

android/local.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sdk.dir=C:\\Users\\SriramKiranSenthilku\\AppData\\Local\\Android\\sdk
2-
flutter.sdk=C:\\src\\flutter
1+
sdk.dir=C:\\Users\\HariharasudhanKanaga\\AppData\\Local\\Android\\Sdk
2+
flutter.sdk=D:\\flutter_windows_3.0.5-stable\\flutter
33
flutter.buildMode=debug
44
flutter.versionName=18.1.42

linux/flutter/generated_plugin_registrant.cc

+6
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
// Generated file. Do not edit.
33
//
44

5+
// clang-format off
6+
57
#include "generated_plugin_registrant.h"
68

9+
#include <desktop_window/desktop_window_plugin.h>
710
#include <url_launcher_linux/url_launcher_plugin.h>
811

912
void fl_register_plugins(FlPluginRegistry* registry) {
13+
g_autoptr(FlPluginRegistrar) desktop_window_registrar =
14+
fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWindowPlugin");
15+
desktop_window_plugin_register_with_registrar(desktop_window_registrar);
1016
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
1117
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
1218
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);

linux/flutter/generated_plugin_registrant.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Generated file. Do not edit.
33
//
44

5+
// clang-format off
6+
57
#ifndef GENERATED_PLUGIN_REGISTRANT_
68
#define GENERATED_PLUGIN_REGISTRANT_
79

linux/flutter/generated_plugins.cmake

+9
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
desktop_window
67
url_launcher_linux
78
)
89

10+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
11+
)
12+
913
set(PLUGIN_BUNDLED_LIBRARIES)
1014

1115
foreach(plugin ${FLUTTER_PLUGIN_LIST})
@@ -14,3 +18,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
1418
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
1519
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
1620
endforeach(plugin)
21+
22+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
23+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
24+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
25+
endforeach(ffi_plugin)

macos/Flutter/GeneratedPluginRegistrant.swift

+4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
import FlutterMacOS
66
import Foundation
77

8+
import desktop_window
89
import path_provider_macos
10+
import syncfusion_pdfviewer_macos
911
import url_launcher_macos
1012

1113
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
14+
DesktopWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWindowPlugin"))
1215
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
16+
SyncfusionFlutterPdfViewerPlugin.register(with: registry.registrar(forPlugin: "SyncfusionFlutterPdfViewerPlugin"))
1317
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1418
}

pubspec.yaml

+16-86
Original file line numberDiff line numberDiff line change
@@ -18,91 +18,21 @@ dependencies:
1818
path_provider_macos: ^2.0.0
1919
desktop_window: 0.4.0
2020
intl: ^0.17.0
21-
22-
syncfusion_localizations:
23-
git:
24-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-localizations
25-
path: flutter_localizations/syncfusion_localizations
26-
branch: release/20.4.0.1
27-
ref: release/20.4.0.1
28-
syncfusion_flutter_datagrid_export:
29-
git:
30-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-datagrid-export
31-
path: flutter_datagrid_export/syncfusion_flutter_datagrid_export
32-
branch: release/20.4.0.1
33-
ref: release/20.4.0.1
34-
syncfusion_flutter_calendar:
35-
git:
36-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-calendar
37-
path: flutter_calendar/syncfusion_flutter_calendar
38-
branch: release/20.4.0.1
39-
ref: release/20.4.0.1
40-
syncfusion_flutter_datepicker:
41-
git:
42-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-datepicker
43-
path: flutter_datepicker/syncfusion_flutter_datepicker
44-
branch: release/20.4.0.1
45-
ref: release/20.4.0.1
46-
syncfusion_flutter_charts:
47-
git:
48-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-charts
49-
path: flutter_charts/syncfusion_flutter_charts
50-
branch: release/20.4.0.1
51-
ref: release/20.4.0.1
52-
syncfusion_flutter_gauges:
53-
git:
54-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-gauges
55-
path: flutter_gauges/syncfusion_flutter_gauges
56-
branch: release/20.4.0.1
57-
ref: release/20.4.0.1
58-
syncfusion_flutter_sliders:
59-
git:
60-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-sliders
61-
path: flutter_sliders/syncfusion_flutter_sliders
62-
branch: release/20.4.0.1
63-
ref: release/20.4.0.1
64-
syncfusion_flutter_pdf:
65-
git:
66-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-pdf
67-
path: flutter_pdf/syncfusion_flutter_pdf
68-
branch: release/20.4.0.1
69-
ref: release/20.4.0.1
70-
syncfusion_flutter_barcodes:
71-
git:
72-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-barcodes
73-
path: flutter_barcodes/syncfusion_flutter_barcodes
74-
branch: release/20.4.0.1
75-
ref: release/20.4.0.1
76-
syncfusion_officechart:
77-
git:
78-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-officechart
79-
path: flutter_officechart/syncfusion_flutter_officechart
80-
branch: release/20.4.0.1
81-
ref: release/20.4.0.1
82-
syncfusion_flutter_maps:
83-
git:
84-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-maps
85-
path: flutter_maps/syncfusion_flutter_maps
86-
branch: release/20.4.0.1
87-
ref: release/20.4.0.1
88-
syncfusion_flutter_signaturepad:
89-
git:
90-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-signaturepad
91-
path: flutter_signaturepad/syncfusion_flutter_signaturepad
92-
branch: release/20.4.0.1
93-
ref: release/20.4.0.1
94-
syncfusion_flutter_pdfviewer:
95-
git:
96-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-pdfviewer
97-
path: flutter_pdfviewer/syncfusion_flutter_pdfviewer
98-
branch: release/20.4.0.1
99-
ref: release/20.4.0.1
100-
syncfusion_flutter_treemap:
101-
git:
102-
url: https://SyncfusionBuild:[email protected]/essential-studio/flutter-treemap
103-
path: flutter_treemap/syncfusion_flutter_treemap
104-
branch: release/20.4.0.1
105-
ref: release/20.4.0.1
21+
22+
syncfusion_localizations: ^20.4.38
23+
syncfusion_flutter_datagrid_export: ^20.4.38-beta
24+
syncfusion_flutter_calendar: ^20.4.38
25+
syncfusion_flutter_datepicker: ^20.4.38
26+
syncfusion_flutter_charts: ^20.4.38
27+
syncfusion_flutter_gauges: ^20.4.38
28+
syncfusion_flutter_sliders: ^20.4.38
29+
syncfusion_flutter_pdf: ^20.4.38
30+
syncfusion_flutter_barcodes: ^20.4.38
31+
syncfusion_officechart: ^20.4.38-beta
32+
syncfusion_flutter_maps: ^20.4.38
33+
syncfusion_flutter_signaturepad: ^20.4.38
34+
syncfusion_flutter_pdfviewer: ^20.4.38-beta
35+
syncfusion_flutter_treemap: ^20.4.38-beta
10636

10737
flutter:
10838
uses-material-design: true
@@ -147,4 +77,4 @@ flutter:
14777
- asset: assets/fonts/Roboto-Medium.ttf
14878
- family: Roboto-Regular
14979
fonts:
150-
- asset: assets/fonts/Roboto-Regular.ttf
80+
- asset: assets/fonts/Roboto-Regular.ttf

windows/flutter/generated_plugin_registrant.cc

+6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66

77
#include "generated_plugin_registrant.h"
88

9+
#include <desktop_window/desktop_window_plugin.h>
10+
#include <syncfusion_pdfviewer_windows/syncfusion_pdfviewer_windows_plugin.h>
911
#include <url_launcher_windows/url_launcher_windows.h>
1012

1113
void RegisterPlugins(flutter::PluginRegistry* registry) {
14+
DesktopWindowPluginRegisterWithRegistrar(
15+
registry->GetRegistrarForPlugin("DesktopWindowPlugin"));
16+
SyncfusionPdfviewerWindowsPluginRegisterWithRegistrar(
17+
registry->GetRegistrarForPlugin("SyncfusionPdfviewerWindowsPlugin"));
1218
UrlLauncherWindowsRegisterWithRegistrar(
1319
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
1420
}

windows/flutter/generated_plugins.cmake

+10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
#
44

55
list(APPEND FLUTTER_PLUGIN_LIST
6+
desktop_window
7+
syncfusion_pdfviewer_windows
68
url_launcher_windows
79
)
810

11+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
12+
)
13+
914
set(PLUGIN_BUNDLED_LIBRARIES)
1015

1116
foreach(plugin ${FLUTTER_PLUGIN_LIST})
@@ -14,3 +19,8 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
1419
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
1520
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
1621
endforeach(plugin)
22+
23+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
24+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
25+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
26+
endforeach(ffi_plugin)

0 commit comments

Comments
 (0)