Skip to content

Commit

Permalink
Merge pull request #29 from mejdi14/add-android-release-support
Browse files Browse the repository at this point in the history
add lib prefix for android
  • Loading branch information
sethloco authored May 3, 2022
2 parents 5904c6e + 8771855 commit 1a9ab3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/framework/native/library/open_library.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import 'stubs/package_relative_strategy.dart'
/// Its expected that internal libraries are prefixed with es
/// This is also referenced in CMakeLists.txt file in
/// [blob_builder tool](tool/blob_builder/CMakeLists.txt)
const _esprefix = 'es';
const _esPrefix = 'es';
var _startPrefix = '';

/// Provides the capability to locate and open native shared libraries.
///
Expand Down Expand Up @@ -64,6 +65,7 @@ mixin OpenLibrary {
} else if (Platform.isAndroid) {
os = 'android';
extension = 'so';
_startPrefix = 'lib';
} else if (Platform.isIOS) {
os = 'ios';
extension = 'dylib';
Expand All @@ -72,7 +74,7 @@ mixin OpenLibrary {
}

final result = os + bitness;
return '$_esprefix$moduleId-$result.$extension';
return '$_startPrefix$_esPrefix$moduleId-$result.$extension';
}

/// Add the [strategy] to the list of [_strategies].
Expand Down

0 comments on commit 1a9ab3a

Please sign in to comment.