Skip to content

Commit 6a2e3a1

Browse files
author
Martin Clauss
committed
Adjust publishing script, update readme.md
Fixes: #4
1 parent 50e5547 commit 6a2e3a1

File tree

4 files changed

+38
-24
lines changed

4 files changed

+38
-24
lines changed

packages/isar/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.1.3
2+
3+
- Maintenance release, mainly adapts build dependencies
4+
15
## 3.1.0+1
26

37
### Fixes

packages/isar/README.md

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -65,35 +65,22 @@ Holy smokes you're here! Let's get started on using the coolest Flutter database
6565
### 1. Add to pubspec.yaml
6666

6767
```yaml
68-
isar_version: &isar_version 3.1.1 # define the version to be used
68+
isar_version: &isar_version 3.1.3 # define the version to be used
6969

7070
dependencies:
71-
isar: *isar_version
72-
isar_flutter_libs: *isar_version # contains Isar Core
71+
isar:
72+
version: *isar_version
73+
hosted: https://isar-community.dev/
74+
isar_flutter_libs: # contains Isar Core
75+
version: *isar_version
76+
hosted: https://isar-community.dev/
7377

7478
dev_dependencies:
75-
isar_generator: *isar_version
79+
isar_generator:
80+
version: *isar_version
81+
hosted: https://isar-community.dev/
7682
build_runner: any
7783

78-
# Add overrides to use the community fork
79-
dependency_overrides:
80-
isar:
81-
git:
82-
url: https://github.com/isar-community/isar.git
83-
ref: *isar_version
84-
path: packages/isar
85-
86-
isar_flutter_libs:
87-
git:
88-
url: https://github.com/isar-community/isar.git
89-
ref: *isar_version
90-
path: packages/isar_flutter_libs
91-
92-
isar_generator:
93-
git:
94-
url: https://github.com/isar-community/isar.git
95-
ref: *isar_version
96-
path: packages/isar_generator
9784
```
9885

9986
### 2. Annotate a Collection

tool/download_binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
version=`dart packages/isar/tool/get_version.dart`
4-
github="https://github.com/mrclauss/isar/releases/download/${version}"
4+
github="https://github.com/isar-community/isar/releases/download/${version}"
55

66

77
curl "${github}/libisar_android_arm64.so" -o packages/isar_flutter_libs/android/src/main/jniLibs/arm64-v8a/libisar.so --create-dirs -L -f

tool/publish.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Publishes the packages for a release to isar-community.dev using the artifacts from github
4+
# Prerequisite: unpub authenticated and token added:
5+
# `unpub_auth login && unpub_auth get | dart pub token add https://isar-community.dev/`
6+
#
7+
8+
set -o errexit
9+
pushd packages/isar
10+
dart pub get
11+
popd
12+
sh tool/download_binaries.sh
13+
#dart pub token add --env-var=PUB_JSON https://isar-community.dev/
14+
pushd packages/isar
15+
dart pub publish --force
16+
popd
17+
pushd packages/isar_generator
18+
dart pub publish --force
19+
popd
20+
pushd packages/isar_flutter_libs
21+
dart pub publish --force
22+
popd
23+

0 commit comments

Comments
 (0)