Skip to content

Commit

Permalink
Version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI authored and Travis CI committed Sep 17, 2024
1 parent 9103b27 commit d89e226
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for Open Measurement SDK JavaScript clients

## 1.5.1 - 2024-09-16
- Avoid using inline script in full access mode.
- Add README for CTV reference app and new tests for web data parser.

## 1.5.0 - 2024-06-07
OM SDK 1.5.0 is a significant update. It adds support for Samsung and LG TVs.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-measurement-jsclients",
"version": "1.5.0",
"version": "1.5.1",
"description": "JavaScript common and client components of OM SDK",
"watch": {
"test-unit": {
Expand Down
38 changes: 38 additions & 0 deletions reference-app-web-ctv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Open Measurement Reference App for Web CTV

## Overview
A sample CTV web application to showcase an OM SDK for Web CTV integration.

# Usage

## Prerequisites
* Node v18.16.0
* NPM v9.5.1

[nvm] is recommended for installing and managing Node and NPM.
* `nvm use lts/hydrogen`

## Getting Started
1. Install dependencies with `npm install`
1. Run `npm run build`.
1. Copy the dependencies into `bin/`:
- Change to `cd public/reference-app-web-ctv`
- Run `./copy_binaries.sh`=
1. Open project in WebOS Studio or Tizen Studio (follow instructions provided by
LG and Samsung, respectively).
1. Build and run on CTV device (note: Tizen and WebOS simulators offer limited
measurement functionality and are not suitable for running OM SDK).

# Clarifications
This demo app does not implement parsing of VAST or any other ad response
formats. Asset URLs, verification script URLs and parameters are specified as
constants instead. Please refer to [IAB Tech Lab] for details regarding how
verification resources are represented in various ad formats.

# Additional Information
* [Open Measurement SDK on IAB Tech Lab]


[nvm]: https://github.com/nvm-sh/nvm
[IAB Tech Lab]: https://iabtechlab.com/standards/open-measurement-sdk/
[Open Measurement SDK on IAB Tech Lab]: https://iabtechlab.com/standards/open-measurement-sdk/
6 changes: 3 additions & 3 deletions reference-app-web-ctv/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "open-measurement-referenceapp-lgwebos",
"name": "open-measurement-referenceapp-web-ctv",
"version": "0.0.0",
"description": "Reference app for the OMSDK for Web for CTV on LG webOS.",
"description": "Reference app for the OMSDK for Web for CTV.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -15,7 +15,7 @@
"keywords": [],
"author": "GitHub contributors",
"license": "Apache-2.0",
"homepage": "https://github.com/InteractiveAdvertisingBureau/Open-Measurement-ReferenceApp-Web#readme",
"homepage": "https://github.com/InteractiveAdvertisingBureau/Open-Measurement-SDKJS/blob/master/public/reference-app-web-ctv/README.md",
"private": false,
"devDependencies": {
}
Expand Down
20 changes: 15 additions & 5 deletions test/unit/common/webtv-utils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,32 @@ const DEFAULT_DEVICE_INFO = '{\n "modelName": "65QNED85UQA",\n ' +
*/
let mockWindow;

describe('webOS', function() {
describe('WebTV Utilites', () => {
beforeEach(() => {
mockWindow = jasmine.createSpyObj(Object, ['setTimeout']);
});

describe('checks for if the device is webOS', function() {
it('returns true when on webOS', function() {
describe('check if the device is webOS', () => {
it('returns true when on webOS', () => {
mockWindow['webOSSystem'] = {
deviceInfo: DEFAULT_DEVICE_INFO,
};
expect(PublicWebTv.isWebOS(mockWindow)).toEqual(true);
});
it('returns false when not on webOS', function() {
it('returns false when not on webOS', () => {
delete mockWindow['webOSSystem'];
expect(PublicWebTv.isWebOS(mockWindow)).toEqual(false);
});
});
});

describe('check if the device is Tizen', () => {
it('returns true when on Tizen', () => {
mockWindow.tizen = {};
expect(PublicWebTv.isTizen(mockWindow)).toEqual(true);
});
it('returns false when not on Tizen', () => {
delete mockWindow['tizen'];
expect(PublicWebTv.isTizen(mockWindow)).toEqual(false);
});
});
});
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1

0 comments on commit d89e226

Please sign in to comment.