Skip to content

Commit 855f0ce

Browse files
Merge pull request #19 from contentstack/development
Development
2 parents 01fa047 + c10c98c commit 855f0ce

24 files changed

+336
-147
lines changed

. travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ dart_task:
99
- pub global activate remove_from_coverage
1010
- pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '.g.dart$'
1111
- genhtml -o coverage coverage/lcov.info
12-
- open coverage/index.html
12+
- open coverage/index.html

.dccache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v{{version}}'
8+
9+
# Publish using the reusable workflow from dart-lang.
10+
jobs:
11+
publish:
12+
permissions:
13+
id-token: write # Required for authentication using OIDC
14+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
15+
with:
16+
environment: 'pub.dev'
17+
working-directory: .

.talismanrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fileignoreconfig:
2+
- filename: pubspec.lock
3+
checksum: d37af197ed50d9896ef5e9e6c4ad4961c11c2c49765e7cb4f4b69695fa562aa5
4+
version: ""

.vscode/launch.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "contentstack-dart",
6+
"request": "launch",
7+
"type": "dart"
8+
}
9+
]
10+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## v0.5.1 - Added support for gcp_na region
4+
#### Added support for gcp_na region
5+
36
## v0.5.0 - Multiple-reference issue fixed
47

58
### **MAR-16-2022**

LICENSE

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
MIT License
2-
3-
Copyright (c) 2012 - 2021 Contentstack. All rights reserved.
1+
# MIT License
42

3+
Copyright (c) 2012 - 2024 Contentstack. All rights reserved.
54

65
Permission is hereby granted, free of charge, to any person obtaining a copy
76
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# ![Contentstack](https://www.contentstack.com/docs/static/images/contentstack.png)
32

43
## Dart SDK for Contentstack
@@ -8,6 +7,8 @@
87
![Dart CI](https://github.com/contentstack/contentstack-dart/workflows/Dart%20CI/badge.svg)
98
![dartdoc](https://img.shields.io/badge/dartdoc-latest-<green>.svg)
109

10+
<!-- ![Coverage](https://raw.githubusercontent.com/contentstack/contentstack-dart/master/coverage_badge.svg?sanitize=true) -->
11+
1112
![issues](https://img.shields.io/github/issues/contentstack/contentstack-dart)
1213
![fork](https://img.shields.io/github/forks/contentstack/contentstack-dart)
1314
![starts](https://img.shields.io/github/stars/contentstack/contentstack-dart)
@@ -71,9 +72,9 @@ Learn how to work with [Environments](https://www.contentstack.com/docs/develope
7172

7273
### Contentstack Dart SDK: 5-minute Quickstart
7374

74-
#### __Initializing your SDK__
75+
#### **Initializing your SDK**
7576

76-
To initialize the SDK, specify application API key, access token, and environment name of the stack
77+
To initialize the SDK, specify application API key, access token, and environment name of the stack
7778
as shown in the snippet given below (config is optional):
7879

7980
```dart

coverage.json

Whitespace-only changes.

example/example.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Contentstack Examples
32

43
## Developer's Guide
@@ -50,7 +49,10 @@ flutter pub get
5049

5150
Now in your dart or flutter code, you can use
5251

52+
```
53+
5354
import 'package:contentstack/contentstack.dart' as contentstack;
55+
```
5456

5557
### Initialize SDK
5658

@@ -61,7 +63,7 @@ import 'package:contentstack/contentstack.dart' as contentstack;
6163
final stack = contentstack.Stack("apiKey", "deliveryToken", "environment");
6264
```
6365

64-
## Initialize by configuration
66+
## Initialize by configuration
6567

6668
```dart
6769
import 'package:contentstack/contentstack.dart' as contentstack;
@@ -169,3 +171,4 @@ await assetQuery.find<List<AssetModel>, Null>().then((response) {
169171
}).catchError((error) {
170172
print(error.message.toString());
171173
});
174+
```

0 commit comments

Comments
 (0)