Skip to content

Commit 36e1e88

Browse files
authored
Merge pull request #8 from GetStream/chore/sync_0.12.9
chore: sync with flutter_webrtc 0.12.9
2 parents af95ab9 + 4967a58 commit 36e1e88

37 files changed

+93
-122
lines changed

.github/workflows/publish.yaml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
name: Publish plugin
1+
# .github/workflows/publish.yml
2+
name: Publish to pub.dev
23

34
on:
4-
release:
5-
types: [published]
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*'
68

79
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- name: Install Flutter
13-
uses: subosito/flutter-action@v2
14-
with:
15-
channel: 'stable'
16-
- name: Install project dependencies
17-
run: flutter pub get
18-
- name: Dart Format Check
19-
run: dart format lib/ test/ --set-exit-if-changed
20-
- name: Import Sorter Check
21-
run: flutter pub run import_sorter:main --no-comments --exit-if-changed
22-
- name: Dart Analyze Check
23-
run: flutter analyze
24-
- name: Dart Test Check
25-
run: flutter test
26-
#- name: Check Publish Warnings
27-
# run: dart pub publish --dry-run
28-
- name: Publish
29-
uses: k-paxian/dart-package-publisher@v1.5.1
30-
with:
31-
credentialJson: ${{ secrets.CREDENTIAL_JSON }}
32-
flutter: true
33-
skipTests: true
34-
force: true
10+
publish:
11+
permissions:
12+
id-token: write # Required for authentication using OIDC
13+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
14+
# with:
15+
# working-directory: path/to/package/within/repository

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33
--------------------------------------------
4+
5+
[0.12.9] - 2025-02-13
6+
7+
* [iOS] feat: Add option to start capture without broadcast picker (#1764)
8+
49
[0.12.8] - 2025-02-07
510

611
* [Dart] feat: expose rtc video value (#1754)

android/src/main/java/io/getstream/webrtc/flutter/FlutterWebRTCPlugin.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import io.flutter.plugin.common.BinaryMessenger;
2727
import io.flutter.plugin.common.EventChannel;
2828
import io.flutter.plugin.common.MethodChannel;
29-
import io.flutter.plugin.common.PluginRegistry.Registrar;
3029
import io.flutter.view.TextureRegistry;
3130

3231
/**
@@ -66,25 +65,6 @@ public MediaStreamTrack getRemoteTrack(String trackId) {
6665
return methodCallHandler.getRemoteTrack(trackId);
6766
}
6867

69-
/**
70-
* Plugin registration.
71-
*/
72-
public static void registerWith(Registrar registrar) {
73-
final FlutterWebRTCPlugin plugin = new FlutterWebRTCPlugin();
74-
75-
plugin.startListening(registrar.context(), registrar.messenger(), registrar.textures());
76-
77-
if (registrar.activeContext() instanceof Activity) {
78-
plugin.methodCallHandler.setActivity((Activity) registrar.activeContext());
79-
}
80-
application = ((Application) registrar.context().getApplicationContext());
81-
application.registerActivityLifecycleCallbacks(plugin.observer);
82-
83-
registrar.addViewDestroyListener(view -> {
84-
plugin.stopListening();
85-
return false;
86-
});
87-
}
8868

8969
@Override
9070
public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) {

common/cpp/include/flutter_data_channel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "flutter_common.h"
55
#include "flutter_webrtc_base.h"
66

7-
namespace flutter_webrtc_plugin {
7+
namespace stream_webrtc_flutter_plugin {
88

99
class FlutterRTCDataChannelObserver : public RTCDataChannelObserver {
1010
public:
@@ -49,6 +49,6 @@ class FlutterDataChannel {
4949
FlutterWebRTCBase* base_;
5050
};
5151

52-
} // namespace flutter_webrtc_plugin
52+
} // namespace stream_webrtc_flutter_plugin
5353

5454
#endif // !FLUTTER_WEBRTC_RTC_DATA_CHANNEL_HXX

common/cpp/include/flutter_frame_capturer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <mutex>
1111

12-
namespace flutter_webrtc_plugin {
12+
namespace stream_webrtc_flutter_plugin {
1313

1414
using namespace libwebrtc;
1515

@@ -32,6 +32,6 @@ class FlutterFrameCapturer
3232
bool SaveFrame();
3333
};
3434

35-
} // namespace flutter_webrtc_plugin
35+
} // namespace stream_webrtc_flutter_plugin
3636

3737
#endif // !FLUTTER_WEBRTC_RTC_FRAME_CAPTURER_HXX

common/cpp/include/flutter_frame_cryptor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "rtc_frame_cryptor.h"
88

9-
namespace flutter_webrtc_plugin {
9+
namespace stream_webrtc_flutter_plugin {
1010

1111
class FlutterFrameCryptorObserver : public libwebrtc::RTCFrameCryptorObserver {
1212
public:
@@ -98,6 +98,6 @@ class FlutterFrameCryptor {
9898
std::map<std::string, scoped_refptr<libwebrtc::KeyProvider>> key_providers_;
9999
};
100100

101-
} // namespace flutter_webrtc_plugin
101+
} // namespace stream_webrtc_flutter_plugin
102102

103103
#endif // FLUTTER_WEBRTC_RTC_FRAME_CRYPTOR_HXX

common/cpp/include/flutter_media_stream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "flutter_common.h"
55
#include "flutter_webrtc_base.h"
66

7-
namespace flutter_webrtc_plugin {
7+
namespace stream_webrtc_flutter_plugin {
88

99
class FlutterMediaStream {
1010
public:
@@ -52,6 +52,6 @@ class FlutterMediaStream {
5252
FlutterWebRTCBase* base_;
5353
};
5454

55-
} // namespace flutter_webrtc_plugin
55+
} // namespace stream_webrtc_flutter_plugin
5656

5757
#endif // !FLUTTER_WEBRTC_RTC_GET_USERMEDIA_HXX

common/cpp/include/flutter_peerconnection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "flutter_common.h"
55
#include "flutter_webrtc_base.h"
66

7-
namespace flutter_webrtc_plugin {
7+
namespace stream_webrtc_flutter_plugin {
88

99
class FlutterPeerConnectionObserver : public RTCPeerConnectionObserver {
1010
public:
@@ -203,6 +203,6 @@ const char* peerConnectionStateString(RTCPeerConnectionState state);
203203

204204
const char* iceGatheringStateString(RTCIceGatheringState state);
205205

206-
} // namespace flutter_webrtc_plugin
206+
} // namespace stream_webrtc_flutter_plugin
207207

208208
#endif // !FLUTTER_WEBRTC_RTC_PEER_CONNECTION_HXX

common/cpp/include/flutter_screen_capture.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "rtc_desktop_capturer.h"
88
#include "rtc_desktop_media_list.h"
99

10-
namespace flutter_webrtc_plugin {
10+
namespace stream_webrtc_flutter_plugin {
1111

1212
class FlutterScreenCapture : public MediaListObserver,
1313
public DesktopCapturerObserver {
@@ -55,6 +55,6 @@ class FlutterScreenCapture : public MediaListObserver,
5555
std::vector<scoped_refptr<MediaSource>> sources_;
5656
};
5757

58-
} // namespace flutter_webrtc_plugin
58+
} // namespace stream_webrtc_flutter_plugin
5959

6060
#endif // FLUTTER_SCRREN_CAPTURE_HXX

common/cpp/include/flutter_video_renderer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <mutex>
1111

12-
namespace flutter_webrtc_plugin {
12+
namespace stream_webrtc_flutter_plugin {
1313

1414
using namespace libwebrtc;
1515

@@ -78,6 +78,6 @@ class FlutterVideoRendererManager {
7878
std::map<int64_t, scoped_refptr<FlutterVideoRenderer>> renderers_;
7979
};
8080

81-
} // namespace flutter_webrtc_plugin
81+
} // namespace stream_webrtc_flutter_plugin
8282

8383
#endif // !FLUTTER_WEBRTC_RTC_VIDEO_RENDERER_HXX

0 commit comments

Comments
 (0)