Shift dart package hosting to pub.isar-community.dev

This commit is contained in:
Martin Clauss
2024-04-03 18:27:50 +02:00
parent 99b81c7dd1
commit 381d4b9b6f
8 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ Dieser Schnellstart wird wenig um den heißen Brei herumreden und direkt mit dem
Bevor es losgeht, müssen wir ein paar Pakete zur `pubspec.yaml` hinzufügen. Damit es schneller geht lassen wir pub das für uns erledigen.
```bash
dart pub add isar:^3.1.4 isar_flutter_libs:^3.1.4 --hosted-url=https://isar-community.dev
dart pub add dev:isar_generator:^3.1.4 --hosted-url=https://isar-community.dev
dart pub add isar:^3.1.5 isar_flutter_libs:^3.1.5 --hosted-url=https://pub.isar-community.dev
dart pub add dev:isar_generator:^3.1.5 --hosted-url=https://pub.isar-community.dev
```
## 2. Klassen annotieren
+2 -2
View File
@@ -13,8 +13,8 @@ We're going to be short on words and quick on code in this quickstart.
Before the fun begins, we need to add a few packages to the `pubspec.yaml`. We can use pub to do the heavy lifting for us.
```bash
dart pub add isar:^3.1.4 isar_flutter_libs:^3.1.4 --hosted-url=https://isar-community.dev
dart pub add dev:isar_generator:^3.1.4 --hosted-url=https://isar-community.dev
dart pub add isar:^3.1.5 isar_flutter_libs:^3.1.5 --hosted-url=https://pub.isar-community.dev
dart pub add dev:isar_generator:^3.1.5 --hosted-url=https://pub.isar-community.dev
```
## 2. Annotate classes
+3 -3
View File
@@ -70,15 +70,15 @@ isar_version: &isar_version 3.1.3 # define the version to be used
dependencies:
isar:
version: *isar_version
hosted: https://isar-community.dev/
hosted: https://pub.isar-community.dev/
isar_flutter_libs: # contains Isar Core
version: *isar_version
hosted: https://isar-community.dev/
hosted: https://pub.isar-community.dev/
dev_dependencies:
isar_generator:
version: *isar_version
hosted: https://isar-community.dev/
hosted: https://pub.isar-community.dev/
build_runner: any
```
+1 -1
View File
@@ -5,7 +5,7 @@ repository: https://github.com/isar-community/isar/tree/main/packages/isar
homepage: https://github.com/isar-community/isar
issue_tracker: https://github.com/isar-community/isar/issues
documentation: https://isar.dev
publish_to: https://isar-community.dev/
publish_to: https://pub.isar-community.dev/
funding:
- https://github.com/sponsors/leisim/
+2 -2
View File
@@ -3,7 +3,7 @@ description: Isar Core binaries for the Isar Database. Needs to be included for
version: 3.1.5
repository: https://github.com/isar-community/isar
homepage: https://isar.dev
publish_to: https://isar-community.dev/
publish_to: https://pub.isar-community.dev/
environment:
sdk: ">=2.17.0 <3.0.0"
@@ -14,7 +14,7 @@ dependencies:
sdk: flutter
isar:
version: 3.1.5
hosted: https://isar-community.dev
hosted: https://pub.isar-community.dev
flutter:
plugin:
+2 -2
View File
@@ -3,7 +3,7 @@ description: Code generator for the Isar Database. Finds classes annotated with
version: 3.1.5
repository: https://github.com/isar-community/isar
homepage: https://isar.dev
publish_to: https://isar-community.dev/
publish_to: https://pub.isar-community.dev/
environment:
sdk: ">=2.17.0 <3.0.0"
@@ -16,7 +16,7 @@ dependencies:
glob: ^2.0.2
isar:
version: 3.1.5
hosted: https://isar-community.dev
hosted: https://pub.isar-community.dev
path: ^1.8.1
source_gen: ^1.2.2
xxh3: ^1.0.1
+3 -3
View File
@@ -15,10 +15,10 @@ dependencies:
intl: ^0.19.0
isar:
version: any
hosted: https://isar-community.dev
hosted: https://pub.isar-community.dev
isar_flutter_libs:
version: any
hosted: https://isar-community.dev
hosted: https://pub.isar-community.dev
json_annotation: ^4.7.0
meta: ^1.8.0
path: ^1.8.2
@@ -32,7 +32,7 @@ dev_dependencies:
sdk: flutter
isar_generator:
version: any
hosted: https://isar-community.dev
hosted: https://pub.isar-community.dev
json_serializable: ^6.3.1
very_good_analysis: ^3.0.1
+2 -2
View File
@@ -2,7 +2,7 @@
# Publishes the packages for a release to isar-community.dev using the artifacts from github
# Prerequisite: unpub authenticated and token added:
# `unpub_auth login && unpub_auth get | dart pub token add https://isar-community.dev/`
# `unpub_auth login && unpub_auth get | dart pub token add https://pub.isar-community.dev/`
#
set -o errexit
@@ -10,7 +10,7 @@ pushd packages/isar
dart pub get
popd
sh tool/download_binaries.sh
#dart pub token add --env-var=PUB_JSON https://isar-community.dev/
#dart pub token add --env-var=PUB_JSON https://pub.isar-community.dev/
pushd packages/isar
dart pub publish --force
popd