Skip to content

Commit

Permalink
[native_assets_cli] Add Android RISCV64 target. (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacnak-google authored Oct 27, 2023
1 parent 18bff8c commit 762b4da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pkgs/native_assets_cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1

- Added `Target.androidRiscv64`.

## 0.3.0

- **Breaking change** Add required `BuildConfig.packageName`
Expand Down
4 changes: 4 additions & 0 deletions pkgs/native_assets_cli/lib/src/model/target.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class Architecture {
Abi.androidArm64: Architecture.arm64,
Abi.androidIA32: Architecture.ia32,
Abi.androidX64: Architecture.x64,
Abi.androidRiscv64: Architecture.riscv64,
Abi.fuchsiaArm64: Architecture.arm64,
Abi.fuchsiaX64: Architecture.x64,
Abi.iosArm: Architecture.arm,
Expand Down Expand Up @@ -108,6 +109,7 @@ class OS {
Abi.androidArm64: OS.android,
Abi.androidIA32: OS.android,
Abi.androidX64: OS.android,
Abi.androidRiscv64: OS.android,
Abi.fuchsiaArm64: OS.fuchsia,
Abi.fuchsiaX64: OS.fuchsia,
Abi.iosArm: OS.iOS,
Expand Down Expand Up @@ -268,6 +270,7 @@ class Target implements Comparable<Target> {
static const androidArm64 = Target._(Abi.androidArm64);
static const androidIA32 = Target._(Abi.androidIA32);
static const androidX64 = Target._(Abi.androidX64);
static const androidRiscv64 = Target._(Abi.androidRiscv64);
static const fuchsiaArm64 = Target._(Abi.fuchsiaArm64);
static const fuchsiaX64 = Target._(Abi.fuchsiaX64);
static const iOSArm = Target._(Abi.iosArm);
Expand All @@ -294,6 +297,7 @@ class Target implements Comparable<Target> {
androidArm64,
androidIA32,
androidX64,
androidRiscv64,
fuchsiaArm64,
fuchsiaX64,
iOSArm,
Expand Down
2 changes: 1 addition & 1 deletion pkgs/native_assets_cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: native_assets_cli
description: >-
A library that contains the argument and file formats for implementing a
native assets CLI.
version: 0.3.0
version: 0.3.1
repository: https://github.com/dart-lang/native/tree/main/pkgs/native_assets_cli

topics:
Expand Down

0 comments on commit 762b4da

Please sign in to comment.