Skip to content

Commit 232f2e6

Browse files
Thibault Brocherieuxzephylac
Thibault Brocherieux
authored andcommitted
Support Chinese URL
Support Chinese URL (go-flutter-desktop#48) Fixes go-flutter-desktop#48 Support MacShortcuts Support quick cursor move Clarification of the purpose explanation. go-flutter-desktop#54 Fixes go-flutter-desktop#54, confusing README Update README.md Fix regression caused by go-flutter-desktop#47 Feature/keyboard layout support (go-flutter-desktop#57) * Support different layout * Exported struct, user can use it in main * Renaming function (matchin new format) * Added default value for shortcuts * Removed local import (testing) * Added keyboard config * Check for optionnal keyboard * Fixed renaming * Fixed regression * new example for keyboard * Added explaination Now only send boolean Changed to boolean parameter & fixed textSelection Fixed some issue, added backspace wordTravellerKEy support wordTravellerKEy added (alt for MacOS, Ctrl for others) Update BUG.md (go-flutter-desktop#69) Removes the "task list" from the template. Add gl_proc_resolver to resolve GL procs within the GLFW context (go-flutter-desktop#71) Fix two race conditions and a type conversion mistake (go-flutter-desktop#70) GLFW callbacks: Obtaining the index of the engine using the window userPointer Engine Args: main_path and packages_path should be set null Assert that EngineOpenGL was created using NewEngineOpenGL (go-flutter-desktop#73) Update LICENSE Calculate pixel_ratio based on users' display (go-flutter-desktop#75) Update release mode flag Example: User defined Pixel Ratio Moved project (go-flutter-desktop#76) Rename a bunch of things: - import path github.com/Drakirus/go-flutter-desktop-embedder > github.com/go-flutter-desktop/go-flutter - package path go-flutter/flutter > go-flutter/embedder - package name flutter > embedder - package name gutter > flutter - embedder.EngineOpenGL > embedder.FlutterEngine - identifier flutterOGL > flutterEngine - formatted embedder.embedder_helper.c README.md: Package rename, change to introduction Fix Linux control issue Fixes go-flutter-desktop#79: cgo identifiers conflict README.md: Add version compatibility information Deprecate OptionWindowInitializer, add WindowIcon Update embedder definitions (go-flutter-desktop#81) updated stocks demo so it work with flutter 1.2.1 Update README.md (go-flutter-desktop#85) * Update README.md fixes cd path Add go.mod Fix go.mod Add codecs and a plugin structure, rework the system plugins. chore: align method receivers Add debugging values in dpi calculation README.md: Add godoc and go report card badge plugin: Add tests plugin: Add json method codec tests plugin: Add first method channel tests chore: Make lint and vet happier and fix spelling mistakes. chore: Improve identifiers .github: Update and simplify the issue template .github: Add template for plugin issues fixes: gitter link in README.md chore: adds link to plugins repo godoc: Handle doc 'MissingPluginException' Add sane defaults for assets and icudtl Remove forced pixelratio Oops, debugging leftover.. Resolve executable path for flutter_assets an icudtl.dat internal/execpath: cleanup Improve engine result handling Add support for sync method handlers Remove hover desktop setup from example go.mod: Add test dependencies Remove duplicate pixels to screencoordinates calculation Fixes go-flutter-desktop#101 .github: Add example template Fix broken tests, now using ResponseSender. README.md: Restructure and simpler getting started Remove examples Fix panic and remove glfw dependency from embedder chore: cleanup and deprecation warnings Upgrade embedder.h, implement mouse hovering, cleanup glfw cursor handling embedder: Add README.md embedder/README.md: cleanup and typo's Cleanup PointerPhaseNone Cleanup debug remnant README.md: Add mouse-over to supported features Fix go-flutter-desktop#113: Don't double-add event of pointerPhase embedder: upgrade embedder.h to flutter/engine for v1.5.4-hotfix.2 (52c7a1e849a170be4b2b2fe34142ca2c0a6fea1f) Implement pointer scrolling. Fixes go-flutter-desktop#6 Add initial implementation for system navigator pop event (go-flutter-desktop#142) Unexport PopBehaviorKind chore: Remove relic of the past Add WindowMode Option for bordreless and borderless fullscreen windows. (go-flutter-desktop#144) Add window dimension limits (go-flutter-desktop#145) * Add window dimensions limits Add renovate.json Update github.com/go-gl/glfw commit hash to e6da0ac pull origin Revert "pull origin" This reverts commit 7f1705a. feature: support for RawKeyboard events Uses the the RawKeyEventDataLinux for every platform. RawKeyEventDataLinux is the only Flutter implementation that support the GLFW Toolkit, the events data is sended as it is, no translation is made in go-flutter, everything is handled by the Flutter framework. Update README.md translate glfw.Repeat to glfw.Press to match other shell's keyevents fix comment Removed debug Removed debug Renamed var (coded = ☁️ or 😴 New way to handle keyboard New way to handle keyboard shortcut bind Fixed masking issue Fixed masking
1 parent c42c104 commit 232f2e6

File tree

228 files changed

+5544
-7472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+5544
-7472
lines changed

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,31 @@
11
---
2-
name: I have a problem with the embedder.
3-
about: You are writing an application with Flutter but the embedder is crashing,
4-
throws an exception or something looks wrong.
5-
2+
name: I have a problem with go-flutter.
3+
about: You are writing an application with Flutter but the application is
4+
crashing, throws an exception or something looks wrong.
65
---
76

8-
<!-- Thank you for trying the embedder! -->
7+
<!-- Thank you for trying go-flutter! -->
98

109
## Flutter version
1110

12-
<!-- Please tell us wich flutter version are you using -->
13-
###### `$ flutter --version`
11+
<!-- Please tell us wich flutter version are you using, we generally try to stay compatible with the beta channel. Run `flutter --version` to get the version -->
1412

1513
```
16-
Flutter x.xx.x • channel dev • https://github.com/flutter/flutter.git
14+
Flutter x.xx.x • channel beta • https://github.com/flutter/flutter.git
1715
Framework • revision xxxxxxxxxx (x weeks ago) • xxxxxxxxxxxxxxxxxxxxxxxx
1816
Engine • revision xxxxxxxxxx
1917
Tools • Dart x.x.x (build xxxxxxxxxx)
2018
```
2119

2220
## Golang errors (Optional)
2321

24-
<!-- If needed, Please tell us the output of the embedder build -->
25-
###### `$ go build main.go`
26-
<!-- Make sure you followed the README.md instructions -->
22+
<!-- If compilation fails, please tell us the output of go build -->
23+
<!-- Please make sure you followed the README.md instructions -->
2724

2825
```
2926
Golang's compiling errors
3027
```
3128

32-
## Does the prebuilt and portable version works ?
33-
34-
###### Download [Link](https://github.com/Drakirus/go-flutter-desktop-embedder/releases)
35-
- [x] Yes
36-
- [ ] No
37-
3829
## Steps to Reproduce
3930

4031
<!--

.github/ISSUE_TEMPLATE/EXAMPLE.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: I have a problem with an example
3+
about: You are trying to run an example but the application is crashing, throws an exception or something looks wrong.
4+
---
5+
6+
<!-- Thank you for trying go-flutter! -->
7+
8+
<!-- Please tell us which example you're trying to run, and the version of the examples repo that you're using -->
9+
10+
Example name: <!-- e.g.: simple_demo or stocks -->
11+
Examples repository version: <!-- Run `git rev-parse HEAD` to get the version of the examples repo -->
12+
13+
## Flutter version
14+
15+
<!-- Please tell us wich flutter version are you using, we generally try to stay compatible with the beta channel. Run `flutter --version` to get the version -->
16+
17+
```
18+
Flutter x.xx.x • channel beta • https://github.com/flutter/flutter.git
19+
Framework • revision xxxxxxxxxx (x weeks ago) • xxxxxxxxxxxxxxxxxxxxxxxx
20+
Engine • revision xxxxxxxxxx
21+
Tools • Dart x.x.x (build xxxxxxxxxx)
22+
```
23+
24+
## Golang errors (Optional)
25+
26+
<!-- If compilation fails, please tell us the output of go build -->
27+
<!-- Please make sure you followed the README.md instructions -->
28+
29+
```
30+
Golang's compiling errors
31+
```
32+
33+
## Steps to Reproduce
34+
35+
<!--
36+
Please tell us exactly how to reproduce the problem you are running into.
37+
38+
Please attach a small application (ideally just one main.dart file) that
39+
reproduces the problem. You could use https://gist.github.com/ for this.
40+
41+
If the problem is with your application's rendering, then please attach
42+
a screenshot and explain what the problem is.
43+
-->
44+
45+
1. xxx
46+
2. xxx
47+
3. xxx

.github/ISSUE_TEMPLATE/PLUGIN.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: I have a problem with a plugin.
3+
about: You are writing an application and a plugin doesn't behave as expected.
4+
---
5+
6+
<!-- Thank you for trying go-flutter! -->
7+
8+
## Flutter version
9+
10+
<!-- Please tell us wich flutter version are you using, we generally try to stay compatible with the beta channel. Run `flutter --version` to get the version -->
11+
12+
```
13+
Flutter x.xx.x • channel beta • https://github.com/flutter/flutter.git
14+
Framework • revision xxxxxxxxxx (x weeks ago) • xxxxxxxxxxxxxxxxxxxxxxxx
15+
Engine • revision xxxxxxxxxx
16+
Tools • Dart x.x.x (build xxxxxxxxxx)
17+
```
18+
19+
## Plugin version
20+
21+
<!-- Please tell us what version of the plugin package in dart you are using (pubspec.yaml) -->
22+
23+
## Go.mod file
24+
25+
<!-- Please share the contents of your application's go.mod file. Are you not using go.mod? Please give it a try. -->
26+
27+
## Golang errors (Optional)
28+
29+
<!-- If compilation fails, please tell us the output of go build -->
30+
<!-- Please make sure you followed the README.md instructions -->
31+
32+
```
33+
Golang's compiling errors
34+
```
35+
36+
## Steps to Reproduce
37+
38+
<!--
39+
Please tell us exactly how to reproduce the problem you are running into.
40+
41+
Please attach a small application (ideally just one main.dart file) that
42+
reproduces the problem. You could use https://gist.github.com/ for this.
43+
44+
If the problem is with your application's rendering, then please attach
45+
a screenshot and explain what the problem is.
46+
-->
47+
48+
1. xxx
49+
2. xxx
50+
3. xxx

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ example/stocks/stocks
3030

3131
# other crashes report:
3232
core.*
33+
34+
.vscode

LICENSE

Lines changed: 29 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,29 @@
1-
GNU LESSER GENERAL PUBLIC LICENSE
2-
Version 3, 29 June 2007
3-
4-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5-
Everyone is permitted to copy and distribute verbatim copies
6-
of this license document, but changing it is not allowed.
7-
8-
9-
This version of the GNU Lesser General Public License incorporates
10-
the terms and conditions of version 3 of the GNU General Public
11-
License, supplemented by the additional permissions listed below.
12-
13-
0. Additional Definitions.
14-
15-
As used herein, "this License" refers to version 3 of the GNU Lesser
16-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
17-
General Public License.
18-
19-
"The Library" refers to a covered work governed by this License,
20-
other than an Application or a Combined Work as defined below.
21-
22-
An "Application" is any work that makes use of an interface provided
23-
by the Library, but which is not otherwise based on the Library.
24-
Defining a subclass of a class defined by the Library is deemed a mode
25-
of using an interface provided by the Library.
26-
27-
A "Combined Work" is a work produced by combining or linking an
28-
Application with the Library. The particular version of the Library
29-
with which the Combined Work was made is also called the "Linked
30-
Version".
31-
32-
The "Minimal Corresponding Source" for a Combined Work means the
33-
Corresponding Source for the Combined Work, excluding any source code
34-
for portions of the Combined Work that, considered in isolation, are
35-
based on the Application, and not on the Linked Version.
36-
37-
The "Corresponding Application Code" for a Combined Work means the
38-
object code and/or source code for the Application, including any data
39-
and utility programs needed for reproducing the Combined Work from the
40-
Application, but excluding the System Libraries of the Combined Work.
41-
42-
1. Exception to Section 3 of the GNU GPL.
43-
44-
You may convey a covered work under sections 3 and 4 of this License
45-
without being bound by section 3 of the GNU GPL.
46-
47-
2. Conveying Modified Versions.
48-
49-
If you modify a copy of the Library, and, in your modifications, a
50-
facility refers to a function or data to be supplied by an Application
51-
that uses the facility (other than as an argument passed when the
52-
facility is invoked), then you may convey a copy of the modified
53-
version:
54-
55-
a) under this License, provided that you make a good faith effort to
56-
ensure that, in the event an Application does not supply the
57-
function or data, the facility still operates, and performs
58-
whatever part of its purpose remains meaningful, or
59-
60-
b) under the GNU GPL, with none of the additional permissions of
61-
this License applicable to that copy.
62-
63-
3. Object Code Incorporating Material from Library Header Files.
64-
65-
The object code form of an Application may incorporate material from
66-
a header file that is part of the Library. You may convey such object
67-
code under terms of your choice, provided that, if the incorporated
68-
material is not limited to numerical parameters, data structure
69-
layouts and accessors, or small macros, inline functions and templates
70-
(ten or fewer lines in length), you do both of the following:
71-
72-
a) Give prominent notice with each copy of the object code that the
73-
Library is used in it and that the Library and its use are
74-
covered by this License.
75-
76-
b) Accompany the object code with a copy of the GNU GPL and this license
77-
document.
78-
79-
4. Combined Works.
80-
81-
You may convey a Combined Work under terms of your choice that,
82-
taken together, effectively do not restrict modification of the
83-
portions of the Library contained in the Combined Work and reverse
84-
engineering for debugging such modifications, if you also do each of
85-
the following:
86-
87-
a) Give prominent notice with each copy of the Combined Work that
88-
the Library is used in it and that the Library and its use are
89-
covered by this License.
90-
91-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
92-
document.
93-
94-
c) For a Combined Work that displays copyright notices during
95-
execution, include the copyright notice for the Library among
96-
these notices, as well as a reference directing the user to the
97-
copies of the GNU GPL and this license document.
98-
99-
d) Do one of the following:
100-
101-
0) Convey the Minimal Corresponding Source under the terms of this
102-
License, and the Corresponding Application Code in a form
103-
suitable for, and under terms that permit, the user to
104-
recombine or relink the Application with a modified version of
105-
the Linked Version to produce a modified Combined Work, in the
106-
manner specified by section 6 of the GNU GPL for conveying
107-
Corresponding Source.
108-
109-
1) Use a suitable shared library mechanism for linking with the
110-
Library. A suitable mechanism is one that (a) uses at run time
111-
a copy of the Library already present on the user's computer
112-
system, and (b) will operate properly with a modified version
113-
of the Library that is interface-compatible with the Linked
114-
Version.
115-
116-
e) Provide Installation Information, but only if you would otherwise
117-
be required to provide such information under section 6 of the
118-
GNU GPL, and only to the extent that such information is
119-
necessary to install and execute a modified version of the
120-
Combined Work produced by recombining or relinking the
121-
Application with a modified version of the Linked Version. (If
122-
you use option 4d0, the Installation Information must accompany
123-
the Minimal Corresponding Source and Corresponding Application
124-
Code. If you use option 4d1, you must provide the Installation
125-
Information in the manner specified by section 6 of the GNU GPL
126-
for conveying Corresponding Source.)
127-
128-
5. Combined Libraries.
129-
130-
You may place library facilities that are a work based on the
131-
Library side by side in a single library together with other library
132-
facilities that are not Applications and are not covered by this
133-
License, and convey such a combined library under terms of your
134-
choice, if you do both of the following:
135-
136-
a) Accompany the combined library with a copy of the same work based
137-
on the Library, uncombined with any other library facilities,
138-
conveyed under the terms of this License.
139-
140-
b) Give prominent notice with the combined library that part of it
141-
is a work based on the Library, and explaining where to find the
142-
accompanying uncombined form of the same work.
143-
144-
6. Revised Versions of the GNU Lesser General Public License.
145-
146-
The Free Software Foundation may publish revised and/or new versions
147-
of the GNU Lesser General Public License from time to time. Such new
148-
versions will be similar in spirit to the present version, but may
149-
differ in detail to address new problems or concerns.
150-
151-
Each version is given a distinguishing version number. If the
152-
Library as you received it specifies that a certain numbered version
153-
of the GNU Lesser General Public License "or any later version"
154-
applies to it, you have the option of following the terms and
155-
conditions either of that published version or of any later version
156-
published by the Free Software Foundation. If the Library as you
157-
received it does not specify a version number of the GNU Lesser
158-
General Public License, you may choose any version of the GNU Lesser
159-
General Public License ever published by the Free Software Foundation.
160-
161-
If the Library as you received it specifies that a proxy can decide
162-
whether future versions of the GNU Lesser General Public License shall
163-
apply, that proxy's public statement of acceptance of any version is
164-
permanent authorization for you to choose that version for the
165-
Library.
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2019, Pierre Champion
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)