Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #149 from DolbyIO/release/3.8.1-beta.3
Browse files Browse the repository at this point in the history
Relese 3.8.1-beta.3
  • Loading branch information
kbetl-dlb authored May 17, 2023
2 parents 66bf207 + 5f63be1 commit 731e9e5
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 32 deletions.
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ MOCKITO_CORE_VERSION=2.26.0
POWERMOCK_VERSION=2.0.2
ROBOLECTRIC_VERSION=4.4
JUNIT_VERSION=4.13.2
COMMS_SDK_VERSION="3.8.1-beta.2"
COMMS_SDK_VERSION="3.8.1-beta.3"
COMPONENT_NAME="react-native-sdk"
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-comms-sdk-example",
"description": "Example app for react-native-dolbyio-sdk",
"version": "3.8.1-beta.2+1",
"version": "3.8.1-beta.3+1",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion ios/Services/CommsAPIModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ private enum EventKeys: String, CaseIterable {
}

private let componentName = "react-native-sdk"
private let sdkVersion = "3.8.1-beta.2"
private let sdkVersion = "3.8.1-beta.3"

@objc(RNCommsAPIModule)
public class CommsAPIModule: ReactEmitter {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dolbyio/comms-sdk-react-native",
"version": "3.8.1-beta.2",
"version": "3.8.1-beta.3",
"description": "Dolby.io iAPI SDK for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand All @@ -25,7 +25,7 @@
"lint:fix": "eslint --fix \"src/**/*.{js,ts,tsx}\"",
"prettier:check": "prettier --check \"src/**/*.{js,ts,tsx}\"\n",
"prettier:fix": "prettier --write \"src/**/*.{js,ts,tsx}\"\n",
"prepare": "bob build",
"prepare": "bob build && cd scripts && node expose_models.js",
"release": "release-it",
"example": "yarn --cwd example",
"pods": "cd example/ios && pod install",
Expand Down
27 changes: 0 additions & 27 deletions scripts/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,6 @@
const path = require('path');
const fs = require("fs");
const child_process = require('child_process');

function createModelsModule() {
const packageJsonPath = path.join(__dirname, '..', 'package.json');
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));

var modelDirectory = path.join(root, "models");

const modelPackageJson = {
name: "models",
version: packageJson.version,
main: "../lib/commonjs/models",
module: "../lib/module/models",
types: "../lib/typescript/models.d.ts",
"react-native": "../src/models",
source: "../src/models"
};

if (!fs.existsSync(modelDirectory)) {
fs.mkdirSync(modelDirectory);
}

const modelPackageJsonPath = path.join(modelDirectory, 'package.json');
fs.writeFileSync(modelPackageJsonPath, JSON.stringify(modelPackageJson, null, 2));

console.log(`Generated models package.json at ${modelPackageJsonPath}`);
}
const root = path.resolve(__dirname, '..');
const args = process.argv.slice(2);
const options = {
Expand All @@ -43,7 +17,6 @@ if (process.cwd() !== root || args.length) {
// In this case, forward the command to `yarn`
result = child_process.spawnSync('yarn', args, options);
} else {
createModelsModule();
// If `yarn` is run without arguments, perform bootstrap
result = child_process.spawnSync('yarn', ['bootstrap'], options);
}
Expand Down
33 changes: 33 additions & 0 deletions scripts/expose_models.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const path = require('path');
const fs = require("fs");

function createModelsModule() {
const packageJsonPath = path.join(__dirname, '..', 'package.json');
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));

var modelDirectory = path.join(root, "models");

const modelPackageJson = {
name: "models",
version: packageJson.version,
main: "../lib/commonjs/models",
module: "../lib/module/models",
types: "../lib/typescript/models.d.ts",
"react-native": "../src/models",
source: "../src/models"
};

if (!fs.existsSync(modelDirectory)) {
fs.mkdirSync(modelDirectory);
}

const modelPackageJsonPath = path.join(modelDirectory, 'package.json');
fs.writeFileSync(modelPackageJsonPath, JSON.stringify(modelPackageJson, null, 2));

console.log(`Generated models package.json at ${modelPackageJsonPath}`);
}

const root = path.resolve(__dirname, '..');
createModelsModule();

process.exitCode = 0;

0 comments on commit 731e9e5

Please sign in to comment.