Compare commits

...

3 Commits

Author SHA1 Message Date
Nick Fisher f8c6c33269 chore(release): publish packages
- thermion_dart@0.1.2
 - thermion_flutter_ffi@0.1.0+10
 - thermion_flutter_web@0.0.2
 - thermion_flutter@0.1.1+11
 - thermion_flutter_platform_interface@0.1.0+10
2024-07-11 19:00:36 +08:00
Nick Fisher 6e5627f90e Merge pull request #62 from nmfisher/bugfix/windows-native-assets
Native-assets build error on Windows when targeting Android
2024-07-11 20:59:37 +10:00
Nick Fisher 1921007fc6 fix: manually remove leading slash for compiler path on Windows when building for Android 2024-07-11 20:51:48 +10:00
12 changed files with 90 additions and 16 deletions
+43
View File
@@ -3,6 +3,49 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 2024-07-11
### Changes
---
Packages with breaking changes:
- There are no breaking changes in this release.
Packages with other changes:
- [`thermion_dart` - `v0.1.2`](#thermion_dart---v012)
- [`thermion_flutter_ffi` - `v0.1.0+10`](#thermion_flutter_ffi---v01010)
- [`thermion_flutter_web` - `v0.0.2`](#thermion_flutter_web---v002)
- [`thermion_flutter` - `v0.1.1+11`](#thermion_flutter---v01111)
- [`thermion_flutter_platform_interface` - `v0.1.0+10`](#thermion_flutter_platform_interface---v01010)
Packages with dependency updates only:
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
- `thermion_flutter` - `v0.1.1+11`
- `thermion_flutter_platform_interface` - `v0.1.0+10`
---
#### `thermion_dart` - `v0.1.2`
- **FIX**: manually remove leading slash for compiler path on Windows when building for Android.
- **FIX**: web/JS bool checks need to compare to int.
- **FIX**: shadow JS<->WASM bridge methods.
- **FEAT**: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths.
#### `thermion_flutter_ffi` - `v0.1.0+10`
- **FIX**: web/JS bool checks need to compare to int.
#### `thermion_flutter_web` - `v0.0.2`
- **FEAT**: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths.
## 2024-07-04
### Changes
+7
View File
@@ -1,3 +1,10 @@
## 0.1.2
- **FIX**: manually remove leading slash for compiler path on Windows when building for Android.
- **FIX**: web/JS bool checks need to compare to int.
- **FIX**: shadow JS<->WASM bridge methods.
- **FEAT**: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths.
## 0.1.1+5
- Bump "thermion_dart" to `0.1.1+5`.
+10 -2
View File
@@ -176,9 +176,17 @@ void main(List<String> args) async {
Architecture.ia32 => "i686-linux-android",
_ => throw FormatException('Invalid')
};
var ndkRoot = File(config.cCompiler.compiler!.path).parent.parent.path;
var compilerPath = config.cCompiler.compiler!.path;
if(Platform.isWindows && compilerPath.startsWith("/")) {
compilerPath = compilerPath.substring(1);
}
var ndkRoot = File(compilerPath).parent.parent.uri.toFilePath(windows:true);
var stlPath =
File("$ndkRoot/sysroot/usr/lib/${archExtension}/libc++_shared.so");
File([ndkRoot, "sysroot", "usr", "lib", archExtension, "libc++_shared.so"].join(Platform.pathSeparator));
output.addAsset(NativeCodeAsset(
package: "thermion_dart",
name: "libc++_shared.so",
+1 -1
View File
@@ -1,6 +1,6 @@
name: thermion_dart
description: 3D rendering toolkit for Dart.
version: 0.1.1+5
version: 0.1.2
homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion
@@ -1,3 +1,7 @@
## 0.1.1+11
- Update a dependency to the latest release.
## 0.1.1+10
- Update a dependency to the latest release.
@@ -1,6 +1,6 @@
name: thermion_flutter
description: Flutter plugin for 3D rendering with the Thermion toolkit.
version: 0.1.1+10
version: 0.1.1+11
homepage: https://thermion.dev
repository: https://github.com/nmfisher/thermion
@@ -17,10 +17,10 @@ dependencies:
plugin_platform_interface: ^2.0.0
ffi: ^2.1.2
animation_tools_dart: ^0.0.4
thermion_dart: ^0.1.1+5
thermion_flutter_platform_interface: ^0.1.0+9
thermion_flutter_ffi: ^0.1.0+9
thermion_flutter_web: ^0.0.1+9
thermion_dart: ^0.1.2
thermion_flutter_platform_interface: ^0.1.0+10
thermion_flutter_ffi: ^0.1.0+10
thermion_flutter_web: ^0.0.2
logging: ^1.2.0
dev_dependencies:
@@ -1,3 +1,7 @@
## 0.1.0+10
- **FIX**: web/JS bool checks need to compare to int.
## 0.1.0+9
- Update a dependency to the latest release.
@@ -1,7 +1,7 @@
name: thermion_flutter_ffi
description: An FFI interface for the thermion_flutter plugin (all platforms except web).
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.1.0+9
version: 0.1.0+10
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -22,8 +22,8 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.0
thermion_flutter_platform_interface: ^0.1.0+9
thermion_dart: ^0.1.1+5
thermion_flutter_platform_interface: ^0.1.0+10
thermion_dart: ^0.1.2
dev_dependencies:
flutter_test:
@@ -1,3 +1,7 @@
## 0.1.0+10
- Update a dependency to the latest release.
## 0.1.0+9
- Update a dependency to the latest release.
@@ -1,7 +1,7 @@
name: thermion_flutter_platform_interface
description: A common platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.1.0+9
version: 0.1.0+10
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -11,7 +11,7 @@ dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.0
thermion_dart: ^0.1.1+5
thermion_dart: ^0.1.2
dev_dependencies:
flutter_test:
@@ -1,3 +1,7 @@
## 0.0.2
- **FEAT**: allow passing assetPathPrefix to ThermionViewerWasm to account for Flutter build asset paths.
## 0.0.1+9
- Update a dependency to the latest release.
@@ -1,7 +1,7 @@
name: thermion_flutter_web
description: A web platform interface for the thermion_flutter plugin.
repository: https://github.com/nmfisher/thermion_flutter/thermion_flutter
version: 0.0.1+9
version: 0.0.2
environment:
sdk: ">=3.3.0 <4.0.0"
@@ -20,8 +20,8 @@ dependencies:
sdk: flutter
plugin_platform_interface: ^2.1.0
web: ^0.5.1
thermion_dart: ^0.1.1+5
thermion_flutter_platform_interface: ^0.1.0+9
thermion_dart: ^0.1.2
thermion_flutter_platform_interface: ^0.1.0+10
flutter_web_plugins:
sdk: flutter