Skip to content

Commit 02dd8f7

Browse files
authored
Update to 1.11.0 GA (#66)
1 parent 0607eb0 commit 02dd8f7

File tree

4 files changed

+44
-36
lines changed

4 files changed

+44
-36
lines changed

README.md

Lines changed: 34 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ Please refer to our native [UI Library overview](https://docs.microsoft.com/en-u
1212

1313
## ❤️ Feedback
1414

15-
We appreciate your feedback and energy helping us improve our services. [If you've tried the service, please give us feedback through this survey](https://microsoft.qualtrics.com/jfe/form/SV_9WTOR2ItSo0oFee).
15+
We appreciate your feedback and energy helping us improve our services. [If you've tried the service, please give us feedback through this survey](https://microsoft.qualtrics.com/jfe/form/SV_9WTOR2ItSo0oFee).
1616

17-
## Prerequisites
17+
## Prerequisites
1818

19-
An Azure account with an active subscription. Create an account for free.
20-
A deployed Communication Services resource. Create a Communication Services resource.
21-
An Authentication Endpoint that will return the Azure Communication Services Token. See example or clone the code.
19+
An Azure account with an active subscription. Create an account for free.
20+
A deployed Communication Services resource. Create a Communication Services resource.
21+
An Authentication Endpoint that will return the Azure Communication Services Token. See example or clone the code.
2222

23-
Node, Watchman, and React Native CLI: please refer to [React Native environment setup guide](https://reactnative.dev/docs/environment-setup).
23+
Node, Watchman, and React Native CLI: please refer to [React Native environment setup guide](https://reactnative.dev/docs/environment-setup).
2424

2525
Yarn: refer to [installation guide](https://classic.yarnpkg.com/lang/en/docs/install)
2626

@@ -37,50 +37,56 @@ Navigate to `demo/`:
3737
1. Run `yarn install`
3838

3939
Install iOS app dependencies:
40+
4041
1. In Terminal, navigate to `demo/ios/`:
4142
2. Run `pod install --repo-update`
4243

4344
Build android app dependencies:
45+
4446
1. In Terminal, navigate to `demo/android/`:
4547
2. Run `./gradlew build`
4648

4749
Navigate back to `demo/`
50+
4851
1. Run `yarn react-native start`
4952
2. Open another Terminal, navigate to `demo/` folder, and run `yarn react-native run-ios` or `yarn react-native run-android`
50-
51-
Alternatively, you can also run the iOS app by launching Xcode from the `.xcworkspace` file, and run the app with scheme `demo` on your simulator or iOS device.
5253

53-
To run Android app, you can also launch Android Studio and run on Android emulator or Android device after syncing up gradle. There are two ways to sync gradle either with a command in the android folder`./gradlew build` or via android studio.
54+
Alternatively, you can also run the iOS app by launching Xcode from the `.xcworkspace` file, and run the app with scheme `demo` on your simulator or iOS device.
55+
56+
To run Android app, you can also launch Android Studio and run on Android emulator or Android device after syncing up gradle. There are two ways to sync gradle either with a command in the android folder `./gradlew build` or via android studio.
5457

5558
## Key Sample Highlights
59+
5660
To integrate the native UI Library with React Native in this sample, a few key steps were taken as described below:
57-
58-
### iOS
61+
62+
### iOS
5963

6064
After installing the package and dependencies with CocoaPods from the step above, modify the Podfile in the `/ios` filder as such:
65+
6166
```ruby
62-
platform :ios, '14.0'
67+
platform :ios, '16.0'
6368
target 'demo' do
6469
use_frameworks!
65-
pod 'AzureCommunicationUICalling', '1.11.0'
70+
pod 'AzureCommunicationUICalling', '1.12.0'
6671
...
6772

6873
# Note: disable the line below since we've enabled use_frameworks!
6974
# use_flipper!()
7075
...
7176
end
72-
```
77+
```
7378

74-
Navigate to the `ios/` folder and open the `.xcworkspace` file with Xcode.
79+
Navigate to the `ios/` folder and open the `.xcworkspace` file with Xcode.
7580

76-
Set iOS Deployment Target in Build Settings for the main project to minimum iOS 14.0:
81+
Set iOS Deployment Target in Build Settings for the main project to minimum iOS 16.0:
7782

7883
![ae0f2bf7-17f3-435c-828a-e7bfaf1b3e2e](https://user-images.githubusercontent.com/9044372/180568611-71d671c2-6bd4-4542-9d66-87fc9da8eddd.jpg)
7984

80-
Request access to the microphone, camera, etc.
81-
To access the device's hardware, update your app's Information Property List (`Info.plist`). Set the associated value to a `string` that will be included in the dialog the system uses to request access from the user.
82-
83-
Right-click the `Info.plist` entry of the project tree and select **Open As** > **Source Code**. Add the following lines the top level `<dict>` section, and then save the file.
85+
Request access to the microphone, camera, etc.
86+
To access the device's hardware, update your app's Information Property List (`Info.plist`). Set the associated value to a `string` that will be included in the dialog the system uses to request access from the user.
87+
88+
Right-click the `Info.plist` entry of the project tree and select **Open As** > **Source Code**. Add the following lines the top level `<dict>` section, and then save the file.
89+
8490
```xml
8591
<key>NSCameraUsageDescription</key>
8692
<string></string>
@@ -92,12 +98,12 @@ To verify requesting the permission is added correctly, view the `Info.plist` as
9298

9399
![abcca137-6463-4e9a-8db4-b68df6db5ce8](https://user-images.githubusercontent.com/9044372/180568964-71348562-e9a6-4a5e-847e-537e58e376ce.jpg)
94100

95-
Turn off Bitcode
96-
Set `Enable Bitcode` option to `No` in the project `Build Settings`. To find the setting, you have to change the filter from `Basic` to `All`, you can also use the search bar on the right.
101+
Turn off Bitcode
102+
Set `Enable Bitcode` option to `No` in the project `Build Settings`. To find the setting, you have to change the filter from `Basic` to `All`, you can also use the search bar on the right.
97103

98104
![MicrosoftTeams-image](https://user-images.githubusercontent.com/9044372/180569028-f3d86bdf-7016-4f37-8c3f-49332b0c7ef3.png)
99-
100-
### Android
105+
106+
### Android
101107

102108
In your app level (**app folder**) `build.gradle`, add the following lines to the dependencies and android sections.
103109

@@ -134,8 +140,8 @@ repositories {
134140

135141
Sync project with gradle files. Either run `./gradlew build` or open the project in Android Studio (Android Studio -> File -> Sync Project With Gradle Files)
136142

137-
138143
## Launching Composite
144+
139145
The React native library supports all the same features as the native [UI composite](https://github.com/Azure/communication-ui-library-android). Call `startCallComposite` on the `RNAzureCommunicationUICalling` module from your React Native Javascript code, wrapping with `try-catch` statement to handle any errors.
140146

141147
```cs
@@ -157,10 +163,12 @@ try {
157163
```
158164

159165
### Setup group call or Teams meeting options
166+
160167
Depending on what type of Call/Meeting you would like to setup, use the appropriate meeting input. Replace `meetingInput` with either your group call ID or Teams meeting url.
161168

162169
## React native - native app bridging
163-
In order to support the communication between React Native and native Azure Communication UI library, bridging is needed for both iOS and Android. Please refer to the following bridging file guide for iOS and Android.
170+
171+
In order to support the communication between React Native and native Azure Communication UI library, bridging is needed for both iOS and Android. Please refer to the following bridging file guide for iOS and Android.
164172

165173
[iOS bridging file guide](demo/ios/README.md)
166174

demo/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ repositories {
119119
}
120120

121121
dependencies {
122-
implementation 'com.azure.android:azure-communication-ui-calling:1.11.0'
122+
implementation 'com.azure.android:azure-communication-ui-calling:1.12.0'
123123
// The version of react-native is set by the React Native Gradle Plugin
124124
implementation("com.facebook.react:react-android")
125125

demo/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require Pod::Executable.execute_command('node', ['-p',
55
{paths: [process.argv[1]]},
66
)', __dir__]).strip
77

8-
platform :ios, '15.0'
8+
platform :ios, '16.0'
99
prepare_react_native_project!
1010

1111
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
@@ -27,7 +27,7 @@ end
2727

2828
target 'demo' do
2929
use_frameworks!
30-
pod 'AzureCommunicationUICalling', '1.11.0'
30+
pod 'AzureCommunicationUICalling', '1.12.0'
3131
config = use_native_modules!
3232

3333
# Flags change depending on the env values.

demo/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
2-
- AzureCommunicationCalling (2.13.0):
2+
- AzureCommunicationCalling (2.13.1):
33
- AzureCommunicationCommon (~> 1.0)
44
- AzureCommunicationCommon (1.2.0)
5-
- AzureCommunicationUICalling (1.11.0):
6-
- AzureCommunicationCalling (= 2.13.0)
5+
- AzureCommunicationUICalling (1.12.0):
6+
- AzureCommunicationCalling (= 2.13.1)
77
- AzureCore (= 1.0.0-beta.15)
88
- MicrosoftFluentUI/ActivityIndicator_ios (= 0.10.0)
99
- MicrosoftFluentUI/Avatar_ios (= 0.10.0)
@@ -485,7 +485,7 @@ PODS:
485485
- Yoga (1.14.0)
486486

487487
DEPENDENCIES:
488-
- AzureCommunicationUICalling (= 1.11.0)
488+
- AzureCommunicationUICalling (= 1.12.0)
489489
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
490490
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
491491
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
@@ -629,9 +629,9 @@ EXTERNAL SOURCES:
629629
:path: "../node_modules/react-native/ReactCommon/yoga"
630630

631631
SPEC CHECKSUMS:
632-
AzureCommunicationCalling: 9f7cd3a9f7f7f44ff1227c760bcee8de203a49d2
632+
AzureCommunicationCalling: 015a34b732f0078918f6b7d6f40107dc16ef500c
633633
AzureCommunicationCommon: 130a21be2be889f83dc4adbf994af6285f962de8
634-
AzureCommunicationUICalling: db55e14b203c43d69cbd88054c58a68274713d9f
634+
AzureCommunicationUICalling: 5ab7400d770cc6bf80874b5c1126fc073adfa9ce
635635
AzureCore: ebbf7cf4dfe72afc7584088c38d1c99f5a35d647
636636
boost: 7dcd2de282d72e344012f7d6564d024930a6a440
637637
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
@@ -680,6 +680,6 @@ SPEC CHECKSUMS:
680680
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
681681
Yoga: c32e0be1a17f8f1f0e633a3122f7666441f52c82
682682

683-
PODFILE CHECKSUM: dea824b04e9cccfffe5b63e4b56bf0d9477827fb
683+
PODFILE CHECKSUM: dca6d24e8b6e611eec201b82b85a1f0b2d686eb3
684684

685685
COCOAPODS: 1.15.2

0 commit comments

Comments
 (0)