From 94a541a1f774d9b3d6a903644ea8de5512c56d6b Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Tue, 30 May 2023 09:27:58 +0000 Subject: [PATCH] [pkg/ffi] Pass through NDK version Change-Id: Ic1a13d5476a89a6320c77968aacbc721e0480c58 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/306320 Reviewed-by: Hossein Yousefi Commit-Queue: Hossein Yousefi Commit-Queue: Daco Harkes Auto-Submit: Daco Harkes --- DEPS | 2 +- .../lib/src/build_runner/build_runner.dart | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DEPS b/DEPS index 43b3cb24ef24..dc4b7819d82b 100644 --- a/DEPS +++ b/DEPS @@ -156,7 +156,7 @@ vars = { "matcher_rev": "7e1011772566a8d1817c725a71f091e2791721c8", "mime_rev": "24448401f621b9e154d165c900a3c8decd8a23f4", "mockito_rev": "153c145604db47798ee2ff21d2a07aa543fca168", - "native_rev": "3e1cf186069dfef2b4c0a24c30f3893513afa38a", + "native_rev": "45e16dcf59212bda42e753152d3c3cece8f1b10e", "package_config_rev": "203de2022af26b3ab2bcec18cc49614d9e502897", "path_rev": "f8d15c2775835fd61ea5e06bb0ab99232f5ec446", "pool_rev": "a10a0f918802f7b3856cb1f4c78f9073f28a0dd8", diff --git a/pkg/native_assets_builder/lib/src/build_runner/build_runner.dart b/pkg/native_assets_builder/lib/src/build_runner/build_runner.dart index 6388d0012e3b..bf9b264ed4d3 100644 --- a/pkg/native_assets_builder/lib/src/build_runner/build_runner.dart +++ b/pkg/native_assets_builder/lib/src/build_runner/build_runner.dart @@ -41,6 +41,7 @@ class NativeAssetsBuildRunner { required Uri workingDirectory, CCompilerConfig? cCompilerConfig, IOSSdk? targetIOSSdk, + int? targetAndroidNdkApi, required bool includeParentEnvironment, }) async { assert(_metadata.isEmpty); @@ -70,6 +71,7 @@ class NativeAssetsBuildRunner { dependencyMetadata: dependencyMetadata, cCompilerConfig: cCompilerConfig, targetIOSSdk: targetIOSSdk, + targetAndroidNdkApi: targetAndroidNdkApi, ); final assets = await _buildPackageCached( config, @@ -166,6 +168,7 @@ class NativeAssetsBuildRunner { required Uri packageRoot, required Target target, IOSSdk? targetIOSSdk, + int? targetAndroidNdkApi, required LinkModePreference linkMode, required Uri buildParentDir, CCompilerConfig? cCompilerConfig, @@ -178,6 +181,7 @@ class NativeAssetsBuildRunner { targetIOSSdk: targetIOSSdk, cCompiler: cCompilerConfig, dependencyMetadata: dependencyMetadata, + targetAndroidNdkApi: targetAndroidNdkApi, ); final outDirUri = buildParentDir.resolve('$buildDirName/'); final outDir = Directory.fromUri(outDirUri);