Skip to content

Commit 734c36d

Browse files
committed
Merge branch 'main' into dev
2 parents 4228482 + 4d59cfa commit 734c36d

File tree

14 files changed

+1380
-117
lines changed

14 files changed

+1380
-117
lines changed

.vitepress/theme/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/assets/diagrams/Android_Runtime_Overview.drawio.svg

Lines changed: 445 additions & 0 deletions
Loading

content/assets/diagrams/iOS_Runtime_Overview.drawio.svg

Lines changed: 445 additions & 0 deletions
Loading
Binary file not shown.
4.54 MB
Binary file not shown.

content/dev-reference.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,41 @@ contributors:
66

77
This page serves as a reference for the available markdown options in the docs.
88

9+
## Diagrams
10+
11+
### Android Runtime Overview
12+
13+
<img class="w-full" src="./assets/diagrams/Android_Runtime_Overview.drawio.svg"/>
14+
15+
### iOS Runtime Overview
16+
17+
<img class="w-full" src="./assets/diagrams/iOS_Runtime_Overview.drawio.svg"/>
18+
19+
### Frame and Page Lifecycle
20+
21+
<img class="w-full" src="./assets/diagrams/Frame_Page_Lifecycle.drawio.svg"/>
22+
23+
### View Origin
24+
25+
<img src="./assets/diagrams/View_Origin.drawio.svg"/>
26+
27+
### StackLayout (exploration)
28+
29+
<DeviceFrame type="ios">
30+
<img src="./assets/diagrams/StackLayout.drawio.svg"/>
31+
</DeviceFrame>
32+
33+
## Videos
34+
35+
### View Origin Demo
36+
37+
<DeviceFrame type="ios">
38+
<video style="max-width: 400px;" muted="true" disablepictureinpicture="true" autoplay="true" loop="true" src="./assets/videos/animation_origin_ios.mp4"/>
39+
</DeviceFrame>
40+
<DeviceFrame type="android">
41+
<video style="max-width: 400px;" muted="true" disablepictureinpicture="true" autoplay="true" loop="true" src="./assets/videos/animation_origin_android.mp4"/>
42+
</DeviceFrame>
43+
944
## Frontmatter
1045

1146
The top of the markdown file contains a section surrounded by `---` this part is called the frontmatter, and it is used to set a few things on a page. For example:

content/guide/publishing/fastlane.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Publishing with Fastlane
3+
contributors:
4+
- rigor789
5+
---
6+
7+
::: info Work in progress
8+
9+
This page is a draft, and doesn't contain all the necessary info to get up and running. Until this page is complete, please see [Automatic NativeScript App Deployments with fastlane](https://blog.nativescript.org/automatic-nativescript-app-deployments-with-fastlane/).
10+
11+
:::
12+
13+
Automating uploads to Apple AppStore and Android Play Store is a great way to save time on this otherwise manual, lengthy and error-prone process.
14+
15+
NativeScript apps are built like any other native app, so publishing with Fastlane is generally a straight-forward process, allowing for customizations along the way to suit the project needs.
16+
17+
## What we're setting up
18+
19+
In this guide we'll set up the following:
20+
21+
- automatic certificate handling via Fastlane-match
22+
- automatic ios builds that bump the build number, and upload to TestFlight
23+
- automatic android builds that bump the buiod number, and upload to a Play Store Internal Test Track
24+
- ...
25+
26+
## General Fastlane setup
27+
28+
Add a `Gemfile` to the root of the project:
29+
30+
```ruby
31+
source "https://rubygems.org"
32+
33+
gem "cocoapods"
34+
gem "dotenv"
35+
gem "fastlane"
36+
37+
# Optional: if using Fastlane plugins in a Pluginfile
38+
# plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
39+
# eval_gemfile(plugins_path) if File.exist?(plugins_path)
40+
```
41+
42+
## iOS specific Fastlane setup
43+
44+
## Android specific Fastlane setup

content/guide/publishing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ contributors:
77

88
- [Publishing to Google Play](/guide/publishing/android-google-play)
99
- Publishing to AppStore
10-
- Publishing with Fastlane
10+
- [Publishing with Fastlane](/guide/publishing/fastlane)

examples/flows/animation_origin.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Input file used by Maestro screenshots.yaml
2+
// to generate screenshots for the examples
3+
4+
output.origins = [
5+
'0 / 0',
6+
'0.5 / 0',
7+
'1 / 0',
8+
9+
'0 / 0.5',
10+
'0.5 / 0.5',
11+
'1 / 0.5',
12+
13+
'0 / 1',
14+
'0.5 / 1',
15+
'1 / 1',
16+
]

examples/flows/animation_origin.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
appId: org.nativescript.examplesApp
2+
---
3+
- launchApp:
4+
permissions:
5+
android.permission.DUMP: allow
6+
- waitForAnimationToEnd
7+
- openLink: ns-examples://enableDemoMode
8+
- runScript: animation_origin.js
9+
- runFlow:
10+
when:
11+
platform: android
12+
commands:
13+
- evalScript: ${output.platform = 'android'}
14+
- runFlow:
15+
when:
16+
platform: ios
17+
commands:
18+
- evalScript: ${output.platform = 'ios'}
19+
20+
- openLink: ns-examples://navigate/ViewOrigin
21+
- startRecording: ../content/assets/videos/animation_origin_${output.platform}
22+
- repeat:
23+
while:
24+
true: ${(output.current = output.origins.shift()) !== undefined}
25+
commands:
26+
- tapOn:
27+
text: ${output.current}
28+
retryTapIfNoChange: false
29+
- tapOn:
30+
text: 'Play'
31+
retryTapIfNoChange: false
32+
- waitForAnimationToEnd:
33+
timeout: 5000
34+
- tapOn: '1 / 1' # just to delay the recording stop
35+
- stopRecording
36+
- openLink: ns-examples://disableDemoMode

0 commit comments

Comments
 (0)