Skip to content

Commit 6ac487e

Browse files
authored
remove depraceted env file usages (#1087)
1 parent c8683bf commit 6ac487e

File tree

6 files changed

+29
-144
lines changed

6 files changed

+29
-144
lines changed

.github/workflows/app-distribute.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ on:
3131
env:
3232
FLUTTER_VERSION: "3.35.3"
3333
FLUTTER_CHANNEL: stable
34-
ENV_PROPERTIES: ${{ secrets.ENV_PROPERTIES }}
3534
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
3635
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
3736
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
@@ -78,7 +77,6 @@ jobs:
7877

7978
- name: Prepare environment
8079
run: |
81-
echo "${{ env.ENV_PROPERTIES }}" > .env
8280
echo "${{ env.APPSTORE_API_KEY }}" | base64 --decode > ~/.ssh/appstore_api_key
8381
8482
- name: Setup Ruby and Gems
@@ -133,7 +131,6 @@ jobs:
133131

134132
- name: Prepare environment
135133
run: |
136-
echo "${{ env.ENV_PROPERTIES }}" > .env
137134
echo "${{ env.CREDENTIAL_FILE_CONTENT }}" | base64 --decode | jq > dogfooding/android/firebase-service-account.json
138135
139136
- name: Setup Ruby and Gems

.github/workflows/stream_video_flutter_workflow.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: stream_video_flutter_workflow
33
env:
44
FLUTTER_CHANNEL: stable
55
FLUTTER_VERSION: 3.35.3
6-
ENV_PROPERTIES: ${{ secrets.ENV_PROPERTIES }}
76

87
on:
98
pull_request:
@@ -50,7 +49,6 @@ jobs:
5049

5150
- name: Prepare environment
5251
run: |
53-
echo "${{ env.ENV_PROPERTIES }}" > .env &&
5452
melos run generate:all
5553
5654
# TODO: Treat info and warning as error once all packages solve their issues.
@@ -106,7 +104,6 @@ jobs:
106104

107105
- name: Prepare environment
108106
run: |
109-
echo "${{ env.ENV_PROPERTIES }}" > .env &&
110107
melos run generate:all
111108
112109
- name: Build Example

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ We use [Melos](https://melos.invertase.dev) to manage this repository.
3737
## Process to get started with this repository
3838

3939
1. Clone the base repository.
40-
2. All API keys and users used in the sample apps are to be stored in a file named '.env' at the root of the project.
41-
3. You will find a template for the env file entitled 'env.sample' at the root of the project. Fill out this template and store it as '.env'.
4240
4. Run `melos postclean` to clean the project.
4341
5. Run `melos bootstrap` to fetch dependencies for all projects.
44-
6. Run `melos generate:all` to generate the required env files. If there are any changes in the '.env' file, regenerate this.
42+
6. Run `melos generate:all` to generate the required files.
4543
7. You can now run any app in the project or start making changes to the SDK.
4644

4745
If you see any unexpected behaviour in the repository, feel free to [file an issue](https://github.com/GetStream/stream-video-flutter/issues/new) in the repository.

env.sample

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/stream_video_flutter/example/lib/app_config.dart

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
11
import 'package:stream_video_flutter/stream_video_flutter.dart';
22

3-
import 'env/env.dart';
4-
53
final sampleUsers = <UserInfo>[
64
const UserInfo(
7-
id: Env.sampleUserId00,
8-
name: Env.sampleUserName00,
9-
role: Env.sampleUserRole00,
10-
image: Env.sampleUserImage00,
5+
id: 'vasil',
6+
name: 'Willard Hessel',
7+
role: 'admin',
8+
image:
9+
'https://getstream.io/chat/docs/sdk/avatars/jpg/Willard%20Hessel.jpg',
1110
),
1211
const UserInfo(
13-
id: Env.sampleUserId01,
14-
name: Env.sampleUserName01,
15-
role: Env.sampleUserRole01,
16-
image: Env.sampleUserImage01,
12+
id: 'veselin',
13+
name: 'Blanche Schoen',
14+
role: 'admin',
15+
image:
16+
'https://getstream.io/chat/docs/sdk/avatars/jpg/Blanche%20Schoen.jpg',
1717
),
1818
const UserInfo(
19-
id: Env.sampleUserId02,
20-
name: Env.sampleUserName02,
21-
role: Env.sampleUserRole02,
22-
image: Env.sampleUserImage02,
19+
id: 'valia',
20+
name: 'Bernard Windler',
21+
role: 'admin',
22+
image:
23+
'https://getstream.io/chat/docs/sdk/avatars/jpg/Bernard%20Windler.jpg',
2324
),
2425
const UserInfo(
25-
id: Env.sampleUserId03,
26-
name: Env.sampleUserName03,
27-
role: Env.sampleUserRole03,
28-
image: Env.sampleUserImage03,
26+
id: 'damjan',
27+
name: 'Tyrone Bailey',
28+
role: 'admin',
29+
image: 'https://getstream.io/chat/docs/sdk/avatars/jpg/Tyrone%20Bailey.jpg',
2930
),
3031
const UserInfo(
31-
id: Env.sampleUserId04,
32-
name: Env.sampleUserName04,
33-
role: Env.sampleUserRole04,
34-
image: Env.sampleUserImage04,
32+
id: 'jordan',
33+
name: 'Claudia Bradtke',
34+
role: 'admin',
35+
image:
36+
'https://getstream.io/chat/docs/sdk/avatars/jpg/Claudia%20Bradtke.jpg',
3537
),
3638
const UserInfo(
37-
id: Env.sampleUserId05,
38-
name: Env.sampleUserName05,
39-
role: Env.sampleUserRole05,
40-
image: Env.sampleUserImage05,
39+
id: 'ina',
40+
name: 'Byron Waelchi',
41+
role: 'admin',
42+
image: 'https://getstream.io/chat/docs/sdk/avatars/jpg/Byron%20Waelchi.jpg',
4143
),
4244
const UserInfo(
4345
id: 'alex',

packages/stream_video_flutter/example/lib/env/env.dart

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)