File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,10 @@ void main(List<String> arguments) async {
90
90
}
91
91
92
92
bool coreVersionIsInRange (String tag) {
93
- //Sets the range of powersync core version that is compatible with the sqlite3 version
94
- VersionConstraint constraint = VersionConstraint .parse ('>=0.2.0 <0.4.0' );
93
+ // Sets the range of powersync core version that is compatible with the sqlite3 version
94
+ // We're a little more selective in the versions chosen here than the range
95
+ // we're compatible with.
96
+ VersionConstraint constraint = VersionConstraint .parse ('>=0.3.0 <0.4.0' );
95
97
List <String > parts = tag.split ('-' );
96
98
String powersyncPart = parts[1 ];
97
99
Original file line number Diff line number Diff line change @@ -104,15 +104,15 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
104
104
version.split (RegExp (r'[./]' )).take (3 ).map (int .parse).toList ();
105
105
} catch (e) {
106
106
throw SqliteException (1 ,
107
- 'Unsupported powersync extension version. Need >=0.2.0 <0.4 .0, got: $version . Details: $e ' );
107
+ 'Unsupported powersync extension version. Need >=0.2.0 <1.0 .0, got: $version . Details: $e ' );
108
108
}
109
109
110
- // Validate >=0.2.0 <0.4 .0
110
+ // Validate >=0.2.0 <1.0 .0
111
111
if (versionInts[0 ] != 0 ||
112
- (versionInts[1 ] != 2 && versionInts[ 1 ] != 3 ) ||
113
- versionInts[2 ] < 0 ) {
112
+ (versionInts[1 ] < 2 ) ||
113
+ ( versionInts[1 ] == 2 && versionInts[ 2 ] < 0 ) ) {
114
114
throw SqliteException (1 ,
115
- 'Unsupported powersync extension version. Need >=0.2.0 <0.4 .0, got: $version ' );
115
+ 'Unsupported powersync extension version. Need >=0.2.0 <1.0 .0, got: $version ' );
116
116
}
117
117
}
118
118
You can’t perform that action at this time.
0 commit comments