@nativescript/android 8.4.0-alpha.8 → 8.4.0-dev.0
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/RuntimeHelper.java +40 -40
- package/framework/build-tools/android-metadata-generator.jar +0 -0
- package/framework/build-tools/dts-generator.jar +0 -0
- package/framework/build-tools/jsparser/js_parser.js +1 -1
- package/framework/build-tools/static-binding-generator.jar +0 -0
- package/framework/gradle.properties +1 -1
- package/framework/settings.gradle +0 -71
- package/package.json +2 -2
|
Binary file
|
|
@@ -22,7 +22,7 @@ android.useAndroidX=true
|
|
|
22
22
|
# Default versions used throughout the gradle configurations
|
|
23
23
|
NS_DEFAULT_BUILD_TOOLS_VERSION=32.0.0
|
|
24
24
|
NS_DEFAULT_COMPILE_SDK_VERSION=32
|
|
25
|
-
NS_DEFAULT_MIN_SDK_VERSION=
|
|
25
|
+
NS_DEFAULT_MIN_SDK_VERSION=21
|
|
26
26
|
NS_DEFAULT_ANDROID_BUILD_TOOLS_VERSION=7.3.0
|
|
27
27
|
|
|
28
28
|
ns_default_androidx_appcompat_version = 1.5.1
|
|
@@ -5,74 +5,3 @@ 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-
|
|
4
|
+
"version": "8.4.0-dev.0",
|
|
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": "21",
|
|
19
19
|
"compileSdk": "32",
|
|
20
20
|
"buildTools": "32.0.0",
|
|
21
21
|
"kotlin": "1.7.10"
|