Skip to content

Commit de8dbd9

Browse files
authored
Disable LTO on Android (#94)
1 parent 60cf08f commit de8dbd9

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.5.6
2+
* Disable LTO on Android to fix [#80](https://github.com/google/webcrypto.dart/issues/80).
3+
* Migrate to `dart:js_interop` to ensure [wasm compatibility](https://dart.dev/interop/js-interop/package-web#package-web-vs-dart-html).
4+
15
# 0.5.5
26
* Adds a namespace in `build.gradle` for compatibility with AGP 8.0.
37

android/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ include(
3636
# https://boringssl.googlesource.com/boringssl/+/HEAD/BUILDING.md#binary-size
3737
add_definitions(-DOPENSSL_SMALL)
3838

39-
# Enable link time optimization
40-
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -flto")
41-
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto")
39+
# TODO: Enable link time optimization
40+
# Requires fixing https://github.com/google/webcrypto.dart/issues/80
41+
# set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -flto")
42+
# set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto")
4243

4344
# Android ABIs, see also:
4445
# https://developer.android.com/ndk/guides/abis

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
name: webcrypto
16-
version: 0.5.5
16+
version: 0.5.6
1717
description: Cross-platform implementation of Web Cryptography APIs for Flutter.
1818
repository: https://github.com/google/webcrypto.dart
1919

0 commit comments

Comments
 (0)