Skip to content

Commit ecd9fc3

Browse files
manoldonevvchimev
authored andcommitted
feat: bundle workflow support (#7337)
1 parent 5f9eabd commit ecd9fc3

1,636 files changed

Lines changed: 19464 additions & 1638 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ tscommand*.tmp.txt
4848

4949
# Other
5050
*.js
51+
# https://github.com/NativeScript/nativescript-dev-webpack/issues/932
52+
!tns-core-modules/xml/xml.js
5153
!tests/hooks/**/*.*
5254
!gruntfile.js
5355
!js-libs/**/*.*

‎.vscode/launch.json‎

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
25
"version": "0.2.0",
36
"configurations": [
47
{
58
"type": "node",
69
"request": "launch",
710
"name": "Unit Tests",
811
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
9-
"args": [ "--timeout", "999999", "--opts", "unit-tests/mocha.opts" ],
12+
"args": [
13+
"--timeout",
14+
"999999",
15+
"--opts",
16+
"unit-tests/mocha.opts"
17+
],
1018
"internalConsoleOptions": "openOnSessionStart",
1119
"preLaunchTask": "tsc-unit-tests"
1220
},
@@ -19,6 +27,20 @@
1927
"sourceMaps": true,
2028
"watch": true
2129
},
30+
// {
31+
// "name": "Test on iOS",
32+
// "type": "nativescript",
33+
// "request": "launch",
34+
// "platform": "ios",
35+
// "appRoot": "${workspaceRoot}",
36+
// "sourceMaps": true,
37+
// "watch": false,
38+
// "stopOnEntry": true,
39+
// "launchTests": true,
40+
// "tnsArgs": [
41+
// "--justlaunch"
42+
// ]
43+
// },
2244
{
2345
"name": "Attach on iOS",
2446
"type": "nativescript",
@@ -37,6 +59,32 @@
3759
"sourceMaps": true,
3860
"watch": true
3961
},
62+
{
63+
"name": "Debug tests on Android",
64+
"type": "nativescript",
65+
"request": "launch",
66+
"platform": "android",
67+
"appRoot": "${workspaceRoot}/tests",
68+
"sourceMaps": true,
69+
"watch": true,
70+
// "tnsArgs": [
71+
// "--debug-brk"
72+
// ]
73+
},
74+
// {
75+
// "name": "Test on Android",
76+
// "type": "nativescript",
77+
// "request": "launch",
78+
// "platform": "android",
79+
// "appRoot": "${workspaceRoot}",
80+
// "sourceMaps": true,
81+
// "watch": false,
82+
// "stopOnEntry": true,
83+
// "launchTests": true,
84+
// "tnsArgs": [
85+
// "--justlaunch"
86+
// ]
87+
// },
4088
{
4189
"name": "Attach on Android",
4290
"type": "nativescript",
@@ -47,4 +95,4 @@
4795
"watch": false
4896
}
4997
]
50-
}
98+
}

‎DevelopmentWorkflow.md‎

Lines changed: 8 additions & 17 deletions

‎WritingUnitTests.md‎

Lines changed: 1 addition & 1 deletion

‎apps/app/App_Resources/Android/app.gradle‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22

33
// Uncomment to add recyclerview-v7 dependency
44
//dependencies {
5-
// compile 'com.android.support:recyclerview-v7:+'
5+
// implementation 'com.android.support:recyclerview-v7:+'
66
//}
77

8-
android {
9-
defaultConfig {
8+
// If you want to add something to be applied before applying plugins' include.gradle files
9+
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
10+
// create a file named before-plugins.gradle in the current directory and place it there
11+
12+
android {
13+
defaultConfig {
14+
minSdkVersion 17
1015
generatedDensities = []
11-
applicationId = "org.nativescript.apps"
12-
}
13-
aaptOptions {
14-
additionalParameters "--no-version-vectors"
15-
}
16-
}
17-
project.ext.useAndroidX=true
16+
}
17+
aaptOptions {
18+
additionalParameters "--no-version-vectors"
19+
}
20+
}
-6.03 KB
Binary file not shown.
-7.42 KB
Binary file not shown.

apps/app/App_Resources/Android/AndroidManifest.xml renamed to apps/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,27 @@
1010
android:largeScreens="true"
1111
android:xlargeScreens="true"/>
1212

13-
<uses-sdk
14-
android:minSdkVersion="17"
15-
android:targetSdkVersion="__APILEVEL__"/>
16-
1713
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
1814
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
1915
<uses-permission android:name="android.permission.INTERNET"/>
20-
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
2116

2217
<application
2318
android:name="com.tns.NativeScriptApplication"
2419
android:allowBackup="true"
2520
android:icon="@drawable/icon"
2621
android:label="@string/app_name"
27-
android:theme="@style/AppTheme"
28-
android:usesCleartextTraffic="true" >
29-
<meta-data android:name="debugLayouts" android:value="true" />
30-
31-
<provider
32-
android:name="androidx.core.content.FileProvider"
33-
android:authorities="org.nativescript.apps.provider"
34-
android:exported="false"
35-
android:grantUriPermissions="true">
36-
<meta-data
37-
android:name="android.support.FILE_PROVIDER_PATHS"
38-
android:resource="@xml/provider_paths"/>
39-
</provider>
22+
android:theme="@style/AppTheme">
4023

4124
<activity
4225
android:name="com.tns.NativeScriptActivity"
4326
android:label="@string/title_activity_kimera"
44-
android:configChanges="keyboardHidden|orientation|screenSize">
27+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
28+
android:theme="@style/LaunchScreenTheme">
4529

46-
<intent-filter>
47-
<action android:name="android.intent.action.MAIN" />
30+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
4831

32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN" />
4934
<category android:name="android.intent.category.LAUNCHER" />
5035
</intent-filter>
5136
</activity>
3.42 KB
6.8 KB

0 commit comments

Comments
 (0)