mirror of
https://github.com/immich-app/isar.git
synced 2026-09-30 13:23:02 +08:00
Shift dart package hosting to pub.isar-community.dev
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user