Skip to content

Commit 54b75a8

Browse files
committed
APL-CORE: July 2021 Release of APL 1.6 compilant core engine (1.6.2)
For more details on this release refer to CHANGELOG.md To learn about APL see: https://developer.amazon.com/docs/alexa-presentation-language/understand-apl.html
1 parent b1dd5ca commit 54b75a8

19 files changed

+3322
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.6.2]
4+
5+
### Changed
6+
7+
- Bug fixes
8+
39
## [1.6.1]
410

511
### Changed

aplcore/src/primitives/object.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ Object::serialize(rapidjson::Document::AllocatorType& allocator) const
14251425
case kFunctionType:
14261426
return rapidjson::Value("UNABLE TO SERIALIZE FUNCTION", allocator);
14271427
case kAbsoluteDimensionType:
1428-
return rapidjson::Value(mU.value);
1428+
return rapidjson::Value(std::isfinite(mU.value) ? mU.value : 0);
14291429
case kRelativeDimensionType:
14301430
return rapidjson::Value((doubleToString(mU.value)+"%").c_str(), allocator);
14311431
case kAutoDimensionType:

performance/CMakeLists.txt

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License").
4+
# You may not use this file except in compliance with the License.
5+
# A copy of the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is distributed
10+
# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11+
# express or implied. See the License for the specific language governing
12+
# permissions and limitations under the License.
13+
14+
include_directories(../aplcore/include)
15+
include_directories(${RAPIDJSON_INCLUDE})
16+
include_directories(${PEGTL_INCLUDE})
17+
include_directories(${YOGA_INCLUDE})
18+
19+
if(COVERAGE)
20+
set(CMAKE_CXX_FLAGS "--coverage")
21+
endif(COVERAGE)
22+
23+
# Google testing
24+
add_executable( perftest
25+
perftest_base.cpp
26+
perftest_load.cpp
27+
perftest_operation.cpp
28+
perftest_visual_context.cpp
29+
)
30+
31+
configure_file(basic.json basic.json COPYONLY)
32+
configure_file(basic_data.json basic_data.json COPYONLY)
33+
34+
configure_file(complex-list.json complex-list.json COPYONLY)
35+
configure_file(complex-list_data.json complex-list_data.json COPYONLY)
36+
37+
configure_file(hello-world.json hello-world.json COPYONLY)
38+
configure_file(hello-world_data.json hello-world_data.json COPYONLY)
39+
40+
configure_file(simple-import.json simple-import.json COPYONLY)
41+
configure_file(alexa-styles.json alexa-styles.json COPYONLY)
42+
configure_file(alexa-viewport-profiles.json alexa-viewport-profiles.json COPYONLY)
43+
configure_file(alexa-layouts.json alexa-layouts.json COPYONLY)
44+
45+
target_link_libraries(perftest apl gtest_main)
46+
target_link_libraries(perftest libyoga)

0 commit comments

Comments
 (0)