From 73f04eb0d4fc448d343a93dd8c18d7d40e350dc1 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 21 May 2025 13:14:46 +0800 Subject: [PATCH] update test helper setup for new objective_c package --- thermion_dart/test/helpers.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thermion_dart/test/helpers.dart b/thermion_dart/test/helpers.dart index 6f110772..6ace085c 100644 --- a/thermion_dart/test/helpers.dart +++ b/thermion_dart/test/helpers.dart @@ -83,7 +83,8 @@ class TestHelper { outDir = Directory("$testDir/output/${dir}"); outDir.createSync(recursive: true); if (Platform.isMacOS) { - DynamicLibrary.open('${testDir}/libThermionTextureSwift.dylib'); + DynamicLibrary.open('${testDir}/generated/objective_c.dylib'); + DynamicLibrary.open('${testDir}/generated/libThermionTextureSwift.dylib'); } } @@ -190,7 +191,7 @@ class TestHelper { /// Future createTexture(int width, int height, {bool depth = false}) async { - final object = ThermionTextureSwift.new$(); + final object = ThermionTextureSwift(); object.initWithWidth_height_isDepth_(width, height, depth); return object; }