Skip to content

Commit

Permalink
Merge pull request #47 from SaltechSystems/adding-workflows
Browse files Browse the repository at this point in the history
Added workflows
  • Loading branch information
bawelter committed Jul 9, 2020
2 parents 1b57d71 + f75eb24 commit 3402bac
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 51 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/flutter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dart CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

# container:
# image: google/dart:latest

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: flutter test
- name: Publish dry run
run: flutter pub publish --dry-run
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish package to pub.dev

on:
release:
types: [ created,

jobs:

build:

runs-on: ubuntu-latest

container:
image: google/dart:latest

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1593616628458
}
EOF
- name: Install dependencies
run: flutter pub get
- name: Document plugin
run: |
export FLUTTER_ROOT="$FLUTTER_HOME"
pub global activate dartdoc
pub global run dartdoc
- name: Publish plugin
run: flutter pub publish
95 changes: 50 additions & 45 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,79 +1,84 @@
## 2.5.0
## 2.7.1+2

* Initial Release for the plugin using Couchbase Mobile 2.5
* Added indexes
* Added explain to queries

## 2.5.1
## 2.7.1+1

* Updated documentation
* Fixed issue with optional Session cookieName

## 2.5.1+1
## 2.7.1

* Changed return type of class Database documentWithId from Map to Document
* Populated doc/api using dartdoc
* Fixed some format issues
* Update libraries to version 2.7.1
* Fixed example for logging out
* Updated console logging to Debug for debug mode / Error for everything else
* Removed file logging

## 2.5.1+2
## 2.7.0+3

* Added all classes as part of couchbase_lite library to eliminate the need to import every class individually
* Giving a simplified example and advanced example

## 2.5.1+3
## 2.7.0+2

* Fixed issue with Replication EventChannel
* Added Travis CI and Code Coverage with Coveralls
* Added support for the having clause
* Fixed some issues with Queries
* Updated documentation

## 2.5.1+4
## 2.7.0+1

* Updated documentation
* Added more test cases
* Updated Examples to use bloc pattern

# 2.5.1+5
## 2.7.0

* Fixed Replicator Configuration bug which required certain variables like Pinned Certificate to not receive an Platform Error
* Changed the Map object in Document from unmodifiable to a modifiable copy of the Map object
* Renamed the functions In,Is,As to in,iS,aS to comply with flutter plugin standards
* Added a destroy method to Replicator for cleaning up variable references and listeners
* Updated Coubchbase Lite libraries to version 2.7.0
* Migrated to Android X
* Added concurrency control

# 2.5.1+6
# 2.5.1+8

* Fixed an issue where Query Listeners were not being released
* Fixed an issue where the database reference was not being released on close for Android
* Fixed a bug on Android which results in an error for not posting results on the UI Thread

# 2.5.1+7

* Deprecated Database saveDocument methods and replaced with save taking a MutableDocument as an argument
* Fixed a concurrent modification exception with query listeners

# 2.5.1+8
# 2.5.1+6

* Fixed a bug on Android which results in an error for not posting results on the UI Thread
* Fixed an issue where Query Listeners were not being released
* Fixed an issue where the database reference was not being released on close for Android

## 2.7.0
# 2.5.1+5

* Updated Coubchbase Lite libraries to version 2.7.0
* Migrated to Android X
* Added concurrency control
* Fixed Replicator Configuration bug which required certain variables like Pinned Certificate to not receive an Platform Error
* Changed the Map object in Document from unmodifiable to a modifiable copy of the Map object
* Renamed the functions In,Is,As to in,iS,aS to comply with flutter plugin standards
* Added a destroy method to Replicator for cleaning up variable references and listeners

## 2.7.0+1
## 2.5.1+4

* Updated Examples to use bloc pattern
* Updated documentation
* Added more test cases

## 2.7.0+2
## 2.5.1+3

* Updated documentation
* Fixed issue with Replication EventChannel
* Added Travis CI and Code Coverage with Coveralls
* Added support for the having clause
* Fixed some issues with Queries

## 2.7.0+3
## 2.5.1+2

* Giving a simplified example and advanced example
* Added all classes as part of couchbase_lite library to eliminate the need to import every class individually

## 2.7.1
## 2.5.1+1

* Update libraries to version 2.7.1
* Fixed example for logging out
* Updated console logging to Debug for debug mode / Error for everything else
* Removed file logging
* Changed return type of class Database documentWithId from Map to Document
* Populated doc/api using dartdoc
* Fixed some format issues

## 2.7.1+1
## 2.5.1

* Updated documentation

## 2.5.0

* Fixed issue with optional Session cookieName
* Initial Release for the plugin using Couchbase Mobile 2.5
2 changes: 1 addition & 1 deletion example/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"couchbase_lite","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_macos"]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]}]}
{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"couchbase_lite","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_linux","url_launcher_macos"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]}]}
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Demonstrates how to use the couchbase_lite plugin.
publish_to: 'none'

environment:
sdk: ">=2.8.3 <3.0.0"
sdk: ">=2.1.0 <3.0.0"

dependencies:
# rxdart is used for the database and observable response classes
Expand Down
16 changes: 12 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: couchbase_lite
description: Flutter plugin for Couchbase Lite Community Edition, an embedded lightweight, noSQL database with live synchronization and offline support on Android and iOS.
version: 2.7.1+1
version: 2.7.1+2
homepage: https://github.com/SaltechSystems/couchbase_lite

environment:
sdk: ">=2.1.0 <3.0.0"
# Flutter versions prior to 1.12 did not support the
# flutter.plugin.platforms map.
flutter: ">=1.12.0 <2.0.0"

dependencies:
built_collection: '>=2.0.0 <5.0.0'
built_value: '>=5.5.5 <8.0.0'
uuid: ^2.0.4
uuid: '>=2.0.4 <3.0.0'
meta: '>=1.1.6 <2.0.0'

flutter:
sdk: flutter
Expand All @@ -32,8 +36,12 @@ flutter:
# be modified. They are used by the tooling to maintain consistency when
# adding or updating assets for this project.
plugin:
androidPackage: com.saltechsystems.couchbase_lite
pluginClass: CouchbaseLitePlugin
platforms:
android:
package: com.saltechsystems.couchbase_lite
pluginClass: CouchbaseLitePlugin
ios:
pluginClass: CouchbaseLitePlugin

# To add assets to your plugin package, add an assets section, like this:
# assets:
Expand Down

0 comments on commit 3402bac

Please sign in to comment.