Skip to content

Commit fe32351

Browse files
authored
renamed 1.0.28 to 2.0.0 (#480)
- Added warning to parse_server_sdk changelog - Added warning to parse_server_sdk readme
1 parent e35d28d commit fe32351

File tree

9 files changed

+71
-61
lines changed

9 files changed

+71
-61
lines changed

docs/migrate-1-0-28.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

docs/migrate-1-0-28.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
migrate-2-0-0.md

docs/migrate-2-0-0.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Migrate your Flutter application to version 2.0.0
2+
3+
Starting with version 2.0.0, this repository is now separated in a pure dart (parse_server_sdk) and a flutter package (parse_server_sdk_flutter).
4+
This was done in order to provide a dart package for the parse-server, while keeping maintenance simple.
5+
You can find both packages in the package directory.
6+
7+
### 1. pubspec.yaml
8+
In your projects pubspec.yaml at the dependencies section, you have to change
9+
```
10+
dependencies:
11+
parse_server_sdk: ^1.0.27
12+
```
13+
to
14+
```
15+
dependencies:
16+
parse_server_sdk_flutter: ^2.0.0
17+
```
18+
This is the current released version of the parse_server_sdk_flutter package: [![pub package](https://img.shields.io/pub/v/parse_server_sdk_flutter.svg)](https://pub.dev/packages/parse_server_sdk_flutter)
19+
20+
### 2. imports
21+
As the package name changed, you have to change
22+
```
23+
import 'package:parse_server_sdk/parse_server_sdk.dart';
24+
```
25+
to
26+
```
27+
import 'package:parse_server_sdk_flutter/parse_server_sdk.dart';
28+
```
29+
in every file.
30+
31+
It is recommended to do so by the replacement feature of your IDE.
32+
33+
### optional: provide app information on web
34+
As flutter web is now in beta, this SDK aims to be web compatible.
35+
But there are some parts completely different on web. For example, the wep-app cant determine it's name, version or packagename.
36+
That's why you should provide this information on web.
37+
```dart
38+
Parse().initialize(
39+
...
40+
appName: kIsWeb ? "MyApplication" : null,
41+
appVersion: kIsWeb ? "Version 1" : null,
42+
appPackageName: kIsWeb ? "com.example.myapplication" : null,
43+
);
44+
```
45+
46+
### optional: adjust your tests
47+
You tests might fail if the package tries to automatically discover facts like you applications name, version, package name or the default file directory.
48+
You can avoid this automatic discovery by providing values for `appName`, `appVersion`, `appPackageName` as well as `fileDirectory` at you `Parse().initialize()` call.
49+
50+
### changed network library
51+
In order to provide a `ProgressCallback` for heavy file operations,
52+
the network library was switched from [http](https://pub.dev/packages/http) to [dio](https://pub.dev/packages/dio).
53+
There should be no breaking changes regarding this change, except if you are overriding the `ParseHTTPClient`.

packages/dart/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## 1.0.28
1+
## 2.0.0
2+
##### Warning: This release contains breaking changes. If you are using flutter you should migrate using *[this](https://github.com/parse-community/Parse-SDK-Flutter/blob/release/2.0.0/docs/migrate-2-0-0.md)* guide.
3+
24
- Added full web support
35
- split this package in a dart and a flutter one
46
- [flutter package](https://pub.dev/packages/parse_server_sdk_flutter)
@@ -7,6 +9,9 @@
79
- Bug fixes
810
- general improvements
911

12+
## 1.0.28
13+
1.0.28 was renamed to 2.0.0
14+
1015
## 1.0.27
1116
User login / signUp / loginAnonymous delete SessionId stored in device before calling server
1217

packages/dart/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
---
77

88
**This is now a dart package. The Flutter package was moved [here](https://pub.dev/packages/parse_server_sdk_flutter).**
9+
If you are using flutter you should migrate using [this](https://github.com/parse-community/Parse-SDK-Flutter/blob/release/2.0.0/docs/migrate-2-0-0.md) guide.
910

1011
**THIS README IS WORK IN PROGRESS!**
1112
Help out to improve this README on [GitHub](https://github.com/parse-community/Parse-SDK-Flutter/edit/master/packages/dart/README.md).
@@ -19,7 +20,7 @@ This is a work in progress and we are consistently updating it. Please let us kn
1920
To install, either add to your pubspec.yaml
2021
```yml
2122
dependencies:
22-
parse_server_sdk: ^1.0.28
23+
parse_server_sdk: ^2.0.0
2324
```
2425
or clone this repository and add to your project. As this is an early development with multiple contributors, it is probably best to download/clone and keep updating as an when a new feature is added.
2526

packages/dart/lib/src/base/parse_constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part of flutter_parse_sdk;
22

33
// Library
4-
const String keySdkVersion = '1.0.28';
4+
const String keySdkVersion = '2.0.0';
55
const String keyLibraryName = 'Flutter Parse SDK';
66

77
// End Points

packages/dart/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: parse_server_sdk
22
description: Dart plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
3-
version: 1.0.28
3+
version: 2.0.0
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55

66
environment:

packages/flutter/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
## 1.0.28
1+
## 2.0.0
2+
First release.
23

4+
## 1.0.28
5+
Renamed to 2.0.0

packages/flutter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a work in progress and we are consistently updating it. Please let us kn
1414
To install, either add to your pubspec.yaml
1515
```yml
1616
dependencies:
17-
parse_server_sdk: ^1.0.28
17+
parse_server_sdk: ^2.0.0
1818
```
1919
or clone this repository and add to your project. As this is an early development with multiple contributors, it is probably best to download/clone and keep updating as an when a new feature is added.
2020

packages/flutter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: parse_server_sdk_flutter
22
description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
3-
version: 1.0.28
3+
version: 2.0.0
44
homepage: https://github.com/phillwiggins/flutter_parse_sdk
55

66
environment:
@@ -10,7 +10,7 @@ dependencies:
1010
flutter:
1111
sdk: flutter
1212

13-
parse_server_sdk: ^1.0.28
13+
parse_server_sdk: ^2.0.0
1414

1515
# Networking
1616
dio: ^3.0.10

0 commit comments

Comments
 (0)