Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a1146d1

Browse files
chore: First commit.
1 parent c9cc26f commit a1146d1

File tree

20 files changed

+700
-1
lines changed

20 files changed

+700
-1
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ doc/api/
1919
*.js_
2020
*.js.deps
2121
*.js.map
22+
.DS_Store

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
--------------------------------------------------------------------------------

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# flutter-whip
2-
WebRTC-HTTP ingestion protocol (WHIP) for flutter
2+
3+
WebRTC-HTTP ingestion protocol (WHIP) library for flutter.

‎analysis_options.yaml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
include: package:pedantic/analysis_options.yaml
2+
3+
linter:
4+
rules:
5+
- always_declare_return_types
6+
- avoid_empty_else
7+
- await_only_futures
8+
- avoid_returning_null_for_void
9+
- camel_case_extensions
10+
- camel_case_types
11+
- cancel_subscriptions
12+
- directives_ordering
13+
- flutter_style_todos
14+
- sort_pub_dependencies
15+
- type_init_formals
16+
- unnecessary_brace_in_string_interps
17+
- unnecessary_const
18+
- unnecessary_new
19+
- unnecessary_getters_setters
20+
- unnecessary_null_aware_assignments
21+
- unnecessary_null_in_if_null_operators
22+
- unnecessary_overrides
23+
- unnecessary_parenthesis
24+
- unnecessary_statements
25+
- unnecessary_string_interpolations
26+
- unnecessary_this
27+
- unrelated_type_equality_checks
28+
- use_rethrow_when_possible
29+
- valid_regexps
30+
- void_checks
31+
32+
analyzer:
33+
errors:
34+
# treat missing required parameters as a warning (not a hint)
35+
missing_required_param: warning
36+
# treat missing returns as a warning (not a hint)
37+
missing_return: warning
38+
# allow having TODOs in the code
39+
todo: ignore
40+
# allow self-reference to deprecated members (we do this because otherwise we have
41+
# to annotate every member in every test, assert, etc, when we deprecate something)
42+
deprecated_member_use_from_same_package: ignore
43+
# Ignore analyzer hints for updating pubspecs when using Future or
44+
# Stream and not importing dart:async
45+
# Please see https://github.com/flutter/flutter/pull/24528 for details.
46+
sdk_version_async_exported_from_core: ignore
47+
invalid_dependency: ignore

‎example/.gitignore‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
.dart_tool/
26+
.flutter-plugins
27+
.packages
28+
.pub-cache/
29+
.pub/
30+
/build/
31+
32+
# Android related
33+
**/android/**/gradle-wrapper.jar
34+
**/android/.gradle
35+
**/android/captures/
36+
**/android/gradlew
37+
**/android/gradlew.bat
38+
**/android/local.properties
39+
**/android/**/GeneratedPluginRegistrant.java
40+
41+
# iOS/XCode related
42+
**/ios/**/*.mode1v3
43+
**/ios/**/*.mode2v3
44+
**/ios/**/*.moved-aside
45+
**/ios/**/*.pbxuser
46+
**/ios/**/*.perspectivev3
47+
**/ios/**/*sync/
48+
**/ios/**/.sconsign.dblite
49+
**/ios/**/.tags*
50+
**/ios/**/.vagrant/
51+
**/ios/**/DerivedData/
52+
**/ios/**/Icon?
53+
**/ios/**/Pods/
54+
**/ios/**/.symlinks/
55+
**/ios/**/profile
56+
**/ios/**/xcuserdata
57+
**/ios/.generated/
58+
**/ios/Flutter/App.framework
59+
**/ios/Flutter/Flutter.framework
60+
**/ios/Flutter/Generated.xcconfig
61+
**/ios/Flutter/app.flx
62+
**/ios/Flutter/app.zip
63+
**/ios/Flutter/flutter_assets/
64+
**/ios/ServiceDefinitions.json
65+
**/ios/Runner/GeneratedPluginRegistrant.*
66+
67+
# Exceptions to above rules.
68+
!**/ios/**/default.mode1v3
69+
!**/ios/**/default.mode2v3
70+
!**/ios/**/default.pbxuser
71+
!**/ios/**/default.perspectivev3
72+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

‎example/README.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# flutter_cisco_meeting_example
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
Make sure your flutter is using the `stable` channel.
8+
9+
- `./scripts/project_tools.sh create`
10+
11+
## For Android/iOS
12+
13+
- `flutter run`
14+
15+
## For Desktop or Web
16+
17+
- `flutter run -d macos`
18+
- `flutter run -d web|chrome`

‎example/lib/main.dart‎

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
import 'package:flutter/material.dart';
2+
3+
void main() {
4+
runApp(MyApp());
5+
}
6+
7+
class MyApp extends StatelessWidget {
8+
// This widget is the root of your application.
9+
@override
10+
Widget build(BuildContext context) {
11+
return MaterialApp(
12+
title: 'Flutter Demo',
13+
theme: ThemeData(
14+
// This is the theme of your application.
15+
//
16+
// Try running your application with "flutter run". You'll see the
17+
// application has a blue toolbar. Then, without quitting the app, try
18+
// changing the primarySwatch below to Colors.green and then invoke
19+
// "hot reload" (press "r" in the console where you ran "flutter run",
20+
// or simply save your changes to "hot reload" in a Flutter IDE).
21+
// Notice that the counter didn't reset back to zero; the application
22+
// is not restarted.
23+
primarySwatch: Colors.blue,
24+
),
25+
home: MyHomePage(title: 'Flutter Demo Home Page'),
26+
);
27+
}
28+
}
29+
30+
class MyHomePage extends StatefulWidget {
31+
MyHomePage({Key? key, required this.title}) : super(key: key);
32+
33+
// This widget is the home page of your application. It is stateful, meaning
34+
// that it has a State object (defined below) that contains fields that affect
35+
// how it looks.
36+
37+
// This class is the configuration for the state. It holds the values (in this
38+
// case the title) provided by the parent (in this case the App widget) and
39+
// used by the build method of the State. Fields in a Widget subclass are
40+
// always marked "final".
41+
42+
final String title;
43+
44+
@override
45+
_MyHomePageState createState() => _MyHomePageState();
46+
}
47+
48+
class _MyHomePageState extends State<MyHomePage> {
49+
int _counter = 0;
50+
51+
void _incrementCounter() {
52+
setState(() {
53+
// This call to setState tells the Flutter framework that something has
54+
// changed in this State, which causes it to rerun the build method below
55+
// so that the display can reflect the updated values. If we changed
56+
// _counter without calling setState(), then the build method would not be
57+
// called again, and so nothing would appear to happen.
58+
_counter++;
59+
});
60+
}
61+
62+
@override
63+
Widget build(BuildContext context) {
64+
// This method is rerun every time setState is called, for instance as done
65+
// by the _incrementCounter method above.
66+
//
67+
// The Flutter framework has been optimized to make rerunning build methods
68+
// fast, so that you can just rebuild anything that needs updating rather
69+
// than having to individually change instances of widgets.
70+
return Scaffold(
71+
appBar: AppBar(
72+
// Here we take the value from the MyHomePage object that was created by
73+
// the App.build method, and use it to set our appbar title.
74+
title: Text(widget.title),
75+
),
76+
body: Center(
77+
// Center is a layout widget. It takes a single child and positions it
78+
// in the middle of the parent.
79+
child: Column(
80+
// Column is also a layout widget. It takes a list of children and
81+
// arranges them vertically. By default, it sizes itself to fit its
82+
// children horizontally, and tries to be as tall as its parent.
83+
//
84+
// Invoke "debug painting" (press "p" in the console, choose the
85+
// "Toggle Debug Paint" action from the Flutter Inspector in Android
86+
// Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
87+
// to see the wireframe for each widget.
88+
//
89+
// Column has various properties to control how it sizes itself and
90+
// how it positions its children. Here we use mainAxisAlignment to
91+
// center the children vertically; the main axis here is the vertical
92+
// axis because Columns are vertical (the cross axis would be
93+
// horizontal).
94+
mainAxisAlignment: MainAxisAlignment.center,
95+
children: <Widget>[
96+
Text(
97+
'You have pushed the button this many times:',
98+
),
99+
Text(
100+
'$_counter',
101+
style: Theme.of(context).textTheme.headline4,
102+
),
103+
],
104+
),
105+
),
106+
floatingActionButton: FloatingActionButton(
107+
onPressed: _incrementCounter,
108+
tooltip: 'Increment',
109+
child: Icon(Icons.add),
110+
), // This trailing comma makes auto-formatting nicer for build methods.
111+
);
112+
}
113+
}

‎example/pubspec.yaml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: flutter_whip_exampl_app
2+
description: A new Flutter project.
3+
version: 1.0.0+1
4+
publish_to: none
5+
6+
environment:
7+
sdk: ">=2.12.0 <3.0.0"
8+
9+
dependencies:
10+
cupertino_icons: ^1.0.0
11+
flutter:
12+
sdk: flutter
13+
flutter_icons: ^1.0.0
14+
flutter_whip_meeting:
15+
path: ../
16+
17+
dev_dependencies:
18+
flutter_test:
19+
sdk: flutter
20+
21+
flutter:
22+
uses-material-design: true

‎example/scripts/add-line.py‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#!/usr/bin/python
2+
# -*- coding: UTF-8 -*-
3+
4+
import sys
5+
import getopt
6+
import re
7+
8+
9+
def findLine(pattern, fp):
10+
line = fp.readline()
11+
line_number = 1
12+
while line:
13+
#print("Line {}: {}".format(line_number, line.strip()))
14+
if pattern in line:
15+
return line_number
16+
line = fp.readline()
17+
line_number += 1
18+
return -1
19+
20+
def insertBefore(filename, pattern, text):
21+
with open(filename, 'r+') as fp:
22+
line_number = findLine(pattern, fp)
23+
if(line_number > 0):
24+
print 'Insert', text,'to line', line_number
25+
fp.seek(0)
26+
lines = fp.readlines()
27+
fp.seek(0)
28+
lines.insert(line_number - 1, text + '\n')
29+
fp.writelines(lines)
30+
return
31+
print 'pattern',text,'not found!'
32+
33+
def replaceText(filename, pattern, text):
34+
with open(filename, 'r') as fp:
35+
lines = fp.read()
36+
fp.close()
37+
lines = (re.sub(pattern, text, lines))
38+
print 'Replace', pattern ,'to', text
39+
fp = open(filename, 'w')
40+
fp.write(lines)
41+
fp.close()
42+
43+
def main(argv):
44+
inputfile = ''
45+
string = ''
46+
text = ''
47+
replace = False
48+
try:
49+
opts, args = getopt.getopt(argv, "hi:s:t:r")
50+
except getopt.GetoptError:
51+
print 'add-line.py -i <inputfile> -s <string> -t <text>'
52+
sys.exit(2)
53+
for opt, arg in opts:
54+
if opt == '-h':
55+
print 'add-line.py -i <inputfile> -s <string> -t <text>'
56+
sys.exit()
57+
elif opt in ("-i"):
58+
inputfile = arg
59+
elif opt in ("-s"):
60+
string = arg
61+
elif opt in ("-t"):
62+
text = arg
63+
elif opt in ("-r"):
64+
replace = True
65+
if(replace):
66+
replaceText(inputfile, string, text)
67+
else:
68+
insertBefore(inputfile, string, text)
69+
70+
if __name__ == "__main__":
71+
main(sys.argv[1:])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /