Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2020-05-03 18:14:25 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
98832a6bc621b1353141c9a6df21a0c3a61b5cdc
98832a6b
1 parent
e79b62c3
Update java/swift code style
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
printing/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
printing/macos/Flutter/GeneratedPluginRegistrant.swift
printing/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
View file @
98832a6
...
...
@@ -7,19 +7,20 @@ import net.nfet.flutter.printing.PrintingPlugin;
* Generated file. Do not edit.
*/
public
final
class
GeneratedPluginRegistrant
{
public
static
void
registerWith
(
PluginRegistry
registry
)
{
if
(
alreadyRegisteredWith
(
registry
))
{
return
;
public
static
void
registerWith
(
PluginRegistry
registry
)
{
if
(
alreadyRegisteredWith
(
registry
))
{
return
;
}
PrintingPlugin
.
registerWith
(
registry
.
registrarFor
(
"net.nfet.flutter.printing.PrintingPlugin"
));
}
PrintingPlugin
.
registerWith
(
registry
.
registrarFor
(
"net.nfet.flutter.printing.PrintingPlugin"
));
}
private
static
boolean
alreadyRegisteredWith
(
PluginRegistry
registry
)
{
final
String
key
=
GeneratedPluginRegistrant
.
class
.
getCanonicalName
();
if
(
registry
.
hasPlugin
(
key
))
{
return
true
;
private
static
boolean
alreadyRegisteredWith
(
PluginRegistry
registry
)
{
final
String
key
=
GeneratedPluginRegistrant
.
class
.
getCanonicalName
();
if
(
registry
.
hasPlugin
(
key
))
{
return
true
;
}
registry
.
registrarFor
(
key
);
return
false
;
}
registry
.
registrarFor
(
key
);
return
false
;
}
}
...
...
printing/macos/Flutter/GeneratedPluginRegistrant.swift
View file @
98832a6
...
...
@@ -8,5 +8,5 @@ import Foundation
import
printing
func
RegisterGeneratedPlugins
(
registry
:
FlutterPluginRegistry
)
{
PrintingPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"PrintingPlugin"
))
PrintingPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"PrintingPlugin"
))
}
...
...
Please
register
or
login
to post a comment