Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v0.0.4 #50

Merged
merged 36 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
43fbf7b
disabled video fix for grid view
Meherdeep Sep 8, 2021
0994a30
upgrading gradle version to 7.0.1
Meherdeep Sep 9, 2021
41307f3
Optional Callbacks
tadaspetra Sep 10, 2021
7324b17
Add curly braces for linter
tadaspetra Sep 10, 2021
679776a
Added in all event handlers
tadaspetra Sep 16, 2021
ac49622
Added in all the types from Agora SDK
tadaspetra Sep 17, 2021
1c239f5
Update initialization flow
tadaspetra Sep 17, 2021
235531e
Reorganized file
tadaspetra Sep 17, 2021
8a417a1
As I was writing out I realized this was very similar to #17
tadaspetra Sep 17, 2021
913e1ed
Added typedefs to List
tadaspetra Sep 17, 2021
d25de6b
FacePostionInfo
tadaspetra Sep 18, 2021
cac6202
Use async await instead of a Future Builder
tadaspetra Sep 22, 2021
587bc1b
Merge pull request #41 from AgoraIO-Community/disabled-video-fix
tadaspetra Sep 22, 2021
9dcae62
update order and remove late
tadaspetra Sep 22, 2021
a5a7e6c
Merge branch 'dev' into update-event-handlers
tadaspetra Sep 22, 2021
6987bd9
We don't need to upload this file
tadaspetra Sep 22, 2021
ec2ef36
Update formatting for CICD
tadaspetra Sep 22, 2021
ffe5a50
Merge pull request #43 from AgoraIO-Community/update-event-handlers
tadaspetra Sep 22, 2021
2e8a3e3
Merge branch 'dev' into new-initialization
tadaspetra Sep 22, 2021
6044c52
Merge branch 'dev' into new-initialization
tadaspetra Sep 22, 2021
b601df0
formatting
tadaspetra Sep 22, 2021
ba445cd
Merge pull request #45 from AgoraIO-Community/new-initialization
tadaspetra Sep 22, 2021
079a18c
Build for both android and iOS
tadaspetra Sep 22, 2021
b809193
update which directory gets built
tadaspetra Sep 22, 2021
d35b362
ios build
tadaspetra Sep 22, 2021
1c10273
build ios
tadaspetra Sep 22, 2021
8ca1d8a
Another try for ios
tadaspetra Sep 22, 2021
2fd3503
run on macos instead of ubuntu
tadaspetra Sep 22, 2021
a114be0
Complete new flow
tadaspetra Sep 22, 2021
ddd8730
Update work directory
tadaspetra Sep 22, 2021
c36f64b
Build appbundle as recommended by flutter.dev
tadaspetra Sep 22, 2021
9d827db
Merge pull request #47 from AgoraIO-Community/add-build-actions
Meherdeep Sep 22, 2021
783797b
updating the changelog.md
Meherdeep Sep 23, 2021
d8b11fe
Merge pull request #48 from AgoraIO-Community/release
Meherdeep Oct 7, 2021
28c9f4b
simpler event calls
tadaspetra Oct 7, 2021
076bc52
Merge pull request #51 from AgoraIO-Community/update-call
Meherdeep Oct 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,41 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Export Release Timestamp
run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%M.%S')" >> $GITHUB_ENV

- uses: subosito/flutter-action@v1
- name: Checkout repository
uses: actions/checkout@v2

- name: Install dependencies
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: "15"
distribution: "adopt"

- name: Set up Flutter
uses: subosito/flutter-action@v1
with:
channel: "stable"

- name: Install pub Dependencies
run: flutter pub get

- name: Check format
- name: Check Format
run: flutter format --set-exit-if-changed .

# Consider passing '--fatal-infos' for slightly stricter analysis.
- name: Analyze project source
run: flutter analyze

# Your project will need to have tests in test/ and a dependency on
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
- name: Run Tests
run: flutter test

- name: Build Android App
working-directory: ./example
run: flutter build appbundle
- name: Build iOS App
working-directory: ./example
run: flutter build ios --no-codesign
4 changes: 2 additions & 2 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.0.4
- Upgraded the agora_rtc_engine to v4.0.6
- New method of initialization
- Added all the event handlers
- Fixed disabled video widget for grid view
- Added video render mode

## 0.0.3

- Upgraded the agora_rtc_engine to v4.0.5
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Your application can still run the voice call when it is switched to the backgro
## Usage

```dart
// Instantiate the client
final AgoraClient client = AgoraClient(
agoraConnectionData: AgoraConnectionData(
appId: "<--Add Your App Id Here-->",
Expand All @@ -98,6 +99,18 @@ final AgoraClient client = AgoraClient(
],
);

// Initialize the Agora Engine
@override
void initState() {
super.initState();
initAgora();
}

void initAgora() async {
await client.initialize();
}

// Build your layout
@override
Widget build(BuildContext context) {
return MaterialApp(
Expand Down
1 change: 0 additions & 1 deletion agora_flutter_uikit.iml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<excludeFolder url="file://$MODULE_DIR$/example/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart Packages" level="project" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Flutter Plugins" level="project" />
</component>
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
/ios/Podfile.lock
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:7.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<string>9.0</string>
</dict>
</plist>
41 changes: 0 additions & 41 deletions example/ios/Podfile.lock

This file was deleted.

11 changes: 7 additions & 4 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -321,6 +321,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -339,7 +340,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down Expand Up @@ -393,6 +394,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -417,7 +419,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -448,6 +450,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand All @@ -466,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,8 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -38,8 +36,8 @@
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,8 +59,6 @@
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
Expand Down
12 changes: 11 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:agora_uikit/agora_uikit.dart';
import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
Expand All @@ -22,6 +22,16 @@ class _MyAppState extends State<MyApp> {
],
);

@override
void initState() {
super.initState();
initAgora();
}

void initAgora() async {
await client.initialize();
}

@override
Widget build(BuildContext context) {
return MaterialApp(
Expand Down
3 changes: 0 additions & 3 deletions example/windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

#include "generated_plugin_registrant.h"

#include <agora_rtc_engine/agora_rtc_engine_plugin.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
AgoraRtcEnginePluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("AgoraRtcEnginePlugin"));
}
1 change: 0 additions & 1 deletion example/windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#

list(APPEND FLUTTER_PLUGIN_LIST
agora_rtc_engine
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
49 changes: 39 additions & 10 deletions lib/agora_uikit.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
export 'src/agora_client.dart' show AgoraClient;
export 'src/layout/layout.dart' show AgoraVideoViewer;
export 'src/buttons/buttons.dart' show AgoraVideoButtons;
export 'models/agora_connection_data.dart' show AgoraConnectionData;
export 'models/agora_event_handlers.dart' show AgoraEventHandlers;
export 'models/agora_channel_data.dart' show AgoraChannelData;
export 'src/enums.dart';

export 'package:permission_handler/permission_handler.dart';
export 'package:agora_rtc_engine/rtc_engine.dart'
show
VideoEncoderConfiguration,
Expand All @@ -26,6 +17,44 @@ export 'package:agora_rtc_engine/rtc_engine.dart'
AudioRemoteStateReason,
AudioLocalState,
AudioLocalError,
AudioVolumeInfo,
FacePositionInfo,
LocalVideoStreamState,
LocalVideoStreamError,
AreaCode;
AreaCode,
WarningCode,
UserInfo,
ConnectionStateType,
ConnectionChangedReason,
NetworkType,
AudioOutputRouting,
Rect,
NetworkQuality,
LastmileProbeResult,
LocalVideoStats,
LocalAudioStats,
RemoteVideoStats,
RemoteAudioStats,
AudioMixingStateCode,
AudioMixingReason,
RtmpStreamingState,
RtmpStreamingErrorCode,
InjectStreamStatus,
ChannelMediaRelayState,
ChannelMediaRelayError,
ChannelMediaRelayEvent,
StreamPublishState,
StreamSubscribeState,
RtmpStreamingEvent,
SuperResolutionStateReason,
UploadErrorReason,
VideoRenderMode;
export 'package:permission_handler/permission_handler.dart';

export 'models/agora_channel_data.dart' show AgoraChannelData;
export 'models/agora_connection_data.dart' show AgoraConnectionData;
export 'models/agora_event_handlers.dart' show AgoraEventHandlers;
export 'src/agora_client.dart' show AgoraClient;
export 'src/buttons/buttons.dart' show AgoraVideoButtons;
export 'src/enums.dart';
export 'src/layout/layout.dart' show AgoraVideoViewer;
Loading