-
-
Notifications
You must be signed in to change notification settings - Fork 40
fix: resolve appComponents and xml namespaces absolute paths on Windows #578
Conversation
78305d6
to
adb67b4
Compare
2d06055
to
ba89c28
Compare
android-app-components-loader.js
Outdated
this.cacheable(); | ||
const { modules } = this.query; | ||
const imports = modules.map(m => `require("${m}");`).join("\n"); | ||
const imports = modules.map(m => convertSlashesInPath(m)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.map(m => convertSlashesInPath(m))
can be simplified to .map(convertSlashesInPath)
demo/AngularApp/references.d.ts
Outdated
@@ -0,0 +1,2 @@ | |||
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of native API - otherwise, transpilation fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cast to any? I mean, it's a test app.
@@ -0,0 +1,35 @@ | |||
let frame = require("ui/frame"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
@@ -0,0 +1,35 @@ | |||
let frame = require("ui/frame"); | |||
|
|||
let superProto = android.app.Activity.prototype; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
let frame = require("ui/frame"); | ||
|
||
let superProto = android.app.Activity.prototype; | ||
let Activity = android.app.Activity.extend("org.myApp.MainActivity", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const. Maybe it's not even needed to assign this to a variable.
@@ -0,0 +1,16 @@ | |||
var superProto = android.app.Application.prototype; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
@@ -0,0 +1,16 @@ | |||
var superProto = android.app.Application.prototype; | |||
// the first parameter of the `extend` call defines the package and the name for the native *.JAVA file generated. | |||
var Application = android.app.Application.extend("org.myApp.Application", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as for the activity
@@ -0,0 +1,18 @@ | |||
// the `JavaProxy` decorator specifies the package and the name for the native *.JAVA file generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the comments.
xml-namespace-loader.js
Outdated
@@ -67,6 +68,11 @@ module.exports = function(source) { | |||
parser.parse(source); | |||
|
|||
const moduleRegisters = namespaces | |||
.map(function (n) { | |||
let obj = n; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable is not needed. Also extract that function.
d84ce1b
to
92415df
Compare
Clean up npm scripts.
Clean up npm scripts.
Clean up npm scripts.
The nativescript-dev-appium plugin gets it automatically, no need to declare it in the `appium.capabilities.json` file.
aef8202
to
bbb9716
Compare
Hi, @RoyiNamir! For this plugin, usually the best place is the changelog. |
No problem :) We'll investigate the issue you opened. |
Fixes #573.