Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to publish intl4x yet again #879

Merged
merged 5 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/intl4x/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.10.0

- Upgrade minimum SDK to `3.6.0-0`.
- Move hook code to `lib/src/`.

## 0.9.2

Expand Down
2 changes: 1 addition & 1 deletion pkgs/intl4x/hook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
#### Second PR
1. Create PR.
2. Run `bash tools/regenerate_bindings.sh`, and fix resulting errors.
3. Update `const version` in `hook/version.dart` to tag.
3. Update `const version` in `version.dart` to tag.
4. Regenerate hashes using `cd pkgs/intl4x/; dart --enable-experiment=native-assets run tool/regenerate_hashes.dart`.
5. Land PR.
5 changes: 2 additions & 3 deletions pkgs/intl4x/hook/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
import 'dart:io';

import 'package:crypto/crypto.dart' show sha256;
import 'package:intl4x/src/hook_helpers/hashes.dart';
import 'package:intl4x/src/hook_helpers/version.dart';
import 'package:native_assets_cli/native_assets_cli.dart';
import 'package:path/path.dart' as path;

import 'hashes.dart';
import 'version.dart';

const crateName = 'icu_capi';
const package = 'intl4x';
const assetId = 'src/bindings/lib.g.dart';
Expand Down
5 changes: 2 additions & 3 deletions pkgs/intl4x/tool/regenerate_hashes.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import 'dart:io';

import 'package:crypto/crypto.dart';
import 'package:intl4x/src/hook_helpers/version.dart';
import 'package:native_assets_cli/native_assets_cli.dart';

import '../hook/version.dart';

final httpClient = HttpClient();

Future<void> main(List<String> args) async {
Expand All @@ -29,7 +28,7 @@ Future<void> main(List<String> args) async {
}
httpClient.close(force: true);

await File('hook/hashes.dart').writeAsString('''
await File('lib/src/hook_helpers/hashes.dart').writeAsString('''
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
Expand Down
Loading