Skip to content

Commit

Permalink
Trying to publish intl4x yet again (#879)
Browse files Browse the repository at this point in the history
* Move stuff

* Fix path in readme

* Merge branch 'main' into fixYetAgain

* Add changelog
  • Loading branch information
mosuem authored Aug 22, 2024
1 parent 4312cd4 commit b23879b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
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
File renamed without changes.
File renamed without changes.
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

0 comments on commit b23879b

Please sign in to comment.