-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
293 changed files
with
8,910 additions
and
2,052 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
azure-communication-ui/azure-communication-ui-demo-app/checkstyle/checkstyle.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+140 KB
azure-communication-ui/azure-communication-ui-demo-app/lib/magnifier-0.0.17.aar
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
...androidTest/java/com/azure/android/communication/ui/callingcompositedemoapp/BaseUiTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.