Releases: dart-lang/native
Releases · dart-lang/native
package:hooks v1.0.3
- Deprecated
recordedUsagesFileinLinkInput. - Added
recordedUsesgetter toLinkInput. - Added dependency on
package:record_use.
package:native_toolchain_c v0.18.0
- Made
CLinker.runLoggerargument optional. It now defaults to a logger
printing to stdout and stderr. - For
LinkerOptions.treeshake, skip bundling a dynamic library ifsymbolsToKeepis empty.
package:hooks_runner v1.2.1
- Add
PROCESSOR_ARCHITECTUREto environment variables allowlist.
package:hooks_runner v1.2.0
- Add
toJson()andfromJson()toBuildResultto support serialization.
jnigen-v0.16.0
0.16.0
- Breaking Change: All Java wrapper classes have been migrated to extension
types. The main effects are:- No more nullable
JTypeclasses, onlyJTypeclasses, and theJType
class is simplified. - It is no longer necessary to pass around the
JTypein many cases where it
used to be required.
- No more nullable
- Add docs about debugging.
- Add support for Kotlin interfaces with suspend functions. These can now be
implemented using Dart functions that return aFuture. - Namespace primitive types to avoid collisions with generated API names, eg
bool. - Kotlin suspend functions with no result (a return type of
Unit) now return
Future<void>in Dart instead ofFuture<JObject>. - Improve error message for unsupported Java class file versions in summary
generation. - Generated extension types now implement their Java interfaces.
- Instance members of generated extension types have been moved to extension
methods. - Breaking Change: Class methods like getFoo, isFoo, and setFoo are now
getters and setters in Dart. - Add compile time version checks to verify consistency of package:jni's
versions vs JNIgen's generated code.
jni_flutter-v1.0.1
1.0.1
- Add an example app.
- Fixed release mode crash by adding Proguard rules to preserve plugin Java
classes.
jni_flutter-v1.0.0
1.0.0
- Initial version: Adds the
androidApplicationContextand
androidActivity(int engineId)APIs, which used to be part of package:jni.
jni-v1.0.0
1.0.0
- Breaking Change: The Flutter specific APIs
Jni.androidApplicationContext
andJni.androidActivity(int engineId)have been moved to a new
package:jni_flutter. If you are using package:jni on Android you may need to
add this new package as a dependency. - Breaking Change: All Java wrapper classes have been migrated to extension
types. The main effects are:- All collections (
JList,JMapetc) are now direct code generated wrappers
around the Java objects, so are less Darty. Instead there are now Darty
adapter classes you can access viaasDart(). - No more nullable
JTypeclasses, onlyJTypeclasses, and theJType
class is simplified. - It is no longer necessary to pass around the
JTypein many cases where it
used to be required.
- All collections (
- Added
Jni.captureStackTraceOnReleasewhich defaults tofalse. When this is
set, the stack traces of the release points will be stored forJObjects to
help debugDoubleReleaseErrorandUseAfterReleaseErrors. This includes the
points whereJObjects have been registered to be released by anarenavia
JObject.releaseBy. - Changed the behavior of
JObject.releasedBy. It now does not throw a
DoubleReleaseErrorif the object was manually released before the end of
arena. - Added
JThrowableclass which inherits fromJObjectand implements
Exception. - Breaking Change:
JniExceptionhas been deleted. Java exceptions are now
thrown asJThrowableinstead.JThrowableholds an actual Java exception,
instead of just holding a string message. It's aJObject, so the usual
.isAand.asmethods work to cast theJThrowableto the underlying Java
exception. - Breaking Change: Class methods like getFoo, isFoo, and setFoo are now
getters and setters in Dart. - Breaking Change: APIs of
JBoolean,JByte,JCharacter,JDouble,
JFloat,JInteger,JLong,JNumber,JShort, andJStringhave changed
to be more consistent with other APIs. For example,JBoolean.booleanValueis
nowJBoolean.toDartBool. - Fixed bugs that were
causing crashes in interfaces after app close and reopen. - Add compile time version checks to verify consistency of package:jni's
versions vs JNIgen's generated code.
package:hooks_runner v1.1.1
- Bump
package:record_useto 0.6.0.
package:record_use v0.6.0
- Breaking Change: Changed the JSON format and Dart API in various ways.