Skip to content

Commit 19a2797

Browse files
committed
first commit
0 parents  commit 19a2797

File tree

102 files changed

+3884
-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.

102 files changed

+3884
-0
lines changed

.gitignore

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

.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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: 135454af32477f815a7525073027a3ff9eff1bfd
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: 135454af32477f815a7525073027a3ff9eff1bfd
17+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
18+
- platform: android
19+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
20+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
21+
- platform: ios
22+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
23+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
24+
- platform: linux
25+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
26+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
27+
- platform: macos
28+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
29+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
30+
- platform: web
31+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
32+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
33+
- platform: windows
34+
create_revision: 135454af32477f815a7525073027a3ff9eff1bfd
35+
base_revision: 135454af32477f815a7525073027a3ff9eff1bfd
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "DemoWebRTC Dev Debug",
6+
"program": "lib/main_dev.dart",
7+
"request": "launch",
8+
"type": "dart",
9+
"args": ["--flavor", "dev", "--debug"]
10+
},
11+
{
12+
"name": "DemoWebRTC Dev Release",
13+
"program": "lib/main_dev.dart",
14+
"request": "launch",
15+
"type": "dart",
16+
"args": ["--flavor", "dev", "--release"]
17+
},
18+
{
19+
"name": "DemoWebRTC Prod Debug",
20+
"program": "lib/main.dart",
21+
"request": "launch",
22+
"type": "dart",
23+
"args": ["--flavor", "prod", "--debug"]
24+
},
25+
{
26+
"name": "DemoWebRTC Prod Release",
27+
"program": "lib/main.dart",
28+
"request": "launch",
29+
"type": "dart",
30+
"args": ["--flavor", "prod", "--release"]
31+
}
32+
]
33+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": true,
4+
},
5+
"files.exclude": {
6+
"**/*.freezed.dart": true,
7+
"**/*.g.dart": true
8+
},
9+
}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# demo_webrtc
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
include: package:very_good_analysis/analysis_options.yaml
2+
3+
linter:
4+
rules:
5+
# To change
6+
file_names: false
7+
avoid_positional_boolean_parameters: false
8+
# To review
9+
avoid_dynamic_calls: false
10+
overridden_fields: false
11+
unawaited_futures: false
12+
# Permanent rules
13+
lines_longer_than_80_chars: false
14+
use_build_context_synchronously: false
15+
annotate_overrides: false
16+
prefer_if_elements_to_conditional_expressions: false
17+
always_use_package_imports: false
18+
public_member_api_docs: false
19+
unnecessary_lambdas: false
20+
21+
analyzer:
22+
strong-mode:
23+
implicit-casts: true
24+
implicit-dynamic: true
25+
exclude:
26+
- "**/*.g.dart"
27+
- "**/*.gr.dart"
28+
- "**/*.config.dart"
29+
- "**/*.freezed.dart"
30+
errors:
31+
unused_import: error
32+
invalid_annotation_target: ignore
33+
sort_pub_dependencies: ignore
34+
avoid_renaming_method_parameters: ignore
35+
type_annotate_public_apis: ignore

android/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion flutter.compileSdkVersion
30+
ndkVersion flutter.ndkVersion
31+
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += 'src/main/kotlin'
43+
}
44+
45+
defaultConfig {
46+
applicationId "com.brprogrammer.demo_webrtc"
47+
minSdkVersion 23
48+
targetSdkVersion flutter.targetSdkVersion
49+
versionCode flutterVersionCode.toInteger()
50+
versionName flutterVersionName
51+
}
52+
53+
buildTypes {
54+
release {
55+
// TODO: Add your own signing config for the release build.
56+
// Signing with the debug keys for now, so `flutter run --release` works.
57+
signingConfig signingConfigs.debug
58+
}
59+
}
60+
61+
flavorDimensions "flavor-type"
62+
63+
productFlavors {
64+
dev {
65+
dimension "flavor-type"
66+
applicationIdSuffix ".dev"
67+
versionNameSuffix "-dev"
68+
}
69+
prod {
70+
dimension "flavor-type"
71+
}
72+
}
73+
}
74+
75+
flutter {
76+
source '../..'
77+
}
78+
79+
dependencies {
80+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
81+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.brprogrammer.demo_webrtc">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
5+
to allow setting breakpoints, to provide hot reload, etc.
6+
-->
7+
<uses-permission android:name="android.permission.INTERNET"/>
8+
</manifest>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name" >Demo WebRTC Dev</string>
4+
</resources>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.brprogrammer.demo_webrtc">
3+
<uses-feature android:name="android.hardware.camera"/>
4+
<uses-feature android:name="android.hardware.cameraautofocus"/>
5+
<uses-permission android:name="android.permission.CAMERA"/>
6+
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
7+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
8+
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
9+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
10+
<uses-permission android:name="android.permission.INTERNET"/>
11+
<application
12+
android:label="@string/app_name"
13+
android:icon="@mipmap/ic_launcher"
14+
android:usesCleartextTraffic="true">
15+
<activity
16+
android:name=".MainActivity"
17+
android:exported="true"
18+
android:launchMode="singleTop"
19+
android:theme="@style/LaunchTheme"
20+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
21+
android:hardwareAccelerated="true"
22+
android:windowSoftInputMode="adjustResize">
23+
<!-- Specifies an Android theme to apply to this Activity as soon as
24+
the Android process has started. This theme is visible to the user
25+
while the Flutter UI initializes. After that, this theme continues
26+
to determine the Window background behind the Flutter UI. -->
27+
<meta-data
28+
android:name="io.flutter.embedding.android.NormalTheme"
29+
android:resource="@style/NormalTheme"
30+
/>
31+
<intent-filter>
32+
<action android:name="android.intent.action.MAIN"/>
33+
<category android:name="android.intent.category.LAUNCHER"/>
34+
</intent-filter>
35+
</activity>
36+
<!-- Don't delete the meta-data below.
37+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
38+
<meta-data
39+
android:name="flutterEmbedding"
40+
android:value="2" />
41+
</application>
42+
</manifest>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.brprogrammer.demo_webrtc
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity: FlutterActivity() {
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="@android:color/white" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>
Loading
Loading
Loading
Loading
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
the Flutter engine draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">?android:colorBackground</item>
17+
</style>
18+
</resources>

0 commit comments

Comments
 (0)