Skip to content

Commit 52eda1b

Browse files
chore(update-plugins): Tue Apr 26 08:05:27 UTC 2022
1 parent b710bf0 commit 52eda1b

11 files changed

+74
-97
lines changed

plugins/animated-circle.md

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,23 @@ Creates an animated circle (animates the border of the circle) on iOS and Androi
1919
## Usage
2020

2121
```xml
22-
<Page
23-
xmlns="http://schemas.nativescript.org/tns.xsd"
24-
xmlns:ui="@nativescript/animated-circle"
25-
>
26-
<ui:AnimatedCircle
27-
backgroundColor="transparent"
28-
width="200"
29-
height="200"
30-
animated="true"
31-
animateFrom="0"
32-
rimColor="#FF5722"
33-
barColor="#3D8FF4"
34-
fillColor="#eee"
35-
clockwise="true"
36-
rimWidth="5"
37-
progress="80"
38-
text="bam"
39-
textSize="28"
40-
textColor="red"
41-
/>
22+
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
23+
xmlns:ui="@nativescript/animated-circle">
24+
<ui:AnimatedCircle
25+
backgroundColor="transparent"
26+
width="200"
27+
height="200"
28+
animated="true"
29+
animateFrom="0"
30+
rimColor="#FF5722"
31+
barColor="#3D8FF4"
32+
fillColor="#eee"
33+
clockwise="true"
34+
rimWidth="5"
35+
progress="80"
36+
text="bam"
37+
textSize="28"
38+
textColor="red" />
4239
</Page>
4340
```
4441

@@ -52,20 +49,7 @@ imports: [NativeScriptAnimatedCircleModule]
5249
```
5350

5451
```xml
55-
<AnimatedCircle
56-
backgroundColor="transparent"
57-
width="200"
58-
height="200"
59-
animated="true"
60-
animateFrom="0"
61-
rimColor="#fff000"
62-
barColor="#ff4081"
63-
rimWidth="25"
64-
progress="{{ circleProgress }}"
65-
text=""
66-
textSize="22"
67-
textColor="#336699"
68-
/>
52+
<AnimatedCircle backgroundColor="transparent" width="200" height="200" animated="true" animateFrom="0" rimColor="#fff000" barColor="#ff4081" rimWidth="25" progress="{{ circleProgress }}" text="" textSize="22" textColor="#336699"></AnimatedCircle>
6953
```
7054

7155
## API

plugins/apple-pay.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ Once that configuration is done for your Apple developer account, you will be ab
4141

4242
```xml
4343
<ios>
44-
<ApplePayBtn tap="onApplePayTap" buttonType="InStore" />
44+
<ApplePayBtn
45+
tap="onApplePayTap"
46+
buttonType="InStore"
47+
></ApplePayBtn>
4548
</ios>
4649
```
4750

plugins/apple-sign-in.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ Go to [the Apple developer](https://developer.apple.com/account/resources/identi
2020
Open your app's App_Resources/iOS folder and add the following (or append) to a file named app.entitlements.
2121

2222
```xml
23-
<?xml version="1.0" encoding="UTF-8" ?>
24-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
25-
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
23+
<?xml version="1.0" encoding="UTF-8"?>
24+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2625
<plist version="1.0">
27-
<dict>
28-
<key>com.apple.developer.applesignin</key>
29-
<array>
30-
<string>Default</string>
31-
</array>
32-
</dict>
26+
<dict>
27+
<key>com.apple.developer.applesignin</key>
28+
<array>
29+
<string>Default</string>
30+
</array>
31+
</dict>
3332
</plist>
3433
```
3534

plugins/auto-fit-text.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ This plugin is based on the Nativescript Label implementation but with changes t
2828
xmlns:AFT="@nativescript/auto-fit-text"
2929
>
3030
<StackLayout class="p-20">
31-
<AFT:AutoFitText text="Testinggggggggggggggggg" textWrap="false" />
31+
<AFT:AutoFitText
32+
text="Testinggggggggggggggggg"
33+
textWrap="false"
34+
></AFT:AutoFitText>
3235
</StackLayout>
3336
</Page>
3437
```
@@ -45,12 +48,7 @@ import { NativeScriptAutoFitTextModule } from '@nativescript/auto-fit-text/angul
4548
```
4649

4750
```xml
48-
<AutoFitText
49-
row="2"
50-
fontSize="48"
51-
text="Lorem Ipsum this line of text with fontSize ignored because the text is so long."
52-
textWrap="false"
53-
/>
51+
<AutoFitText row="2" fontSize="48" text="Lorem Ipsum this line of text with fontSize ignored because the text is so long." textWrap="false"></AutoFitText>
5452
```
5553

5654
## Credits

plugins/detox.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ You can use [NativeScript's `testID` property](https://blog.nativescript.org/nat
192192
Example:
193193

194194
```xml
195-
<Button text="Tap Me!" testID="testButton" />
195+
<Button text="Tap Me!" testID="testButton"></Button>
196196
```
197197

198198
```javascript
@@ -279,9 +279,9 @@ In order to use the `automationText` property in NativeScript it must be enabled
279279
Create a file called `ids.xml` in `App_Resources/Android/src/main/res/values/` and add the following:
280280
281281
```xml
282-
<?xml version="1.0" encoding="utf-8" ?>
282+
<?xml version="1.0" encoding="utf-8"?>
283283
<resources>
284-
<item type="id" name="nativescript_accessibility_id" />
284+
<item type="id" name="nativescript_accessibility_id"/>
285285
</resources>
286286
```
287287

plugins/fingerprint-auth.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ Then open `App_Resources/Android/app.gradle` and look for `minSdkVersion`.
2222
If that's set to a version less than 23, add this `overrideLibrary` line to `App_Resources/Android/src/main/AndroidManifest.xml`:
2323

2424
```xml
25-
<uses-sdk
26-
android:minSdkVersion="17"
27-
android:targetSdkVersion="__APILEVEL__"
28-
tools:overrideLibrary="com.jesusm.kfingerprintmanager"
29-
/>
25+
<uses-sdk
26+
android:minSdkVersion="17"
27+
android:targetSdkVersion="__APILEVEL__"
28+
tools:overrideLibrary="com.jesusm.kfingerprintmanager"/>
3029
```
3130

3231
## API

plugins/firebase-admob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Through the use of NativeAdListener, you can listen for lifecycle events, such a
336336
<ui:NativeAdView height="400" loaded="{{nativeAdLoaded}}">
337337
<GridLayout height="300" width="300">
338338
<Label id="headLineView" />
339-
<ui:MediaView id="mediaView" height="100%" />
339+
<ui:MediaView id="mediaView" height="100%"/>
340340
<Label id="bodyView" />
341341
<Button id="callToActionView" />
342342
</GridLayout>

plugins/google-maps.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ Modify the `AndroidManifest` to include the new meta tag along with your API key
2222
in `App_Resources/Android/AndroidManifest.xml`
2323

2424
```xml
25+
2526
<application
2627
android:name="com.tns.NativeScriptApplication"
2728
android:allowBackup="true"
2829
android:icon="@mipmap/ic_launcher"
2930
android:label="@string/app_name"
3031
android:theme="@style/AppTheme"
31-
android:hardwareAccelerated="true"
32-
>
33-
<meta-data android:name="com.google.android.geo.API_KEY" android:value="youKey" />
32+
android:hardwareAccelerated="true">
33+
34+
<meta-data
35+
android:name="com.google.android.geo.API_KEY"
36+
android:value="youKey"/>
3437
</application>
3538
```
3639

@@ -40,9 +43,8 @@ Modify the `Info.plist` to include the new meta tag along with your API key, the
4043
in `App_Resources/iOS/Info.plist`
4144

4245
```xml
43-
<?xml version="1.0" encoding="UTF-8" ?>
44-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
45-
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
46+
<?xml version="1.0" encoding="UTF-8"?>
47+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
4648
<plist version="1.0">
4749
<dict>
4850
<key>TNSGoogleMapsAPIKey</key>
@@ -63,10 +65,10 @@ Ensure you've included xmlns:map="@nativescript/google-maps" on the Page element
6365

6466
```xml
6567
<map:MapView
66-
ready="onReady"
67-
mapTap="onTap"
68-
mapLongPress="onLongPress"
69-
markerTap="onMarkerTap"
68+
ready="onReady"
69+
mapTap="onTap"
70+
mapLongPress="onLongPress"
71+
markerTap="onMarkerTap"
7072
/>
7173
```
7274

plugins/google-pay.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ parameters: {
3737

3838
```xml
3939
<android>
40-
<GooglePayBtn
41-
cardNetworks="VISA, AMEX, DISCOVER"
42-
authMethods="PAN_ONLY, CRYPTOGRAM_3DS"
43-
tap="onGooglePayTap"
44-
width="100%"
45-
height="40"
46-
buttonType="PAY_BLACK"
47-
/>
40+
<GooglePayBtn
41+
cardNetworks="VISA, AMEX, DISCOVER"
42+
authMethods="PAN_ONLY, CRYPTOGRAM_3DS"
43+
tap="onGooglePayTap"
44+
width="100%"
45+
height="40"
46+
buttonType="PAY_BLACK"
47+
></GooglePayBtn>
4848
</android>
4949
```
5050

plugins/ionic-portals.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ Application.run({ moduleName: 'app-root' })
4848
### Vanilla/Plain/Core
4949

5050
```xml
51-
<Page
52-
xmlns="http://schemas.nativescript.org/tns.xsd"
53-
xmlns:ionic="@nativescript/ionic-portals"
54-
>
51+
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
52+
xmlns:ionic="@nativescript/ionic-portals">
5553
<StackLayout class="p-20">
56-
<ionic:IonicPortal id="webPortal" />
54+
<ionic:IonicPortal id="webPortal">
55+
</ionic:IonicPortal>
5756
</StackLayout>
5857
</Page>
5958
```

0 commit comments

Comments
 (0)