Skip to content

Commit

Permalink
Merge pull request #1195 from flexn-io/chore/ts-coverage
Browse files Browse the repository at this point in the history
Chore/ts coverage
  • Loading branch information
pavjacko authored Oct 23, 2023
2 parents 471ef07 + 5b83918 commit 2daeade
Show file tree
Hide file tree
Showing 78 changed files with 1,344 additions and 636 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"bootstrap-clean": "rimraf -I ./node_modules; npx lerna clean --yes && yarn bootstrap",
"build": "lerna run build",
"report-circular": "npx madge --circular --extensions ts --exclude '\\.(d.ts)$' ./packages",
"report-ts-coverage": "typescript-coverage-report -p ./packages/core/tsconfig.json -t 99 -i lib",
"report-ts-coverage": "typescript-coverage-report -p ./packages/core/tsconfig.json -t 99",
"report-jest": "jest --coverage",
"compile": "npx lerna run compile",
"deploy:canary": "yarn pre-publish && npx lerna publish from-package --dist-tag canary && git push origin HEAD",
Expand Down
117 changes: 100 additions & 17 deletions packages/core/jsonSchema/rnv.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,19 +621,31 @@
"AndroidManifest_xml": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"android:name": {
"type": "string"
},
"android:required": {
"type": "boolean"
},
"package": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tag": {
"type": "string"
"$ref": "#/definitions/rnv.app/properties/platforms/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/tag"
},
"android:name": {
"type": "string"
"$ref": "#/definitions/rnv.app/properties/platforms/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/android:name"
},
"android:required": {
"type": "boolean"
"$ref": "#/definitions/rnv.app/properties/platforms/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/android:required"
},
"children": {
"type": "array",
Expand All @@ -652,6 +664,8 @@
}
},
"required": [
"tag",
"android:name",
"children"
],
"additionalProperties": false,
Expand All @@ -662,33 +676,88 @@
"properties": {},
"additionalProperties": false
},
"settings_gradle": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"gradle_wrapper_properties": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"MainActivity_java": {
"type": "object",
"properties": {
"onCreate": {
"type": "string",
"default": "super.onCreate(savedInstanceState)",
"description": "Overrides super.onCreate method handler of MainActivity.java"
},
"imports": {
"type": "array",
"items": {
"type": "string"
}
},
"methods": {
"type": "array",
"items": {
"type": "string"
}
},
"createMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"resultMethods": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"MainApplication_java": {
"type": "object",
"properties": {},
"properties": {
"imports": {
"type": "array",
"items": {
"type": "string"
}
},
"methods": {
"type": "array",
"items": {
"type": "string"
}
},
"createMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"packages": {
"type": "array",
"items": {
"type": "string"
}
},
"packageParams": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"description": "Allows you to configure behaviour of MainActivity"
},
"settings_gradle": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"gradle_wrapper_properties": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"SplashActivity_java": {
"type": "object",
"properties": {},
Expand Down Expand Up @@ -1062,8 +1131,8 @@
"type": "string"
},
"provisionProfileSpecifiers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
Expand Down Expand Up @@ -3108,7 +3177,9 @@
},
"props": {
"type": "object",
"additionalProperties": {},
"additionalProperties": {
"type": "string"
},
"description": "Custom props passed to plugin"
},
"version": {
Expand Down Expand Up @@ -3211,6 +3282,12 @@
"type": "boolean",
"description": "Disables plugin overrides for selected plugin"
},
"fontSources": {
"type": "array",
"items": {
"type": "string"
}
},
"android": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3286,6 +3363,12 @@
}
},
"additionalProperties": false
},
"MainActivity_java": {
"$ref": "#/definitions/rnv.app/properties/platforms/properties/android/properties/templateAndroid/properties/MainActivity_java"
},
"MainApplication_java": {
"$ref": "#/definitions/rnv.app/properties/platforms/properties/android/properties/templateAndroid/properties/MainApplication_java"
}
},
"additionalProperties": false
Expand Down
3 changes: 3 additions & 0 deletions packages/core/jsonSchema/rnv.engine.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
},
"peerDependencies": {
"$ref": "#/definitions/rnv.engine/properties/platforms/additionalProperties/properties/npm/properties/dependencies"
},
"optionalDependencies": {
"$ref": "#/definitions/rnv.engine/properties/platforms/additionalProperties/properties/npm/properties/dependencies"
}
},
"additionalProperties": false
Expand Down
19 changes: 17 additions & 2 deletions packages/core/jsonSchema/rnv.global.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,24 @@
},
"sdks": {
"type": "object",
"additionalProperties": {
"type": "string"
"properties": {
"ANDROID_SDK": {
"type": "string"
},
"ANDROID_NDK": {
"type": "string"
},
"TIZEN_SDK": {
"type": "string"
},
"WEBOS_SDK": {
"type": "string"
},
"KAIOS_SDK": {
"type": "string"
}
},
"additionalProperties": false,
"description": "Define your sdk configurations"
},
"projectTemplates": {
Expand Down
102 changes: 98 additions & 4 deletions packages/core/jsonSchema/rnv.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
},
"props": {
"type": "object",
"additionalProperties": {},
"additionalProperties": {
"type": "string"
},
"description": "Custom props passed to plugin"
},
"version": {
Expand Down Expand Up @@ -119,6 +121,12 @@
"type": "boolean",
"description": "Disables plugin overrides for selected plugin"
},
"fontSources": {
"type": "array",
"items": {
"type": "string"
}
},
"android": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -294,19 +302,31 @@
"AndroidManifest_xml": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"android:name": {
"type": "string"
},
"android:required": {
"type": "boolean"
},
"package": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"type": "object",
"properties": {
"tag": {
"type": "string"
"$ref": "#/definitions/rnv.plugin/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/tag"
},
"android:name": {
"type": "string"
"$ref": "#/definitions/rnv.plugin/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/android:name"
},
"android:required": {
"type": "boolean"
"$ref": "#/definitions/rnv.plugin/properties/android/properties/templateAndroid/properties/AndroidManifest_xml/properties/android:required"
},
"children": {
"type": "array",
Expand All @@ -325,6 +345,8 @@
}
},
"required": [
"tag",
"android:name",
"children"
],
"additionalProperties": false,
Expand Down Expand Up @@ -358,6 +380,78 @@
}
},
"additionalProperties": false
},
"MainActivity_java": {
"type": "object",
"properties": {
"onCreate": {
"type": "string",
"default": "super.onCreate(savedInstanceState)",
"description": "Overrides super.onCreate method handler of MainActivity.java"
},
"imports": {
"type": "array",
"items": {
"type": "string"
}
},
"methods": {
"type": "array",
"items": {
"type": "string"
}
},
"createMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"resultMethods": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"MainApplication_java": {
"type": "object",
"properties": {
"imports": {
"type": "array",
"items": {
"type": "string"
}
},
"methods": {
"type": "array",
"items": {
"type": "string"
}
},
"createMethods": {
"type": "array",
"items": {
"type": "string"
}
},
"packages": {
"type": "array",
"items": {
"type": "string"
}
},
"packageParams": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"description": "Allows you to configure behaviour of MainActivity"
}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit 2daeade

Please sign in to comment.