Skip to content

Commit 670819b

Browse files
committed
chore: re-license to MIT
1 parent 1a4ba9d commit 670819b

23 files changed

+184
-1055
lines changed

LICENSE

Lines changed: 21 additions & 674 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,10 @@ controller.dispose();
160160

161161
#### Under Progress
162162

163-
- Finalized API.
164-
- General stability.
165-
- Better maximize/minimize animations.
166163
- Support for older Windows versions.
167164
- Defining z-order for each `NativeViewController`.
168-
169-
## Known Issues
170-
171-
- Windows snapping layouts & window snapping (only when a `NativeView` is visible on screen).
172-
- `HitTestBehavior.translucent` leaks through the title-bar.
165+
- Finalized API.
166+
- General stability.
173167

174168
## Motivation
175169

@@ -191,6 +185,6 @@ I plan to add Linux support soon. For now, limiting the scope of work to just Wi
191185

192186
Currently licensing strictly.
193187

194-
GNU General Public License v3.0
188+
MIT License
195189

196-
Copyright (C) 2021, Hitesh Kumar Saini <<[email protected]>>
190+
Copyright (C) 2022, Hitesh Kumar Saini <<[email protected]>>

core/ffi_api.cc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#include "ffi_api.h"
2110

core/ffi_api.h

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#ifndef FFI_API_H_
2110
#define FFI_API_H_

core/native_view_container.cc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#include "native_view_container.h"
2110

core/native_view_container.h

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#ifndef NATIVE_VIEW_CONTAINER_H_
2110
#define NATIVE_VIEW_CONTAINER_H_

core/native_view_core.cc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#include "native_view_core.h"
2110

core/native_view_core.h

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#ifndef NATIVE_VIEW_CORE_H_
2110
#define NATIVE_VIEW_CORE_H_

core/native_view_subclass_proc.cc

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#include "native_view_subclass_proc.h"
2110

@@ -33,6 +22,11 @@ LRESULT NativeViewSubclassProc(HWND window, UINT message, WPARAM wparam,
3322
// moved out of screen etc.
3423
return 1;
3524
}
25+
case WM_SIZE: {
26+
// Prevent unnecessary maxmize, minimize or restore messages for |window|.
27+
// Since it is |SetParent|'ed into native view container.
28+
return 1;
29+
}
3630
default:
3731
break;
3832
}

core/native_view_subclass_proc.h

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
/// This file is part of flutter_native_view
2-
/// (https://github.com/alexmercerind/flutter_native_view).
3-
///
4-
/// Copyright (C) 2022 Hitesh Kumar Saini <[email protected]>
5-
///
6-
/// flutter_native_view is free software: you can redistribute it and/or modify
7-
/// it under the terms of the GNU General Public License as published by the
8-
/// Free Software Foundation, either version 3 of the License, or (at your
9-
/// option) any later version.
10-
///
11-
/// flutter_native_view is distributed in the hope that it will be useful, but
12-
/// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13-
/// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14-
/// more details.
15-
///
16-
/// You should have received a copy of the GNU General Public License along with
17-
/// flutter_native_view. If not, see <https://www.gnu.org/licenses/>.
18-
///
1+
// This file is a part of flutter_native_view
2+
// (https://github.com/alexmercerind/flutter_native_view).
3+
//
4+
// Copyright (c) 2022, Hitesh Kumar Saini <[email protected]>.
5+
// All rights reserved.
6+
// Use of this source code is governed by MIT license that can be found in the
7+
// LICENSE file.
198

209
#include <Windows.h>
2110

0 commit comments

Comments
 (0)