Skip to content

Commit

Permalink
[Release] 1.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
iaulakh authored Apr 4, 2022
2 parents 2a8cc6e + 71830aa commit 192533c
Show file tree
Hide file tree
Showing 293 changed files with 8,910 additions and 2,052 deletions.
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/report-a-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Report a bug
about: Report a bug to help us improve.
title: [Version]
labels: Bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
5. This bug is [always/occasional/seldom] reproducible.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**AzureCommunicationUILibrary (please complete the following information):**
- Version [e.g. 1.0.0-beta.1]

**Smartphone (please complete the following information):**
- Device: [e.g. Samsung Galaxy]
- API: [e.g. API29]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/request-a-feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Request a feature
about: Suggest a feature or share an idea.
title: Add [what] to/in [where]
labels: "status:triage"
assignees: ""
---

**What feature are you requesting?**

**What would be the benefit of adding this feature?**

**What solution would be ideal for you?**

**What alternatives have you considered?**

**Is there any additional information for your request?**

**Attach screenshots or images add detail to your request:**
8 changes: 4 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ What kind of change does this Pull Request introduce?
```

## How to Test

* Test the code
<!-- Add steps to run the tests suite and/or manually test -->
```
```

* Open...
* Click on...


## What to Check
Verify that the following are valid
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Release History

## 1.0.0-beta.2 (2022-04-04)

### New Features
- Status bar color change for light and dark mode [#9](https://github.com/Azure/communication-ui-library-android/pull/9)
- API 21, 22 support [#31](https://github.com/Azure/communication-ui-library-android/pull/31)
- Screen share pinch zoom support [#38](https://github.com/Azure/communication-ui-library-android/pull/38)
- Localization support [#68](https://github.com/Azure/communication-ui-library-android/pull/68)
- Update joining experience to show call join processing indicator in setup view [#57](https://github.com/Azure/communication-ui-library-android/pull/57)
- Bluetooth headphones support [#40](https://github.com/Azure/communication-ui-library-android/pull/40)

### Breaking Changes
- Remove Context from GroupMeetingOptions() and TeamMeetingOptions() [#17](https://github.com/Azure/communication-ui-library-android/pull/17)
- Add required parameter Context to CallComposite.launch() [#17](https://github.com/Azure/communication-ui-library-android/pull/17)
- Rename ErrorEvent to CommunicationUIErrorEvent [#156](https://github.com/Azure/communication-ui-library-android/pull/156)

### Bug Fixes
- Start service is crashing for API 31 [#10](https://github.com/Azure/communication-ui-library-android/pull/10)
- Long display name truncation on local participant display view [#13](https://github.com/Azure/communication-ui-library-android/pull/13)
- Sort participants, append suffix for local Participant and handle unnamed participant for the Participant List [#8](https://github.com/Azure/communication-ui-library-android/pull/8)

## 1.0.0-beta.1 (2021-12-08)
This is the initial release of Azure Communication UI Library. For more information, please see the [README][read_me] and [QuickStart][documentation].

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ val communicationTokenRefreshOptions = CommunicationTokenRefreshOptions({ "<USER
val communicationTokenCredential = CommunicationTokenCredential(communicationTokenRefreshOptions)

val options = GroupCallOptions(
context,
communicationTokenCredential,
UUID.fromString("<GROUP_CALL_ID>"),
"<DISPLAY_NAME>",
)

val callComposite: CallComposite = CallCompositeBuilder().build()
callComposite.launch(options)
callComposite.launch(context, options)
```

#### [Java](#tab/java)
Expand All @@ -85,14 +84,13 @@ CommunicationTokenCredential communicationTokenCredential =
new CommunicationTokenCredential(communicationTokenRefreshOptions);

GroupCallOptions options = new GroupCallOptions(
context,
communicationTokenCredential,
UUID.fromString("<GROUP_CALL_ID>"),
"<DISPLAY_NAME>"
);

CallComposite callComposite = new CallCompositeBuilder().build();
callComposite.launch(options);
callComposite.launch(context, options);
```

For more details on Mobile UI Library functionalities visit the [API Reference Documentation](docs/api/CallComposite/Reference.md).
Expand Down
72 changes: 61 additions & 11 deletions azure-communication-ui/azure-communication-ui-demo-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ if (project.rootProject.file('local.properties').canRead()) {
}

android {
compileSdkVersion 30
compileSdkVersion 31
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.azure.android.communication.ui.callingCompositeDemoApp"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "0.0.0"
minSdkVersion 21
targetSdkVersion 31
versionCode ui_library_version_code
versionName "$ui_library_version_name"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -26,6 +26,8 @@ android {
buildConfigField 'String', 'GROUP_CALL_ID', properties.getProperty('GROUP_CALL_ID', '""')
buildConfigField 'String', 'TEAMS_MEETING_LINK', properties.getProperty('TEAMS_MEETING_LINK', '""')
buildConfigField 'String', 'ACS_TOKEN', properties.getProperty('ACS_TOKEN', '""')
buildConfigField 'String', 'APP_SECRET', properties.getProperty('APP_SECRET', '""')

}

signingConfigs {
Expand Down Expand Up @@ -63,19 +65,67 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}

packagingOptions {
pickFirst 'META-INF/AL2.0'
pickFirst 'META-INF/LGPL2.1'
pickFirst 'META-INF/azure-communication-ui_debug.kotlin_module'
}

testOptions {
animationsDisabled = true
packagingOptions {
jniLibs {
useLegacyPackaging = true
}
}
unitTests {
returnDefaultValues = true
all {
failFast = true
}
}
}

flavorDimensions "distribute"
productFlavors {
appCenter {
dimension "distribute"
}
}

}

repositories {
flatDir{
dirs "lib"
}
}

dependencies {
def appCenterSdkVersion = '4.1.0'
implementation project(path: ':azure-communication-ui')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.core:core-ktx:$androidx_core_version"
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation 'androidx.activity:activity-ktx:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation "androidx.constraintlayout:constraintlayout:$constraint_layout"
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
implementation "com.azure.android:azure-communication-calling:$calling_sdk_version"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation(name: "magnifier-0.0.17", ext: 'aar')
implementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
implementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
appCenterImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
testImplementation "junit:junit:$junit"
androidTestImplementation('com.microsoft.appcenter:espresso-test-extension:1.4')
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
androidTestImplementation 'net.java.dev.jna:jna:5.10.0'
androidTestImplementation('org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0-native-mt') {
exclude group: "net.java.dev.jna", module: "jna"
}
androidTestImplementation "androidx.test.ext:junit:$androidx_junit"
androidTestImplementation 'androidx.test:rules:1.4.1-alpha03'
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espresso_contrib"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
-->

<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callingcompositedemoapp

import android.os.Build
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.rule.GrantPermissionRule
import com.azure.android.communication.ui.callingcompositedemoapp.util.TestFixture
import com.microsoft.appcenter.espresso.Factory
import com.microsoft.appcenter.espresso.ReportHelper
import org.junit.After
import org.junit.Before
import org.junit.Rule

open class BaseUiTest {
@get:Rule
var reportHelper: ReportHelper = Factory.getReportHelper()

@Rule
@JvmField
var mActivityTestRule = ActivityScenarioRule(CallLauncherActivity::class.java)

@Rule
@JvmField
var grantPermissionRule: GrantPermissionRule

private val basePermissionList = arrayOf(
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.WAKE_LOCK",
"android.permission.MODIFY_AUDIO_SETTINGS",
"android.permission.CAMERA",
"android.permission.RECORD_AUDIO"
)

init {
val permissionList = if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
basePermissionList
} else {
basePermissionList.append("android.permission.FOREGROUND_SERVICE")
}
grantPermissionRule = GrantPermissionRule.grant(*permissionList)
}

@Before
open fun setup() {
reportHelper.label("Starting test")
}

@After
fun tearDown() {
reportHelper.label("Stopping test")
}

protected fun isAppCenter() = TestFixture.acsToken.isBlank()
}

fun <T> Array<T>.append(element: T): Array<T?> {
val array = copyOf(this.size + 1)
array[this.size] = element
return array
}
Loading

0 comments on commit 192533c

Please sign in to comment.