Merge branch 'develop' of https://github.com/GetStream/flutter-samples into new-filter
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
# Configuration for probot-no-response - https://github.com/probot/no-response
|
||||||
|
|
||||||
|
# Number of days of inactivity before an issue is closed for lack of response.
|
||||||
|
daysUntilClose: 7
|
||||||
|
|
||||||
|
# Label requiring a response.
|
||||||
|
responseRequiredLabel: "waiting for customer response"
|
||||||
|
|
||||||
|
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
|
||||||
|
closeComment: >
|
||||||
|
Without additional information, we are unfortunately not sure how to
|
||||||
|
resolve this issue. We are therefore reluctantly going to close this
|
||||||
|
bug for now. Please don't hesitate to comment on the bug if you have
|
||||||
|
any more information for us; we will reopen it right away!
|
||||||
|
Thanks for your contribution.
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
flutter pub get
|
flutter pub get
|
||||||
- name: Copy production config
|
- name: Copy production config
|
||||||
run: echo ${{ secrets.PRODUCTION_CONFIG }} > lib/app_config.dart
|
run: echo "${{ secrets.PRODUCTION_CONFIG }}" > lib/app_config.dart
|
||||||
- name: Build and release
|
- name: Build and release
|
||||||
env:
|
env:
|
||||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
flutter pub get
|
flutter pub get
|
||||||
- name: Copy production config
|
- name: Copy production config
|
||||||
run: echo ${{ secrets.PRODUCTION_CONFIG }} > lib/app_config.dart
|
run: echo "${{ secrets.PRODUCTION_CONFIG }}" > lib/app_config.dart
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
flutter build apk
|
flutter build apk
|
||||||
@@ -66,3 +66,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: android-stream-chat-v1
|
name: android-stream-chat-v1
|
||||||
path: packages/stream_chat_v1/build/app/outputs/apk/release/app-release.apk
|
path: packages/stream_chat_v1/build/app/outputs/apk/release/app-release.apk
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-1
|
||||||
|
- name: Upload APK
|
||||||
|
run: |
|
||||||
|
cp build/app/outputs/apk/release/app-release.apk flutter-sample-app.apk
|
||||||
|
aws s3 cp flutter-sample-app.apk s3://${{ secrets.AWS_S3_BUCKET }} --sse AES256
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ class ProfileVerifyCubit extends Cubit<ProfileState> {
|
|||||||
final ProfileSignInUseCase _profileSignInUseCase;
|
final ProfileSignInUseCase _profileSignInUseCase;
|
||||||
|
|
||||||
void startChatting() async {
|
void startChatting() async {
|
||||||
emit(ProfileState(null, loading: true));
|
|
||||||
final file = state.file;
|
final file = state.file;
|
||||||
|
emit(ProfileState(file, loading: true));
|
||||||
final name = nameController.text;
|
final name = nameController.text;
|
||||||
await _profileSignInUseCase.verify(ProfileInput(
|
await _profileSignInUseCase.verify(ProfileInput(
|
||||||
imageFile: file,
|
imageFile: file,
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
|
|||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 30
|
||||||
ndkVersion '21.4.7075529'
|
ndkVersion '21.4.7075529'
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@@ -41,7 +41,7 @@ android {
|
|||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
applicationId "com.example.example"
|
applicationId "com.example.example"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 30
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.3.50'
|
ext.kotlin_version = '1.5.20'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.6.2'
|
classpath 'com.android.tools.build:gradle:4.2.2'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'com.google.gms:google-services:4.3.2'
|
classpath 'com.google.gms:google-services:4.3.2'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
|||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
|
|
||||||
|
import 'main.dart';
|
||||||
import 'routes/routes.dart';
|
import 'routes/routes.dart';
|
||||||
|
|
||||||
const kStreamApiKey = 'STREAM_API_KEY';
|
const kStreamApiKey = 'STREAM_API_KEY';
|
||||||
@@ -93,7 +94,7 @@ class ChooseUserPage extends StatelessWidget {
|
|||||||
final client = StreamChatClient(
|
final client = StreamChatClient(
|
||||||
kDefaultStreamApiKey,
|
kDefaultStreamApiKey,
|
||||||
logLevel: Level.INFO,
|
logLevel: Level.INFO,
|
||||||
);
|
)..chatPersistenceClient = chatPersistentClient;
|
||||||
|
|
||||||
await client.connectUser(
|
await client.connectUser(
|
||||||
user,
|
user,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class _MyAppState extends State<MyApp>
|
|||||||
final client = StreamChatClient(
|
final client = StreamChatClient(
|
||||||
apiKey ?? kDefaultStreamApiKey,
|
apiKey ?? kDefaultStreamApiKey,
|
||||||
logLevel: Level.SEVERE,
|
logLevel: Level.SEVERE,
|
||||||
);
|
)..chatPersistenceClient = chatPersistentClient;
|
||||||
|
|
||||||
if (userId != null && token != null) {
|
if (userId != null && token != null) {
|
||||||
await client.connectUser(
|
await client.connectUser(
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: example
|
name: example
|
||||||
description: A new Flutter project.
|
description: A new Flutter project.
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 1.6.1
|
version: 1.7.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
@@ -10,16 +10,8 @@ dependencies:
|
|||||||
flutter_app_badger: ^1.2.0
|
flutter_app_badger: ^1.2.0
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
stream_chat_flutter:
|
stream_chat_flutter: ^2.0.0
|
||||||
git:
|
stream_chat_persistence: ^2.0.0
|
||||||
url: https://github.com/GetStream/stream-chat-flutter.git
|
|
||||||
ref: develop
|
|
||||||
path: packages/stream_chat_flutter
|
|
||||||
stream_chat_persistence:
|
|
||||||
git:
|
|
||||||
url: https://github.com/GetStream/stream-chat-flutter.git
|
|
||||||
ref: develop
|
|
||||||
path: packages/stream_chat_persistence
|
|
||||||
flutter_local_notifications: ^5.0.0+4
|
flutter_local_notifications: ^5.0.0+4
|
||||||
flutter_svg: ^0.22.0
|
flutter_svg: ^0.22.0
|
||||||
flutter_secure_storage: ^4.2.0
|
flutter_secure_storage: ^4.2.0
|
||||||
@@ -29,18 +21,6 @@ dependencies:
|
|||||||
lottie: ^1.0.1
|
lottie: ^1.0.1
|
||||||
collection: ^1.15.0-nullsafety.4
|
collection: ^1.15.0-nullsafety.4
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
stream_chat:
|
|
||||||
git:
|
|
||||||
url: https://github.com/GetStream/stream-chat-flutter.git
|
|
||||||
ref: develop
|
|
||||||
path: packages/stream_chat
|
|
||||||
stream_chat_flutter_core:
|
|
||||||
git:
|
|
||||||
url: https://github.com/GetStream/stream-chat-flutter.git
|
|
||||||
ref: develop
|
|
||||||
path: packages/stream_chat_flutter_core
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_launcher_icons: ^0.9.0
|
flutter_launcher_icons: ^0.9.0
|
||||||
test: any
|
test: any
|
||||||
|
|||||||
Reference in New Issue
Block a user