Skip to content

Commit 110c8b7

Browse files
committed
Merge remote-tracking branch 'source-repo/develop'
2 parents 3023e74 + 231751e commit 110c8b7

File tree

186 files changed

+11534
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+11534
-0
lines changed

stream_chat_v1/.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Web related
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release
46+
lib/production_app_config.dart

stream_chat_v1/.metadata

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled.
5+
6+
version:
7+
revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
8+
channel: stable
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
17+
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
18+
- platform: android
19+
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
20+
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

stream_chat_v1/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Stream Chat v1
2+
3+
![](https://raw.githubusercontent.com/GetStream/flutter-samples/master/images/sdk_hero_v4.png)
4+
5+
Stream Chat V1 is a sample app implemented using Stream Chat and Flutter. It is a fully fledged messaging app built using a combination of our pre-made widgets and custom Flutter widgets.
6+
7+
It supports several advanced features like:
8+
9+
- Channels list UI
10+
- Channel UI
11+
- Message reactions
12+
- Link preview
13+
- Image, video and file attachments
14+
- Editing and deleting messages
15+
- Typing indicators
16+
- Read indicators
17+
- Image gallery
18+
- GIF support
19+
- Light and dark themes
20+
- Threads
21+
- Slash commands
22+
- Markdown message formatting
23+
- Count for unread messages
24+
25+
![Features iOS](https://user-images.githubusercontent.com/20601437/110333493-eb023a80-8021-11eb-8fb1-b74f9ef37897.gif)
26+
27+
## Getting Started
28+
29+
Before running this project please ensure Flutter is installed and configured on your machine. If you're new to Flutter, please checkout the [official guide](https://flutter.dev/docs/get-started/install) with installation instructions for your OS.
30+
31+
32+
33+
This project is only configured to support the following platforms:
34+
35+
- Android
36+
- iOS
37+
38+
Web and Desktop are not supported at this time.
39+
40+
After installing Flutter and the necessary toolchain for your device (Android or iOS), connect your device or open your emulator before running the following:
41+
42+
**Clone the repo**
43+
44+
```bash
45+
git clone https://github.com/GetStream/flutter-samples
46+
```
47+
48+
**Open the app folder**
49+
50+
```bash
51+
cd flutter-samples/stream_chat_v1
52+
```
53+
54+
**Install package dependencies:**
55+
56+
```bash
57+
flutter packages get
58+
```
59+
60+
**Open or create an emulator**
61+
62+
```bash
63+
# To run an emulator, run 'flutter emulators --launch <emulator id>'.
64+
# To create a new emulator, run 'flutter emulators --create [--name xyz]'.
65+
# You can find more information on managing emulators at the links below:
66+
# [https://developer.android.com/studio/run/managing-avds](https://developer.android.com/studio/run/managing-avds)[https://developer.android.com/studio/command-line/avdmanager](https://developer.android.com/studio/command-line/avdmanager)
67+
```
68+
69+
**Run the project on your device or emulator:**
70+
71+
```bash
72+
flutter run
73+
```

stream_chat_v1/analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at
17+
# https://dart-lang.github.io/linter/lints/index.html.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

stream_chat_v1/android/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
7+
def localProperties = new Properties()
8+
def localPropertiesFile = rootProject.file('local.properties')
9+
if (localPropertiesFile.exists()) {
10+
localPropertiesFile.withReader('UTF-8') { reader ->
11+
localProperties.load(reader)
12+
}
13+
}
14+
15+
16+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
17+
if (flutterVersionCode == null) {
18+
flutterVersionCode = '1'
19+
}
20+
21+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
22+
if (flutterVersionName == null) {
23+
flutterVersionName = '1.0'
24+
}
25+
26+
android {
27+
namespace "com.example.example"
28+
29+
compileSdkVersion 34
30+
31+
sourceSets {
32+
main.java.srcDirs += 'src/main/kotlin'
33+
}
34+
35+
lintOptions {
36+
disable 'InvalidPackage'
37+
checkReleaseBuilds false
38+
}
39+
40+
defaultConfig {
41+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
42+
applicationId "com.example.example"
43+
minSdkVersion 22
44+
targetSdkVersion 34
45+
versionCode flutterVersionCode.toInteger()
46+
versionName flutterVersionName
47+
multiDexEnabled true
48+
}
49+
50+
compileOptions {
51+
// Flag to enable support for the new language APIs
52+
coreLibraryDesugaringEnabled true
53+
}
54+
55+
// Added this block:
56+
afterEvaluate { project ->
57+
if (project.hasProperty("kotlin")) {
58+
project.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
59+
kotlinOptions {
60+
jvmTarget = "1.8"
61+
}
62+
}
63+
}
64+
}
65+
66+
signingConfigs {
67+
debug {
68+
storeFile file('debug.keystore')
69+
storePassword 'android'
70+
keyAlias 'androiddebugkey'
71+
keyPassword 'android'
72+
}
73+
}
74+
75+
buildTypes {
76+
release {
77+
// TODO: Add your own signing config for the release build.
78+
// Signing with the debug keys for now, so `flutter run --release` works.
79+
signingConfig signingConfigs.debug
80+
}
81+
}
82+
}
83+
84+
flutter {
85+
source '../..'
86+
}
87+
88+
dependencies {
89+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
90+
}
2.06 KB
Binary file not shown.

0 commit comments

Comments
 (0)