Skip to content
Open
12 changes: 10 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:

- name: Build v3 docs
run: |
cd v3/docs
cd v3
git fetch --unshallow
git fetch --tags
tool/replace-versions.sh
cd docs
sed -i'.bak' "s|base:.*|base: '/v3/',|" docs/.vuepress/config.ts
sed -i 's|text: "vx.x"|text: "v3.x"|' docs/.vuepress/config.ts
npm ci
Expand All @@ -40,7 +44,11 @@ jobs:

- name: Build main docs
run: |
cd main/docs
cd main
git fetch --unshallow
git fetch --tags
tool/replace-versions.sh
cd docs
sed -i'.bak' "s|base:.*|base: '/',|" docs/.vuepress/config.ts
sed -i 's|text: "vx.x"|text: "v4.x"|' docs/.vuepress/config.ts
npm ci
Expand Down
31 changes: 4 additions & 27 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,14 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
artifact_name: libisar_android_arm64.so
script: build_android.sh
- os: ubuntu-latest
artifact_name: libisar_android_armv7.so
script: build_android.sh armv7
- os: ubuntu-latest
artifact_name: libisar_android_x64.so
script: build_android.sh x64
- os: macos-latest
artifact_name: isar_ios.xcframework.zip
script: build_ios.sh
- os: ubuntu-20.04
artifact_name: libisar_linux_x64.so
script: build_linux.sh x64
- os: macos-latest
artifact_name: libisar_macos.dylib
script: build_macos.sh
- os: windows-latest
artifact_name: isar_windows_x64.dll
script: build_windows.sh x64
- os: ubuntu-latest
artifact_name: isar.wasm
script: build_wasm.sh
- os: ubuntu-arm
artifact_name: libisar_linux_arm64.so
script: build_linux.sh arm64
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Prepare Build
uses: ./.github/actions/prepare-build
- name: Set Isar Version
run: echo "ISAR_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Build binary
Expand All @@ -62,7 +39,7 @@ jobs:

build_inspector:
name: Build Inspector
needs: testlab
needs: build_binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/testlab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
--project isar-community \
--type instrumentation \
--timeout 5m \
--device model=griffin,version=24 \
--device model=starqlteue,version=26 \
--device model=cheetah,version=33 \
--device model=shiba,version=34 \
Expand Down
2 changes: 1 addition & 1 deletion packages/isar/lib/src/isar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class Isar {
static const int defaultMaxSizeMiB = 128;

/// The current Isar version.
static const String version = '0.0.0-placeholder';
static const String version = '4.0.3';

/// Use this value for the `directory` parameter to create an in-memory
/// database.
Expand Down
2 changes: 1 addition & 1 deletion packages/isar/lib/src/isar_connect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ abstract class _IsarConnect {
path = path.substring(0, path.length - 1);
}
final url =
' https://isar-community.dev/inspector/${Isar.version}/#/$port$path ';
' https://inspect.isar-community.dev/${Isar.version}/#/$port$path ';
String line(String text, String fill) {
final fillCount = url.length - text.length;
final left = List.filled(fillCount ~/ 2, fill);
Expand Down
5 changes: 2 additions & 3 deletions packages/isar/lib/src/native/native.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ FutureOr<IsarCoreBindings> initializePlatformBindings([String? library]) {
try {
library ??= Platform.isIOS ? null : library ?? Abi.current().localName;

final dylib = Platform.isIOS
? DynamicLibrary.process()
: DynamicLibrary.open(library!);
final dylib = Platform.isIOS ? DynamicLibrary.process() : DynamicLibrary.open(library!);
bindings = IsarCoreBindings(dylib);
} catch (e) {
throw IsarNotReadyError(
Expand Down Expand Up @@ -60,6 +58,7 @@ extension on Abi {
case Abi.macosArm64:
case Abi.macosX64:
return 'libisar.dylib';
case Abi.linuxArm64:
case Abi.linuxX64:
return 'libisar.so';
case Abi.windowsArm64:
Expand Down
5 changes: 3 additions & 2 deletions packages/isar_flutter_libs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ dependencies:
flutter:
sdk: flutter
isar:
version: 0.0.0-placeholder
hosted: https://pub.isar-community.dev/
version: any



flutter:
plugin:
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"