A new way for developers to exchange card content in a common and consistent way.
Перейти к файлу
almedina-ms b3a541f52f
Merge branch 'main' into user/almedina-ms/FactSetSpec
2022-06-13 10:56:46 -07:00
.github Website updates (#7163) 2022-03-28 12:16:28 -07:00
.pipelines [Pipelines] Convert pipeline to yml (#7496) 2022-06-08 22:18:30 +00:00
.swiftpm/xcode/package.xcworkspace [iOS] Table Change 1 / 3 (#5847) 2021-05-28 15:22:50 -07:00
.vscode [UWP] Convert UWP PR pipeline to yaml, and add unit/UI test run tasks (#6011) 2021-08-17 23:56:09 +00:00
assets Release/1.0 (#1232) 2018-03-06 23:13:00 -08:00
samples Host Config and CSS for Viva Connections - Dark theme edition (#7164) 2022-04-03 21:15:56 -07:00
schemas Implement closed captions in JS and UWP (#7178) 2022-04-19 20:13:08 +00:00
scripts clang-format files for iOS, shared and experimental (#6851) 2022-01-06 03:33:42 +00:00
source [iOS] Updated Sample App (#7503) 2022-06-11 00:19:14 +00:00
specs Add spec 2022-06-10 10:39:33 -07:00
.clang-format clang-format files for iOS, shared and experimental (#6851) 2022-01-06 03:33:42 +00:00
.editorconfig [JS] Modernize and automate code quality/formatting (#6815) 2021-12-09 10:22:18 -08:00
.gitattributes create .net library for schema 2017-02-03 12:44:46 -08:00
.gitignore Apply clang-format (#6799) 2021-12-14 02:21:54 +00:00
LICENSE update license to match the GitHub template 2017-10-21 14:57:14 -07:00
Package.swift [iOS] Added iOS Nightly (#5805) 2021-05-13 03:08:08 +00:00
README.md Website updates (#7163) 2022-03-28 12:16:28 -07:00
SECURITY.md Microsoft mandatory file (#7458) 2022-05-24 20:24:49 +00:00
SUPPORT.md Updated Maintainer Info (#6300) 2021-09-03 14:20:12 -07:00
THIRD-PARTY-NOTICES.TXT [.NET] Update Xceed licensing (#5443) 2021-03-02 09:16:55 -08:00
custom.props [UWP Nuget]: Add ObjectModel .nuspec (#7204) 2022-04-27 14:51:46 -07:00
package-lock.json Spec tooling and specs (#3068) 2019-06-18 10:45:07 -07:00

README.md

Adaptive Cards

logo

Adaptive Cards are a new way for developers to exchange content in a common and consistent way. Get started today by putting Adaptive Cards into Microsoft Teams, Outlook Actionable Messages, Cortana Skills, or Windows Timeline -- or render cards inside your own apps by using our SDKs.

Dive in

Install and Build

Adaptive Cards are designed to render anywhere that your users are. The following native platform renderers are under development right now.

PS: Latest Build Status is against main branch.

Platform Latest Release Source Docs Latest Build Status
JavaScript npm install Source Docs Build Status
.NET Nuget install Source Docs Build status
.NET WPF Nuget install Source Docs Build status
.NET HTML Nuget install Source Docs Build status
Windows UWP Nuget install Source Docs Build Status
Android Maven Central Source Docs Build status
iOS CocoaPods Source Docs Build status
Card Designer npm install Source Docs Build Status

Code format

We require the C++ code inside this project to follow the clang-format. If you change them, please make sure your changed files are formatted correctly.

Make sure clang-format version 12.0.0 and above version is used.

IDE integration

ClangFormat describes a set of tools that are built on top of LibFormat. It can support your workflow in a variety of ways including a standalone tool and editor integrations. For details, refer to https://clang.llvm.org/docs/ClangFormat.html

Format with script

Two scripts are provided to help you format files.

  • Windows user only: use FormatSource.ps1. This script use clang-format.exe which is built into Visual Studio by default.

    Execute below command in the root folder of the project

    PowerShell.exe -ExecutionPolicy Bypass scripts\FormatSource.ps1 -ModifiedOnly $False
    

If it's the first time to run the script, make sure clang-format version 12.0.0 or above in the output. Otherwise you may need to upgrade Visual Studio or use your own clang-format binaries.

[clang-format] Version is:
clang-format version 12.0.0
  • Both Windows and MAC users: Use clang-format npmjs package

    Execute below command in source/nodejs

    npm run format
    

Make sure npm install is run before.

Use Git pre-commit hook

git pre-commit hook is an optional process. When you run git commit, it will automatically do the format check and auto fix the format if error detected.

First make sure clang-format binary is installed in your dev enviroment. Then modify scripts/hooks/pre-commit to make sure clangFormat is point to the correct path. And finally setup the git hook.

Two ways to setup the hook:

  1. Copy scripts/hooks/pre-commit to .git/hooks
  2. git config --local core.hooksPath scripts/hooks

End User License Agreement for our binary packages

Consumption of the AdaptiveCards binary packages are subject to the Microsoft EULA (End User License Agreement). Please see the relevant terms as listed below:

NOTE: All of the source code, itself, made available in this repo as well as our NPM packages, continue to be governed by the open source MIT license.

Community SDKs

The following SDKs are lovingly maintained by the Adaptive Cards community. Their contributions are sincerely appreciated! 🎉

Platform Install Repo Maintainer
ReactNative npm install GitHub BigThinkCode
Pic2Card GitHub BigThinkCode
Vue.js npm install GitHub Tim Cadenbach

Contribute

There are many ways to contribute to Adaptive Cards.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.