Skip to content

Commit 9dca0f0

Browse files
authored
Prepare 2.12.0-beta.1 (#1032)
* Prepare 2.12.0-beta.1 * update Package.resolved * ignore Package.resolved in the example runner app * re-generate style code * fix expected range values in tests * add changelog entry * update annotations
1 parent 95a388a commit 9dca0f0

File tree

30 files changed

+947
-177
lines changed

30 files changed

+947
-177
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ unlinked_spec.ds
9494
**/ios/Runner/GeneratedPluginRegistrant.*
9595
.fastlane/README.md
9696
.fastlane/report.xml
97+
example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
98+
example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
9799

98100
# macOS
99101
**/macos/Flutter/GeneratedPluginRegistrant.swift

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
### main
1+
### 2.12.0-beta.1
22

33
* Use Maps SDK Android dependency with NDK 27 support and [support for 16 KB page sizes](https://developer.android.com/guide/practices/page-sizes).
4+
* Expose `LineLayer.lineCutoutOpacity`, `LineLayer.lineCutoutWidth` and `LineLayer.lineCutoutFadeWidth` to make route lines visible through obstructing 3D buildings and other aboveground features.
45

56
### 2.11.0
67

LICENSE

Lines changed: 216 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## License
22

3-
Mapbox Maps for Flutter version 2.11.0
3+
Mapbox Maps for Flutter version 2.12.0-beta.1
44
Mapbox Maps Flutter SDK
55

66
Copyright © 2022 - 2025 Mapbox, Inc. All rights reserved.
@@ -134,7 +134,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
134134

135135
## License
136136

137-
Mapbox Maps for iOS version 11.15.0
137+
Mapbox Maps for iOS version 11.16.0-beta.1
138138
Mapbox Maps iOS SDK
139139

140140
Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
@@ -165,7 +165,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
165165

166166
---
167167

168-
### MapboxCoreMaps,11.15.0,Mapbox ToS,Mapbox,https://www.mapbox.com/
168+
### MapboxCoreMaps,11.16.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
169169

170170
```
171171
Mapbox Core Maps version 11.0
@@ -923,7 +923,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
923923

924924
---
925925

926-
### draco,1.5.3,Apache-2.0,Google,https://github.com/google/draco
926+
### draco,1.5.7,Apache-2.0,Google,https://github.com/google/draco
927927

928928
```
929929
Apache License
@@ -1944,7 +1944,7 @@ DEALINGS IN THE SOFTWARE.
19441944

19451945
### License
19461946

1947-
Mapbox Maps for Android version 11.15.0
1947+
Mapbox Maps for Android version 11.16.0-beta.1
19481948
Mapbox Maps Android SDK
19491949

19501950
Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
@@ -2426,7 +2426,7 @@ License: [The Apache Software License, Version 2.0](http://www.apache.org/licens
24262426

24272427
===========================================================================
24282428

2429-
### MapboxCoreMaps,11.15.0,Mapbox ToS,Mapbox,https://www.mapbox.com/
2429+
### MapboxCoreMaps,11.16.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
24302430

24312431
```
24322432
Mapbox Core Maps version 11.0
@@ -3243,7 +3243,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32433243

32443244
---
32453245

3246-
### draco,1.5.3,Apache-2.0,Google,https://github.com/google/draco
3246+
### draco,1.5.7,Apache-2.0,Google,https://github.com/google/draco
32473247

32483248
```
32493249
Apache License
@@ -4151,6 +4151,215 @@ freely, subject to the following restrictions:
41514151

41524152
---
41534153

4154+
### spirv-reflect,vulkan-sdk-1.4.321.0,Apache-2.0,KhronosGroup,https://github.com/KhronosGroup/SPIRV-Reflect
4155+
4156+
```
4157+
Apache License
4158+
Version 2.0, January 2004
4159+
http://www.apache.org/licenses/
4160+
4161+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4162+
4163+
1. Definitions.
4164+
4165+
"License" shall mean the terms and conditions for use, reproduction,
4166+
and distribution as defined by Sections 1 through 9 of this document.
4167+
4168+
"Licensor" shall mean the copyright owner or entity authorized by
4169+
the copyright owner that is granting the License.
4170+
4171+
"Legal Entity" shall mean the union of the acting entity and all
4172+
other entities that control, are controlled by, or are under common
4173+
control with that entity. For the purposes of this definition,
4174+
"control" means (i) the power, direct or indirect, to cause the
4175+
direction or management of such entity, whether by contract or
4176+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
4177+
outstanding shares, or (iii) beneficial ownership of such entity.
4178+
4179+
"You" (or "Your") shall mean an individual or Legal Entity
4180+
exercising permissions granted by this License.
4181+
4182+
"Source" form shall mean the preferred form for making modifications,
4183+
including but not limited to software source code, documentation
4184+
source, and configuration files.
4185+
4186+
"Object" form shall mean any form resulting from mechanical
4187+
transformation or translation of a Source form, including but
4188+
not limited to compiled object code, generated documentation,
4189+
and conversions to other media types.
4190+
4191+
"Work" shall mean the work of authorship, whether in Source or
4192+
Object form, made available under the License, as indicated by a
4193+
copyright notice that is included in or attached to the work
4194+
(an example is provided in the Appendix below).
4195+
4196+
"Derivative Works" shall mean any work, whether in Source or Object
4197+
form, that is based on (or derived from) the Work and for which the
4198+
editorial revisions, annotations, elaborations, or other modifications
4199+
represent, as a whole, an original work of authorship. For the purposes
4200+
of this License, Derivative Works shall not include works that remain
4201+
separable from, or merely link (or bind by name) to the interfaces of,
4202+
the Work and Derivative Works thereof.
4203+
4204+
"Contribution" shall mean any work of authorship, including
4205+
the original version of the Work and any modifications or additions
4206+
to that Work or Derivative Works thereof, that is intentionally
4207+
submitted to Licensor for inclusion in the Work by the copyright owner
4208+
or by an individual or Legal Entity authorized to submit on behalf of
4209+
the copyright owner. For the purposes of this definition, "submitted"
4210+
means any form of electronic, verbal, or written communication sent
4211+
to the Licensor or its representatives, including but not limited to
4212+
communication on electronic mailing lists, source code control systems,
4213+
and issue tracking systems that are managed by, or on behalf of, the
4214+
Licensor for the purpose of discussing and improving the Work, but
4215+
excluding communication that is conspicuously marked or otherwise
4216+
designated in writing by the copyright owner as "Not a Contribution."
4217+
4218+
"Contributor" shall mean Licensor and any individual or Legal Entity
4219+
on behalf of whom a Contribution has been received by Licensor and
4220+
subsequently incorporated within the Work.
4221+
4222+
2. Grant of Copyright License. Subject to the terms and conditions of
4223+
this License, each Contributor hereby grants to You a perpetual,
4224+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
4225+
copyright license to reproduce, prepare Derivative Works of,
4226+
publicly display, publicly perform, sublicense, and distribute the
4227+
Work and such Derivative Works in Source or Object form.
4228+
4229+
3. Grant of Patent License. Subject to the terms and conditions of
4230+
this License, each Contributor hereby grants to You a perpetual,
4231+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
4232+
(except as stated in this section) patent license to make, have made,
4233+
use, offer to sell, sell, import, and otherwise transfer the Work,
4234+
where such license applies only to those patent claims licensable
4235+
by such Contributor that are necessarily infringed by their
4236+
Contribution(s) alone or by combination of their Contribution(s)
4237+
with the Work to which such Contribution(s) was submitted. If You
4238+
institute patent litigation against any entity (including a
4239+
cross-claim or counterclaim in a lawsuit) alleging that the Work
4240+
or a Contribution incorporated within the Work constitutes direct
4241+
or contributory patent infringement, then any patent licenses
4242+
granted to You under this License for that Work shall terminate
4243+
as of the date such litigation is filed.
4244+
4245+
4. Redistribution. You may reproduce and distribute copies of the
4246+
Work or Derivative Works thereof in any medium, with or without
4247+
modifications, and in Source or Object form, provided that You
4248+
meet the following conditions:
4249+
4250+
(a) You must give any other recipients of the Work or
4251+
Derivative Works a copy of this License and
4252+
4253+
(b) You must cause any modified files to carry prominent notices
4254+
stating that You changed the files and
4255+
4256+
(c) You must retain, in the Source form of any Derivative Works
4257+
that You distribute, all copyright, patent, trademark, and
4258+
attribution notices from the Source form of the Work,
4259+
excluding those notices that do not pertain to any part of
4260+
the Derivative Works and
4261+
4262+
(d) If the Work includes a "NOTICE" text file as part of its
4263+
distribution, then any Derivative Works that You distribute must
4264+
include a readable copy of the attribution notices contained
4265+
within such NOTICE file, excluding those notices that do not
4266+
pertain to any part of the Derivative Works, in at least one
4267+
of the following places: within a NOTICE text file distributed
4268+
as part of the Derivative Works within the Source form or
4269+
documentation, if provided along with the Derivative Works or,
4270+
within a display generated by the Derivative Works, if and
4271+
wherever such third-party notices normally appear. The contents
4272+
of the NOTICE file are for informational purposes only and
4273+
do not modify the License. You may add Your own attribution
4274+
notices within Derivative Works that You distribute, alongside
4275+
or as an addendum to the NOTICE text from the Work, provided
4276+
that such additional attribution notices cannot be construed
4277+
as modifying the License.
4278+
4279+
You may add Your own copyright statement to Your modifications and
4280+
may provide additional or different license terms and conditions
4281+
for use, reproduction, or distribution of Your modifications, or
4282+
for any such Derivative Works as a whole, provided Your use,
4283+
reproduction, and distribution of the Work otherwise complies with
4284+
the conditions stated in this License.
4285+
4286+
5. Submission of Contributions. Unless You explicitly state otherwise,
4287+
any Contribution intentionally submitted for inclusion in the Work
4288+
by You to the Licensor shall be under the terms and conditions of
4289+
this License, without any additional terms or conditions.
4290+
Notwithstanding the above, nothing herein shall supersede or modify
4291+
the terms of any separate license agreement you may have executed
4292+
with Licensor regarding such Contributions.
4293+
4294+
6. Trademarks. This License does not grant permission to use the trade
4295+
names, trademarks, service marks, or product names of the Licensor,
4296+
except as required for reasonable and customary use in describing the
4297+
origin of the Work and reproducing the content of the NOTICE file.
4298+
4299+
7. Disclaimer of Warranty. Unless required by applicable law or
4300+
agreed to in writing, Licensor provides the Work (and each
4301+
Contributor provides its Contributions) on an "AS IS" BASIS,
4302+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
4303+
implied, including, without limitation, any warranties or conditions
4304+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
4305+
PARTICULAR PURPOSE. You are solely responsible for determining the
4306+
appropriateness of using or redistributing the Work and assume any
4307+
risks associated with Your exercise of permissions under this License.
4308+
4309+
8. Limitation of Liability. In no event and under no legal theory,
4310+
whether in tort (including negligence), contract, or otherwise,
4311+
unless required by applicable law (such as deliberate and grossly
4312+
negligent acts) or agreed to in writing, shall any Contributor be
4313+
liable to You for damages, including any direct, indirect, special,
4314+
incidental, or consequential damages of any character arising as a
4315+
result of this License or out of the use or inability to use the
4316+
Work (including but not limited to damages for loss of goodwill,
4317+
work stoppage, computer failure or malfunction, or any and all
4318+
other commercial damages or losses), even if such Contributor
4319+
has been advised of the possibility of such damages.
4320+
4321+
9. Accepting Warranty or Additional Liability. While redistributing
4322+
the Work or Derivative Works thereof, You may choose to offer,
4323+
and charge a fee for, acceptance of support, warranty, indemnity,
4324+
or other liability obligations and/or rights consistent with this
4325+
License. However, in accepting such obligations, You may act only
4326+
on Your own behalf and on Your sole responsibility, not on behalf
4327+
of any other Contributor, and only if You agree to indemnify,
4328+
defend, and hold each Contributor harmless for any liability
4329+
incurred by, or claims asserted against, such Contributor by reason
4330+
of your accepting any such warranty or additional liability.
4331+
4332+
END OF TERMS AND CONDITIONS
4333+
4334+
APPENDIX: How to apply the Apache License to your work.
4335+
4336+
To apply the Apache License to your work, attach the following
4337+
boilerplate notice, with the fields enclosed by brackets "[]"
4338+
replaced with your own identifying information. (Don't include
4339+
the brackets!) The text should be enclosed in the appropriate
4340+
comment syntax for the file format. We also recommend that a
4341+
file or class name and description of purpose be included on the
4342+
same "printed page" as the copyright notice for easier
4343+
identification within third-party archives.
4344+
4345+
Copyright [yyyy] [name of copyright owner]
4346+
4347+
Licensed under the Apache License, Version 2.0 (the "License")
4348+
you may not use this file except in compliance with the License.
4349+
You may obtain a copy of the License at
4350+
4351+
http://www.apache.org/licenses/LICENSE-2.0
4352+
4353+
Unless required by applicable law or agreed to in writing, software
4354+
distributed under the License is distributed on an "AS IS" BASIS,
4355+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4356+
See the License for the specific language governing permissions and
4357+
limitations under the License.
4358+
4359+
```
4360+
4361+
---
4362+
41544363
### mapbox-common,dev,Mapbox ToS,Mapbox,https://www.mapbox.com/
41554364

41564365
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mapbox Maps SDK Flutter SDK
22

3-
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.15.0). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
3+
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.16.0-beta.1). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
44

55
Web and desktop are not supported.
66

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint
5959
}
6060

6161
dependencies {
62-
implementation "com.mapbox.maps:android-ndk27:11.15.0"
62+
implementation "com.mapbox.maps:android-ndk27:11.16.0-beta.1"
6363

6464
implementation "androidx.annotation:annotation:1.5.0"
6565
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/annotation/PolylineAnnotationController.kt

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,75 @@ class PolylineAnnotationController(private val delegate: ControllerDelegate) : _
214214
}
215215
}
216216

217+
override fun setLineCutoutFadeWidth(
218+
managerId: String,
219+
lineCutoutFadeWidth: Double,
220+
callback: (Result<Unit>) -> Unit
221+
) {
222+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
223+
manager.lineCutoutFadeWidth = lineCutoutFadeWidth
224+
callback(Result.success(Unit))
225+
}
226+
227+
override fun getLineCutoutFadeWidth(
228+
managerId: String,
229+
callback: (Result<Double?>) -> Unit
230+
) {
231+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
232+
val value = manager.lineCutoutFadeWidth
233+
if (value != null) {
234+
callback(Result.success(value))
235+
} else {
236+
callback(Result.success(null))
237+
}
238+
}
239+
240+
override fun setLineCutoutOpacity(
241+
managerId: String,
242+
lineCutoutOpacity: Double,
243+
callback: (Result<Unit>) -> Unit
244+
) {
245+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
246+
manager.lineCutoutOpacity = lineCutoutOpacity
247+
callback(Result.success(Unit))
248+
}
249+
250+
override fun getLineCutoutOpacity(
251+
managerId: String,
252+
callback: (Result<Double?>) -> Unit
253+
) {
254+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
255+
val value = manager.lineCutoutOpacity
256+
if (value != null) {
257+
callback(Result.success(value))
258+
} else {
259+
callback(Result.success(null))
260+
}
261+
}
262+
263+
override fun setLineCutoutWidth(
264+
managerId: String,
265+
lineCutoutWidth: Double,
266+
callback: (Result<Unit>) -> Unit
267+
) {
268+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
269+
manager.lineCutoutWidth = lineCutoutWidth
270+
callback(Result.success(Unit))
271+
}
272+
273+
override fun getLineCutoutWidth(
274+
managerId: String,
275+
callback: (Result<Double?>) -> Unit
276+
) {
277+
val manager = delegate.getManager(managerId) as PolylineAnnotationManager
278+
val value = manager.lineCutoutWidth
279+
if (value != null) {
280+
callback(Result.success(value))
281+
} else {
282+
callback(Result.success(null))
283+
}
284+
}
285+
217286
override fun setLineElevationReference(
218287
managerId: String,
219288
lineElevationReference: LineElevationReference,

0 commit comments

Comments
 (0)