Skip to content

Commit 033b000

Browse files
authored
Merge pull request #1 from apiep/master
Merge latest changes
2 parents d6da4ad + d69b9ef commit 033b000

File tree

4 files changed

+34
-6
lines changed

4 files changed

+34
-6
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
on: push
3+
name: Build and Release apk
4+
jobs:
5+
build:
6+
name: Build APK
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-java@v1
11+
with:
12+
java-version: '12.x'
13+
- uses: subosito/flutter-action@v1
14+
with:
15+
flutter-version: '1.12.13+hotfix.8'
16+
- run: flutter pub get
17+
- run: flutter build apk --debug --split-per-abi
18+
- name: Create a Release APK
19+
uses: ncipollo/release-action@v1
20+
with:
21+
artifacts: "build/app/outputs/apk/debug/*.apk"
22+
token: ${{ secrets.TOKEN }}
23+
commit: ${GITHUB_SHA::8}

lib/src/state/app_state.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import 'dart:async';
22

33
import 'package:flutter/foundation.dart';
44
import 'package:mobx/mobx.dart';
5-
import 'package:qiscus_chat_sdk/extensions.dart';
65
import 'package:qiscus_chat_sdk/qiscus_chat_sdk.dart';
76

87
part 'app_state.g.dart';
@@ -22,7 +21,9 @@ abstract class AppStateBase with Store {
2221

2322
@action
2423
Future<void> setup(String appId) {
25-
return qiscusSdk.setup$(appId);
24+
var completer = Completer<void>();
25+
qiscusSdk.setup(appId, callback: (_) => completer.complete());
26+
return completer.future;
2627
}
2728

2829
@action

pubspec.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,11 @@ packages:
448448
qiscus_chat_sdk:
449449
dependency: "direct main"
450450
description:
451-
path: "../qiscus_chat_sdk_dart"
452-
relative: true
453-
source: path
451+
path: "."
452+
ref: master
453+
resolved-ref: bcdf434cfaa52e0600c3da7d1198cb45076d844c
454+
url: "git://github.com/qiscus/qiscus-chat-sdk-flutter.git"
455+
source: git
454456
version: "0.1.0"
455457
quiver:
456458
dependency: transitive

pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ dependencies:
2525
flutter_mobx: ^1.0.1
2626
fluttertoast: ^3.1.3
2727
qiscus_chat_sdk:
28-
path: ../qiscus_chat_sdk_dart
28+
git:
29+
url: git://github.com/qiscus/qiscus-chat-sdk-flutter.git
30+
ref: master
2931
flutter:
3032
sdk: flutter
3133

0 commit comments

Comments
 (0)