Skip to content

Commit

Permalink
renamed 1.0.28 to 2.0.0 (#480)
Browse files Browse the repository at this point in the history
- Added warning to parse_server_sdk changelog
- Added warning to parse_server_sdk readme
  • Loading branch information
fischerscode authored Oct 13, 2020
1 parent e35d28d commit fe32351
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 61 deletions.
53 changes: 0 additions & 53 deletions docs/migrate-1-0-28.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/migrate-1-0-28.md
53 changes: 53 additions & 0 deletions docs/migrate-2-0-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Migrate your Flutter application to version 2.0.0

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).
This was done in order to provide a dart package for the parse-server, while keeping maintenance simple.
You can find both packages in the package directory.

### 1. pubspec.yaml
In your projects pubspec.yaml at the dependencies section, you have to change
```
dependencies:
parse_server_sdk: ^1.0.27
```
to
```
dependencies:
parse_server_sdk_flutter: ^2.0.0
```
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)

### 2. imports
As the package name changed, you have to change
```
import 'package:parse_server_sdk/parse_server_sdk.dart';
```
to
```
import 'package:parse_server_sdk_flutter/parse_server_sdk.dart';
```
in every file.

It is recommended to do so by the replacement feature of your IDE.

### optional: provide app information on web
As flutter web is now in beta, this SDK aims to be web compatible.
But there are some parts completely different on web. For example, the wep-app cant determine it's name, version or packagename.
That's why you should provide this information on web.
```dart
Parse().initialize(
...
appName: kIsWeb ? "MyApplication" : null,
appVersion: kIsWeb ? "Version 1" : null,
appPackageName: kIsWeb ? "com.example.myapplication" : null,
);
```

### optional: adjust your tests
You tests might fail if the package tries to automatically discover facts like you applications name, version, package name or the default file directory.
You can avoid this automatic discovery by providing values for `appName`, `appVersion`, `appPackageName` as well as `fileDirectory` at you `Parse().initialize()` call.

### changed network library
In order to provide a `ProgressCallback` for heavy file operations,
the network library was switched from [http](https://pub.dev/packages/http) to [dio](https://pub.dev/packages/dio).
There should be no breaking changes regarding this change, except if you are overriding the `ParseHTTPClient`.
7 changes: 6 additions & 1 deletion packages/dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 1.0.28
## 2.0.0
##### 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.

- Added full web support
- split this package in a dart and a flutter one
- [flutter package](https://pub.dev/packages/parse_server_sdk_flutter)
Expand All @@ -7,6 +9,9 @@
- Bug fixes
- general improvements

## 1.0.28
1.0.28 was renamed to 2.0.0

## 1.0.27
User login / signUp / loginAnonymous delete SessionId stored in device before calling server

Expand Down
3 changes: 2 additions & 1 deletion packages/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
---

**This is now a dart package. The Flutter package was moved [here](https://pub.dev/packages/parse_server_sdk_flutter).**
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.

**THIS README IS WORK IN PROGRESS!**
Help out to improve this README on [GitHub](https://github.com/parse-community/Parse-SDK-Flutter/edit/master/packages/dart/README.md).
Expand All @@ -19,7 +20,7 @@ This is a work in progress and we are consistently updating it. Please let us kn
To install, either add to your pubspec.yaml
```yml
dependencies:
parse_server_sdk: ^1.0.28
parse_server_sdk: ^2.0.0
```
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.
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/base/parse_constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of flutter_parse_sdk;

// Library
const String keySdkVersion = '1.0.28';
const String keySdkVersion = '2.0.0';
const String keyLibraryName = 'Flutter Parse SDK';

// End Points
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: parse_server_sdk
description: Dart plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
version: 1.0.28
version: 2.0.0
homepage: https://github.com/phillwiggins/flutter_parse_sdk

environment:
Expand Down
5 changes: 4 additions & 1 deletion packages/flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## 1.0.28
## 2.0.0
First release.

## 1.0.28
Renamed to 2.0.0
2 changes: 1 addition & 1 deletion packages/flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This is a work in progress and we are consistently updating it. Please let us kn
To install, either add to your pubspec.yaml
```yml
dependencies:
parse_server_sdk: ^1.0.28
parse_server_sdk: ^2.0.0
```
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.
Expand Down
4 changes: 2 additions & 2 deletions packages/flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: parse_server_sdk_flutter
description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com)
version: 1.0.28
version: 2.0.0
homepage: https://github.com/phillwiggins/flutter_parse_sdk

environment:
Expand All @@ -10,7 +10,7 @@ dependencies:
flutter:
sdk: flutter

parse_server_sdk: ^1.0.28
parse_server_sdk: ^2.0.0

# Networking
dio: ^3.0.10
Expand Down

0 comments on commit fe32351

Please sign in to comment.