Skip to content

Commit f418e0d

Browse files
authored
merge: release/8.2.0 (#1705)
2 parents 332bf68 + 0591a53 commit f418e0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2833
-526
lines changed

RUNTIME.iml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
99
<excludeFolder url="file://$MODULE_DIR$/build" />
1010
</content>
11-
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
11+
<orderEntry type="jdk" jdkName="11" jdkType="JavaSDK" />
1212
<orderEntry type="sourceFolder" forTests="false" />
1313
</component>
1414
</module>

build-artifacts/project-template-gradle/app/src/main/AndroidManifest.xml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<activity
2222
android:name="com.tns.NativeScriptActivity"
2323
android:label="@string/title_activity_kimera"
24+
android:exported="true"
2425
android:configChanges="keyboardHidden|orientation|screenSize">
2526

2627
<intent-filter>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="ns_accent">#3d5afe</color>
3+
<color name="ns_accent">#65adf1</color>
44
</resources>

build-artifacts/project-template-gradle/app/src/main/res/values/colors.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<resources>
33
<color name="ns_primary">#F5F5F5</color>
44
<color name="ns_primaryDark">#757575</color>
5-
<color name="ns_accent">#33B5E5</color>
5+
<color name="ns_accent">#65adf1</color>
66
</resources>

build-artifacts/project-template-gradle/gradle.properties

-20
This file was deleted.

build.gradle

+17
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ import groovy.json.JsonOutput
1616

1717
def onlyX86 = project.hasProperty("onlyX86")
1818
def useCCache = !project.hasProperty("noCCache")
19+
def hasNdkVersion = project.hasProperty("ndkVersion")
20+
21+
if (hasNdkVersion) {
22+
println "Using NDK version " + ndkVersion
23+
}
1924

2025
def isWinOs = System.properties['os.name'].toLowerCase().contains('windows')
2126
def pVersion = "no package version was provided by build.gradle build"
@@ -36,6 +41,11 @@ task checkEnvironmentVariables {
3641
throw new GradleException("Set ANDROID_HOME to point to the correct Android SDK location\n")
3742
}
3843

44+
if ("$System.env.ANDROID_NDK_HOME" == "" || "$System.env.ANDROID_NDK_HOME" == "null" && !project.hasProperty("ndkVersion")) {
45+
logger.warn("Warning: The ANDROID_NDK_HOME is not set nor the ndkVersion project property. The build might fail if a ndk cannot be found.\n")
46+
}
47+
48+
3949
if ("$System.env.GIT_COMMIT" == "null" && !project.hasProperty("gitCommitVersion")) {
4050
logger.warn("Warning: The GIT_COMMIT is not set. This NativeScript Android Runtime will not be tagged with the git commit it is build from\n")
4151
}
@@ -185,6 +195,9 @@ def getAssembleReleaseBuildArguments = { ->
185195
if (useCCache) {
186196
arguments.add("-PuseCCache")
187197
}
198+
if (hasNdkVersion) {
199+
arguments.add("-PndkVersion="+ndkVersion)
200+
}
188201
arguments += ["--warning-mode", "all"]
189202
return arguments
190203
}
@@ -286,6 +299,10 @@ task copyFilesToProjectTemeplate {
286299
from "$TEST_APP_PATH/build.gradle"
287300
into "$DIST_FRAMEWORK_PATH"
288301
}
302+
copy {
303+
from "$TEST_APP_PATH/gradle.properties"
304+
into "$DIST_FRAMEWORK_PATH"
305+
}
289306
copy {
290307
from "$TEST_APP_PATH/gradle-helpers/paths.gradle"
291308
into "$DIST_FRAMEWORK_PATH/gradle-helpers"

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip

package.json

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"name": "@nativescript/android",
33
"description": "NativeScript Runtime for Android",
4-
"version": "7.0.1",
4+
"version": "8.2.0-dev.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/NativeScript/android-runtime.git"
88
},
99
"files": [
1010
"**/*"
1111
],
12-
"gradle": {
13-
"version": "6.4",
14-
"android": "3.6.4"
12+
"version_info":{
13+
"v8": "8.3.110.9",
14+
"gradle": "7.4",
15+
"gradleAndroid": "7.1.2",
16+
"ndk": "r21",
17+
"ndkApiLevel": "122",
18+
"minSdk": "17",
19+
"compileSdk": "31",
20+
"buildTools":"31.0.0",
21+
"kotlin":"1.6.0"
1522
},
16-
"android_ndk_version": "21b",
17-
"publishConfig": {"tag":"next", "access": "public"}
23+
"publishConfig": {"tag":"alpha", "access": "public"}
1824
}

test-app/additional_gradle.properties

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To debug Gradle scripts, you must enable this behaviour with a flag (seen some rows below)
2+
# Start debugging by initiating a remote Java debug through your IDE on port 5005
3+
# Beware that Gradle spawns daemons to execute secondary builds. This could be a problem when debugging.
4+
# You could stop them with "gradle --stop" and run a given task from the console with "gradle some_task_name --no-daemon"
5+
# or with "org.gradle.daemon=false" set inside your "~/.gradle/gradle.properties" file.
6+
# Uncomment the following line in order to enable Gradle debugging.
7+
# org.gradle.debug=true
8+
9+
useKotlin=true
10+
gatherAnalyticsData=true
11+
12+
# When configured, Gradle will run in incubating parallel mode.
13+
# This option should only be used with decoupled projects. More details, visit
14+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
15+
# org.gradle.parallel=true

0 commit comments

Comments
 (0)