@nativescript/android 8.4.0-dev.0 → 8.4.0-dev.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/framework/app/libs/runtime-libs/nativescript-optimized-with-inspector.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-optimized.aar +0 -0
- package/framework/app/libs/runtime-libs/nativescript-regular.aar +0 -0
- package/framework/app/src/main/java/com/tns/Benchmarker.java +2 -0
- package/framework/app/src/main/java/com/tns/RuntimeHelper.java +5 -5
- package/framework/gradle.properties +3 -3
- package/framework/settings.gradle +71 -0
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -162,7 +162,7 @@ public final class RuntimeHelper {
|
|
|
162
162
|
appDir, classLoader, dexDir, dexThumb, appConfig, isDebuggable);
|
|
163
163
|
|
|
164
164
|
runtime = Runtime.initializeRuntimeWithConfiguration(config);
|
|
165
|
-
|
|
165
|
+
if (isDebuggable) {
|
|
166
166
|
// try {
|
|
167
167
|
// v8Inspector = new AndroidJsV8Inspector(context.getFilesDir().getAbsolutePath(), context.getPackageName());
|
|
168
168
|
// v8Inspector.start();
|
|
@@ -198,10 +198,10 @@ public final class RuntimeHelper {
|
|
|
198
198
|
//
|
|
199
199
|
// // if app is in debuggable mode run livesync service
|
|
200
200
|
// // runtime needs to be initialized before the NativeScriptSyncService is enabled because it uses runtime.runScript(...)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
initLiveSync(runtime, logger, context);
|
|
202
|
+
|
|
203
|
+
waitForLiveSync(context);
|
|
204
|
+
}
|
|
205
205
|
|
|
206
206
|
runtime.runScript(new File(appDir, "internal/ts_helpers.js"));
|
|
207
207
|
|
|
@@ -20,9 +20,9 @@ android.enableJetifier=true
|
|
|
20
20
|
android.useAndroidX=true
|
|
21
21
|
|
|
22
22
|
# Default versions used throughout the gradle configurations
|
|
23
|
-
NS_DEFAULT_BUILD_TOOLS_VERSION=
|
|
24
|
-
NS_DEFAULT_COMPILE_SDK_VERSION=
|
|
25
|
-
NS_DEFAULT_MIN_SDK_VERSION=
|
|
23
|
+
NS_DEFAULT_BUILD_TOOLS_VERSION=33.0.0
|
|
24
|
+
NS_DEFAULT_COMPILE_SDK_VERSION=33
|
|
25
|
+
NS_DEFAULT_MIN_SDK_VERSION=17
|
|
26
26
|
NS_DEFAULT_ANDROID_BUILD_TOOLS_VERSION=7.3.0
|
|
27
27
|
|
|
28
28
|
ns_default_androidx_appcompat_version = 1.5.1
|
|
@@ -5,3 +5,74 @@ include ':app'//, ':runtime', ':runtime-binding-generator'
|
|
|
5
5
|
//project(':runtime-binding-generator').projectDir = new File("${System.env.ANDROID_RUNTIME_HOME}/test-app/runtime-binding-generator")
|
|
6
6
|
|
|
7
7
|
file("google-services.json").renameTo(file("./app/google-services.json"))
|
|
8
|
+
|
|
9
|
+
import org.gradle.internal.logging.text.StyledTextOutputFactory
|
|
10
|
+
|
|
11
|
+
import java.nio.file.Paths
|
|
12
|
+
|
|
13
|
+
import org.gradle.internal.logging.text.StyledTextOutputFactory
|
|
14
|
+
import groovy.json.JsonSlurper
|
|
15
|
+
import static org.gradle.internal.logging.text.StyledTextOutput.Style
|
|
16
|
+
|
|
17
|
+
def USER_PROJECT_ROOT = "$rootDir/../../"
|
|
18
|
+
def outLogger = services.get(StyledTextOutputFactory).create("colouredOutputLogger")
|
|
19
|
+
def ext = {
|
|
20
|
+
appResourcesPath = getProperty("appResourcesPath")
|
|
21
|
+
appPath = getProperty("appPath")
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
def getAppPath = { ->
|
|
25
|
+
def relativePathToApp = "app"
|
|
26
|
+
def nsConfigFile = file("$USER_PROJECT_ROOT/nsconfig.json")
|
|
27
|
+
def nsConfig
|
|
28
|
+
|
|
29
|
+
if (nsConfigFile.exists()) {
|
|
30
|
+
nsConfig = new JsonSlurper().parseText(nsConfigFile.getText("UTF-8"))
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (ext.appPath) {
|
|
34
|
+
// when appPath is passed through -PappPath=/path/to/app
|
|
35
|
+
// the path could be relative or absolute - either case will work
|
|
36
|
+
relativePathToApp = ext.appPath
|
|
37
|
+
} else if (nsConfig != null && nsConfig.appPath != null) {
|
|
38
|
+
relativePathToApp = nsConfig.appPath
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return Paths.get(USER_PROJECT_ROOT).resolve(relativePathToApp).toAbsolutePath()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def getAppResourcesPath = { ->
|
|
46
|
+
def relativePathToAppResources
|
|
47
|
+
def absolutePathToAppResources
|
|
48
|
+
def nsConfigFile = file("$USER_PROJECT_ROOT/nsconfig.json")
|
|
49
|
+
def nsConfig
|
|
50
|
+
|
|
51
|
+
if (nsConfigFile.exists()) {
|
|
52
|
+
nsConfig = new JsonSlurper().parseText(nsConfigFile.getText("UTF-8"))
|
|
53
|
+
}
|
|
54
|
+
if (ext.appResourcesPath) {
|
|
55
|
+
// when appResourcesPath is passed through -PappResourcesPath=/path/to/App_Resources
|
|
56
|
+
// the path could be relative or absolute - either case will work
|
|
57
|
+
relativePathToAppResources = ext.appResourcesPath
|
|
58
|
+
absolutePathToAppResources = Paths.get(USER_PROJECT_ROOT).resolve(relativePathToAppResources).toAbsolutePath()
|
|
59
|
+
} else if (nsConfig != null && nsConfig.appResourcesPath != null) {
|
|
60
|
+
relativePathToAppResources = nsConfig.appResourcesPath
|
|
61
|
+
absolutePathToAppResources = Paths.get(USER_PROJECT_ROOT).resolve(relativePathToAppResources).toAbsolutePath()
|
|
62
|
+
} else {
|
|
63
|
+
absolutePathToAppResources = "${getAppPath()}/App_Resources"
|
|
64
|
+
}
|
|
65
|
+
return absolutePathToAppResources
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
def applySettingsGradleConfiguration = { ->
|
|
69
|
+
def appResourcesPath = getAppResourcesPath()
|
|
70
|
+
def pathToSettingsGradle = "$appResourcesPath/Android/settings.gradle"
|
|
71
|
+
def settingsGradle = file(pathToSettingsGradle)
|
|
72
|
+
if (settingsGradle.exists()) {
|
|
73
|
+
outLogger.withStyle(Style.SuccessHeader).println "\t + applying user-defined configuration from ${settingsGradle}"
|
|
74
|
+
apply from: pathToSettingsGradle
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
applySettingsGradleConfiguration()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nativescript/android",
|
|
3
3
|
"description": "NativeScript Runtime for Android",
|
|
4
|
-
"version": "8.4.0-dev.
|
|
4
|
+
"version": "8.4.0-dev.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/NativeScript/android-runtime.git"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"gradleAndroid": "7.3.0",
|
|
16
16
|
"ndk": "r21",
|
|
17
17
|
"ndkApiLevel": "22",
|
|
18
|
-
"minSdk": "
|
|
18
|
+
"minSdk": "17",
|
|
19
19
|
"compileSdk": "32",
|
|
20
20
|
"buildTools": "32.0.0",
|
|
21
21
|
"kotlin": "1.7.10"
|