forked from microsoft/AdaptiveCards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge the text heading branch into main (microsoft#5620)
* [shared] Parser support for TextBlock headings changes (microsoft#5577) * [Shared] Text Heading Support * Added Samples * changed spaces to tabs in .json * [iOS] Text heading changes (microsoft#5584) * [Shared] Text Heading Support * Added Samples * [iOS] Text heading changes * [Android][Accessibility] TextBlock style: heading (microsoft#5587) * [Android] Accessible Headings * Bump to 1.5 * Missed SWIG enum * [UWP][Shared] Implement Text Heading Object model for UWP and fix shared model serialization (microsoft#5601) * [UWP][Shared] Added host config and UWP renderer support for heading style (microsoft#5612) * [Schema] Add Text Block style property to schema (microsoft#5615) * [Schema] Add Text Block style property to schema * Update schema version from "1.5" to "vNext" * Updated specs Co-authored-by: Joseph Woo <[email protected]> Co-authored-by: Risheek Rajolu <[email protected]> Co-authored-by: Adaptive Cards Specs CI <[email protected]>
- Loading branch information
1 parent
7b93826
commit 5627857
Showing
21 changed files
with
369 additions
and
357 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
...model/SWIGTYPE_p_AdaptiveCards__EnumHelpers__EnumMappingT_AdaptiveCards__TextStyle_t.java
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,26 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 4.0.2 | ||
* | ||
* Do not make changes to this file unless you know what you are doing--modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package io.adaptivecards.objectmodel; | ||
|
||
public class SWIGTYPE_p_AdaptiveCards__EnumHelpers__EnumMappingT_AdaptiveCards__TextStyle_t { | ||
private transient long swigCPtr; | ||
|
||
protected SWIGTYPE_p_AdaptiveCards__EnumHelpers__EnumMappingT_AdaptiveCards__TextStyle_t(long cPtr, @SuppressWarnings("unused") boolean futureUse) { | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected SWIGTYPE_p_AdaptiveCards__EnumHelpers__EnumMappingT_AdaptiveCards__TextStyle_t() { | ||
swigCPtr = 0; | ||
} | ||
|
||
protected static long getCPtr(SWIGTYPE_p_AdaptiveCards__EnumHelpers__EnumMappingT_AdaptiveCards__TextStyle_t obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
} | ||
|
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
52 changes: 52 additions & 0 deletions
52
source/android/adaptivecards/src/main/java/io/adaptivecards/objectmodel/TextStyle.java
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,52 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 4.0.2 | ||
* | ||
* Do not make changes to this file unless you know what you are doing--modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package io.adaptivecards.objectmodel; | ||
|
||
public enum TextStyle { | ||
Paragraph(0), | ||
Heading; | ||
|
||
public final int swigValue() { | ||
return swigValue; | ||
} | ||
|
||
public static TextStyle swigToEnum(int swigValue) { | ||
TextStyle[] swigValues = TextStyle.class.getEnumConstants(); | ||
if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) | ||
return swigValues[swigValue]; | ||
for (TextStyle swigEnum : swigValues) | ||
if (swigEnum.swigValue == swigValue) | ||
return swigEnum; | ||
throw new IllegalArgumentException("No enum " + TextStyle.class + " with value " + swigValue); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
private TextStyle() { | ||
this.swigValue = SwigNext.next++; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
private TextStyle(int swigValue) { | ||
this.swigValue = swigValue; | ||
SwigNext.next = swigValue+1; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
private TextStyle(TextStyle swigEnum) { | ||
this.swigValue = swigEnum.swigValue; | ||
SwigNext.next = this.swigValue+1; | ||
} | ||
|
||
private final int swigValue; | ||
|
||
private static class SwigNext { | ||
private static int next = 0; | ||
} | ||
} | ||
|
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
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
Oops, something went wrong.