File tree 4 files changed +28
-6
lines changed
4 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ import * as _ from "lodash";
10
10
11
11
export class AndroidToolsInfo implements NativeScriptDoctor . IAndroidToolsInfo {
12
12
public readonly ANDROID_TARGET_PREFIX = "android" ;
13
- private getSupportedTargets ( projectDir : string ) {
13
+ public getSupportedTargets ( projectDir : string ) {
14
14
const runtimeVersion = this . getRuntimeVersion ( { projectDir} ) ;
15
15
let baseTargets = [
16
16
"android-17" ,
17
17
"android-18" ,
18
18
"android-19" ,
19
+ "android-20" ,
19
20
"android-21" ,
20
21
"android-22" ,
21
22
"android-23" ,
@@ -24,7 +25,8 @@ export class AndroidToolsInfo implements NativeScriptDoctor.IAndroidToolsInfo {
24
25
"android-26" ,
25
26
"android-27" ,
26
27
"android-28" ,
27
- "android-29"
28
+ "android-29" ,
29
+ "android-30"
28
30
] ;
29
31
30
32
if ( runtimeVersion && semver . lt ( semver . coerce ( runtimeVersion ) , "6.1.0" ) ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-doctor" ,
3
- "version" : " 1.14.1 " ,
3
+ "version" : " 1.14.2 " ,
4
4
"description" : " Library that helps identifying if the environment can be used for development of {N} apps." ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " ./typings/nativescript-doctor.d.ts" ,
7
7
"scripts" : {
8
- "test" : " node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive"
8
+ "clean" : " npx rimraf node_modules package-lock.json && npm i && ./node_modules/.bin/grunt clean" ,
9
+ "build" : " ./node_modules/.bin/grunt" ,
10
+ "build.all" : " ./node_modules/.bin/grunt ts:devall" ,
11
+ "pack" : " ./node_modules/.bin/grunt pack" ,
12
+ "test" : " node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --recursive" ,
13
+ "changelog" : " conventional-changelog -p angular -i CHANGELOG.md -s"
9
14
},
10
15
"repository" : {
11
16
"type" : " git" ,
33
38
"@types/winreg" : " 1.2.30" ,
34
39
"@types/yauzl" : " 2.9.0" ,
35
40
"chai" : " 4.1.2" ,
41
+ "conventional-changelog-cli" : " ^2.0.34" ,
36
42
"grunt" : " 1.0.3" ,
37
43
"grunt-contrib-clean" : " 1.0.0" ,
38
44
"grunt-contrib-watch" : " 1.1.0" ,
44
50
"rimraf" : " 2.5.4" ,
45
51
"tslint" : " 5.14.0" ,
46
52
"tslint-microsoft-contrib" : " 6.1.0" ,
47
- "typescript" : " 3.3.4000 "
53
+ "typescript" : " ~3.8.3 "
48
54
},
49
55
"dependencies" : {
50
56
"lodash" : " 4.17.15" ,
Original file line number Diff line number Diff line change @@ -75,6 +75,21 @@ describe("androidToolsInfo", () => {
75
75
} ) ;
76
76
} ) ;
77
77
78
+ describe ( "supportedAndroidSdks" , ( ) => {
79
+ it ( "should support android-17 - android-30" , ( ) => {
80
+ const min = 17 ;
81
+ const max = 30 ;
82
+ let cnt = 0 ;
83
+ const androidToolsInfo = getAndroidToolsInfo ( "6.5.0" ) ;
84
+ const supportedTargets = androidToolsInfo . getSupportedTargets ( "test" ) ;
85
+ for ( let i = 0 ; i < supportedTargets . length ; i ++ ) {
86
+ assert . equal ( supportedTargets [ i ] , `android-${ min + i } ` ) ;
87
+ cnt = min + i ;
88
+ }
89
+ assert . equal ( cnt , max ) ;
90
+ } ) ;
91
+ } ) ;
92
+
78
93
describe ( "validateJavacVersion" , ( ) => {
79
94
const testData : ITestData [ ] = [
80
95
{
Original file line number Diff line number Diff line change 66
66
true ,
67
67
" check-branch" ,
68
68
" check-decl" ,
69
- " check-operator" ,
70
69
" check-module" ,
71
70
" check-separator"
72
71
]
You can’t perform that action at this time.
0 commit comments