nativescript 8.8.0-embed.0 → 8.8.0-embed.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/test-deps-versions-generated.json +1 -1
- package/docs/man_pages/project/configuration/native/native-add-java.md +32 -0
- package/docs/man_pages/project/configuration/native/native-add-kotlin.md +34 -0
- package/docs/man_pages/project/configuration/native/native-add-objective-c.md +34 -0
- package/docs/man_pages/project/configuration/native/native-add-swift.md +32 -0
- package/docs/man_pages/project/configuration/native/native-add.md +31 -0
- package/docs/man_pages/project/configuration/native/native.md +31 -0
- package/lib/.d.ts +2 -0
- package/lib/bootstrap.js +8 -0
- package/lib/commands/add-platform.js +1 -1
- package/lib/commands/embedding/embed.js +84 -0
- package/lib/commands/native-add.js +299 -0
- package/lib/commands/prepare.js +9 -0
- package/lib/common/mobile/android/logcat-helper.js +15 -6
- package/lib/controllers/platform-controller.js +6 -1
- package/lib/controllers/prepare-controller.js +2 -4
- package/lib/data/build-data.js +2 -2
- package/lib/data/prepare-data.js +1 -1
- package/lib/declarations.d.ts +6 -4
- package/lib/definitions/platform.d.ts +1 -1
- package/lib/definitions/prepare.d.ts +3 -0
- package/lib/definitions/project.d.ts +2 -0
- package/lib/helpers/platform-command-helper.js +5 -8
- package/lib/options.js +2 -2
- package/lib/project-data.js +4 -1
- package/lib/providers/project-files-provider.js +1 -1
- package/lib/services/android/gradle-build-args-service.js +2 -6
- package/lib/services/android-plugin-build-service.js +14 -17
- package/lib/services/android-project-service.js +15 -15
- package/lib/services/assets-generation/assets-generation-service.js +1 -4
- package/lib/services/files-hash-service.js +1 -1
- package/lib/services/ios-project-service.js +9 -9
- package/lib/services/livesync/android-device-livesync-sockets-service.js +1 -1
- package/lib/services/livesync/platform-livesync-service-base.js +2 -2
- package/lib/services/log-source-map-service.js +1 -1
- package/lib/services/platform/add-platform-service.js +2 -3
- package/lib/services/platform/prepare-native-platform-service.js +2 -2
- package/lib/services/plugins-service.js +3 -3
- package/lib/services/project-changes-service.js +2 -2
- package/lib/services/project-config-service.js +1 -1
- package/lib/services/webpack/webpack-compiler-service.js +8 -8
- package/package.json +1 -1
- package/vendor/aab-tool/README.txt +1 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- package/vendor/gradle-plugin/build.gradle +21 -15
- package/vendor/gradle-plugin/settings.gradle +0 -2
|
@@ -131,7 +131,7 @@ class ProjectChangesService {
|
|
|
131
131
|
return prepareInfoFilePath;
|
|
132
132
|
}
|
|
133
133
|
getPrepareInfo(platformData) {
|
|
134
|
-
if (this.$options.
|
|
134
|
+
if (this.$options.hostProjectPath) {
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
137
|
const prepareInfoFilePath = this.getPrepareInfoFilePath(platformData);
|
|
@@ -151,7 +151,7 @@ class ProjectChangesService {
|
|
|
151
151
|
if (!this._prepareInfo) {
|
|
152
152
|
yield this.ensurePrepareInfo(platformData, projectData, prepareData);
|
|
153
153
|
}
|
|
154
|
-
if (this.$options.
|
|
154
|
+
if (this.$options.hostProjectPath) {
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
157
|
const prepareInfoFilePath = this.getPrepareInfoFilePath(platformData);
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
195
195
|
singleQuote: true,
|
|
196
196
|
};
|
|
197
197
|
this.$logger.trace("updating config, prettier options: ", prettierOptions);
|
|
198
|
-
this.$fs.writeFile(configFilePath, (0, prettier_1.format)(newContent, Object.assign(Object.assign({}, prettierOptions), { parser: "typescript" })));
|
|
198
|
+
this.$fs.writeFile(configFilePath, (0, prettier_1.format)(newContent, Object.assign(Object.assign({}, prettierOptions), { parser: "typescript", plugins: [] })));
|
|
199
199
|
}
|
|
200
200
|
catch (error) {
|
|
201
201
|
this.$logger.error(`Failed to update config.` + error);
|
|
@@ -94,8 +94,8 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
94
94
|
hash: "",
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
const files = result.emittedFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.
|
|
98
|
-
const fallbackFiles = result.fallbackFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.
|
|
97
|
+
const files = result.emittedFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.hostProjectModuleName, file));
|
|
98
|
+
const fallbackFiles = result.fallbackFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.hostProjectModuleName, file));
|
|
99
99
|
const data = {
|
|
100
100
|
files,
|
|
101
101
|
hasOnlyHotUpdateFiles: files.every((f) => f.indexOf("hot-update") > -1),
|
|
@@ -218,11 +218,11 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
218
218
|
cwd: projectData.projectDir,
|
|
219
219
|
stdio,
|
|
220
220
|
};
|
|
221
|
-
if (this.$options.
|
|
221
|
+
if (this.$options.hostProjectPath) {
|
|
222
222
|
options.env = {
|
|
223
|
-
USER_PROJECT_PLATFORMS_ANDROID: this.$options.
|
|
224
|
-
USER_PROJECT_PLATFORMS_ANDROID_MODULE: this.$options.
|
|
225
|
-
USER_PROJECT_PLATFORMS_IOS: this.$options.
|
|
223
|
+
USER_PROJECT_PLATFORMS_ANDROID: this.$options.hostProjectPath,
|
|
224
|
+
USER_PROJECT_PLATFORMS_ANDROID_MODULE: this.$options.hostProjectModuleName,
|
|
225
|
+
USER_PROJECT_PLATFORMS_IOS: this.$options.hostProjectPath,
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
const childProcess = this.$childProcess.spawn(process.execPath, args, options);
|
|
@@ -345,8 +345,8 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
this.$logger.trace("Webpack build done!");
|
|
348
|
-
const files = message.data.emittedAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.
|
|
349
|
-
const staleFiles = message.data.staleAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.
|
|
348
|
+
const files = message.data.emittedAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.hostProjectModuleName, asset));
|
|
349
|
+
const staleFiles = message.data.staleAssets.map((asset) => path.join(platformData.appDestinationDirectoryPath, this.$options.hostProjectModuleName, asset));
|
|
350
350
|
const lastHash = (() => {
|
|
351
351
|
const absoluteFileNameWithLastHash = files.find((fileName) => fileName.endsWith("hot-update.js"));
|
|
352
352
|
if (!absoluteFileNameWithLastHash) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"main": "./lib/nativescript-cli-lib.js",
|
|
4
|
-
"version": "8.8.0-embed.
|
|
4
|
+
"version": "8.8.0-embed.2",
|
|
5
5
|
"author": "NativeScript <support@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Downloaded from https://github.com/google/bundletool/releases/tag/1.
|
|
1
|
+
Downloaded from https://github.com/google/bundletool/releases/tag/1.15.6
|
|
Binary file
|
|
@@ -30,11 +30,11 @@ buildscript {
|
|
|
30
30
|
def getDepPlatformDir = { dep ->
|
|
31
31
|
file("${project.ext.USER_PROJECT_PLATFORMS_ANDROID}/${dep.directory}/$PLATFORMS_ANDROID")
|
|
32
32
|
}
|
|
33
|
-
def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "
|
|
33
|
+
def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "2.0.0" }
|
|
34
34
|
def kotlinVersion = computeKotlinVersion()
|
|
35
35
|
repositories {
|
|
36
36
|
google()
|
|
37
|
-
|
|
37
|
+
mavenCentral()
|
|
38
38
|
}
|
|
39
39
|
dependencies {
|
|
40
40
|
classpath 'com.android.tools.build:gradle:{{runtimeAndroidPluginVersion}}'
|
|
@@ -150,7 +150,6 @@ allprojects {
|
|
|
150
150
|
url 'https://maven.google.com/'
|
|
151
151
|
name 'Google'
|
|
152
152
|
}
|
|
153
|
-
jcenter()
|
|
154
153
|
if (pluginDependencies.size() > 0) {
|
|
155
154
|
flatDir {
|
|
156
155
|
dirs pluginDependencies
|
|
@@ -160,13 +159,29 @@ allprojects {
|
|
|
160
159
|
}
|
|
161
160
|
|
|
162
161
|
|
|
163
|
-
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk :
|
|
164
|
-
def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk :
|
|
162
|
+
def computeCompileSdkVersion = { -> project.hasProperty("compileSdk") ? compileSdk : 34 }
|
|
163
|
+
def computeTargetSdkVersion = { -> project.hasProperty("targetSdk") ? targetSdk : 34 as int }
|
|
165
164
|
def computeBuildToolsVersion = { ->
|
|
166
|
-
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "
|
|
165
|
+
project.hasProperty("buildToolsVersion") ? buildToolsVersion : "34.0.0"
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
android {
|
|
169
|
+
namespace "{{pluginNamespace}}"
|
|
170
|
+
|
|
171
|
+
kotlinOptions {
|
|
172
|
+
jvmTarget = '17'
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
compileOptions {
|
|
176
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
177
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
if (project.hasProperty("ndkVersion")) {
|
|
182
|
+
ndkVersion project.ndkVersion
|
|
183
|
+
}
|
|
184
|
+
|
|
170
185
|
def applyPluginGradleConfigurations = { ->
|
|
171
186
|
nativescriptDependencies.each { dep ->
|
|
172
187
|
def includeGradlePath = "${getDepPlatformDir(dep)}/include.gradle"
|
|
@@ -220,15 +235,6 @@ task addDependenciesFromNativeScriptPlugins {
|
|
|
220
235
|
}
|
|
221
236
|
}
|
|
222
237
|
|
|
223
|
-
afterEvaluate {
|
|
224
|
-
def generateBuildConfig = project.hasProperty("generateBuildConfig") ? project.generateBuildConfig : false
|
|
225
|
-
def generateR = project.hasProperty("generateR") ? project.generateR : false
|
|
226
|
-
generateReleaseBuildConfig.enabled = generateBuildConfig
|
|
227
|
-
generateDebugBuildConfig.enabled = generateBuildConfig
|
|
228
|
-
generateReleaseResValues.enabled = generateR
|
|
229
|
-
generateDebugResValues.enabled = generateR
|
|
230
|
-
}
|
|
231
|
-
|
|
232
238
|
tasks.whenTaskAdded({ DefaultTask currentTask ->
|
|
233
239
|
if (currentTask.name == 'bundleRelease' || currentTask.name == 'bundleDebug') {
|
|
234
240
|
def generateBuildConfig = project.hasProperty("generateBuildConfig") ? project.generateBuildConfig : false
|
|
@@ -12,8 +12,6 @@ if (USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV != null && !USER_PROJECT_PLATFORMS_A
|
|
|
12
12
|
USER_PROJECT_PLATFORMS_ANDROID = "$rootDir/../../../platforms/android"
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
System.out.println("!!!!! VM: USER_PROJECT_PLATFORMS_ANDROID: " + USER_PROJECT_PLATFORMS_ANDROID);
|
|
16
|
-
|
|
17
15
|
def dependenciesJson = file("${USER_PROJECT_PLATFORMS_ANDROID}/dependencies.json")
|
|
18
16
|
def appDependencies = new JsonSlurper().parseText(dependenciesJson.text)
|
|
19
17
|
def pluginData = appDependencies.find { it.name == PLUGIN_NAME }
|