Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

0.3.0-dev.0 Allocator and Opaque #72

Merged
merged 29 commits into from
Feb 1, 2021
Merged

0.3.0-dev.0 Allocator and Opaque #72

merged 29 commits into from
Feb 1, 2021

Conversation

dcharkes
Copy link
Contributor

@dcharkes dcharkes commented Feb 1, 2021

Making a release to address flutter/flutter#75113 and #71.

The CI is failing to run the dev build, because we haven't released this version. "The current Dart SDK version is 2.12.0-259.0.dev." I want to release a version anyway, because we have users on Flutter-master which do have this version.

@mit-mit This is a PR to master, but if we want to keep master only for stable/beta builds we could create a dart-dev branch here instead. (That is what we've done in package:ffigen: https://github.com/dart-lang/ffigen/tree/dart-dev.)

Note that we cannot pin this package release in the Dart SDK yet, because Flutter in g3 does not contain 2.12.0-265.0.dev yet.

@dcharkes dcharkes requested a review from mit-mit February 1, 2021 09:50
@google-cla google-cla bot added the cla: yes label Feb 1, 2021
@dcharkes dcharkes changed the title Api/remove allocate 0.3.0-dev.0 Allocator and Opaque Feb 1, 2021
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@dcharkes dcharkes requested a review from mit-mit February 1, 2021 10:17
@dcharkes dcharkes merged commit b072465 into master Feb 1, 2021
@dcharkes dcharkes deleted the api/remove-allocate branch February 1, 2021 15:56
@athomas athomas restored the api/remove-allocate branch February 1, 2021 17:49
@athomas
Copy link
Contributor

athomas commented Feb 1, 2021

DO NOT DELETE the api/remove-allocate branch until further notice.

@kevmoo kevmoo deleted the api/remove-allocate branch April 27, 2021 18:51
dcharkes added a commit to dart-lang/native that referenced this pull request Jan 16, 2024
Changes `Utf8` and `Utf16` to extend `Opaque` instead of `Struct`.
This means `.ref` is no longer available and `Pointer<Utf(..)>` should be used.
See [breaking change https://github.com/dart-lang/ffi/issues/44622](https://github.com/dart-lang/sdk/issues/44622) for more info.

Removes `allocate` and `free`.
Instead, introduces `calloc` which implements the new `Allocator` interface.
See [breaking change https://github.com/dart-lang/ffi/issues/44621](https://github.com/dart-lang/sdk/issues/44621) for more info.

This pre-release requires Dart `2.12.0-265.0.dev` or greater.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants