From b3e6783d2a9d7299983cfe27abd5922449addf85 Mon Sep 17 00:00:00 2001 From: giraldogdiego Date: Mon, 29 Jul 2024 16:47:00 -0500 Subject: [PATCH] Update Android SDK to 1.16.5 [TENJIN-19824] --- android/build.gradle | 2 +- lib/commonjs/index.js | 11 ++++--- lib/commonjs/index.js.map | 2 +- lib/commonjs/updatePostbackConversionValue.js | 19 ++++++++++++ .../updatePostbackConversionValue.js.map | 1 + lib/module/index.js | 8 +++-- lib/module/index.js.map | 2 +- lib/module/updatePostbackConversionValue.js | 12 ++++++++ .../updatePostbackConversionValue.js.map | 1 + lib/typescript/index.d.ts.map | 2 +- .../updatePostbackConversionValue.d.ts | 3 ++ .../updatePostbackConversionValue.d.ts.map | 1 + package.json | 29 +------------------ 13 files changed, 55 insertions(+), 38 deletions(-) create mode 100644 lib/commonjs/updatePostbackConversionValue.js create mode 100644 lib/commonjs/updatePostbackConversionValue.js.map create mode 100644 lib/module/updatePostbackConversionValue.js create mode 100644 lib/module/updatePostbackConversionValue.js.map create mode 100644 lib/typescript/updatePostbackConversionValue.d.ts create mode 100644 lib/typescript/updatePostbackConversionValue.d.ts.map diff --git a/android/build.gradle b/android/build.gradle index 073d630..5747a07 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -66,7 +66,7 @@ dependencies { // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" - implementation 'com.tenjin:android-sdk:1.16.4' + implementation 'com.tenjin:android-sdk:1.16.5' } if (isNewArchitectureEnabled()) { diff --git a/lib/commonjs/index.js b/lib/commonjs/index.js index 72747ec..5b1e21e 100644 --- a/lib/commonjs/index.js +++ b/lib/commonjs/index.js @@ -5,15 +5,18 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; var _reactNative = require("react-native"); +var _updatePostbackConversionValue = require("./updatePostbackConversionValue"); const LINKING_ERROR = `The package 'react-native-tenjin' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; -const Tenjin = _reactNative.NativeModules.Tenjin ? _reactNative.NativeModules.Tenjin : new Proxy({}, { +const Tenjin = _reactNative.NativeModules.Tenjin ? { + ..._reactNative.NativeModules.Tenjin, + updatePostbackConversionValue: _updatePostbackConversionValue.updatePostbackConversionValue +} : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); -var _default = Tenjin; -exports.default = _default; -//# sourceMappingURL=index.js.map \ No newline at end of file +var _default = exports.default = Tenjin; +//# sourceMappingURL=index.js.map diff --git a/lib/commonjs/index.js.map b/lib/commonjs/index.js.map index 6746279..103166d 100644 --- a/lib/commonjs/index.js.map +++ b/lib/commonjs/index.js.map @@ -1 +1 @@ -{"version":3,"names":["_reactNative","require","LINKING_ERROR","Platform","select","ios","default","Tenjin","NativeModules","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,aAAa,GAChB,8EAA6E,GAC9EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,MAAM,GAAGC,0BAAa,CAACD,MAAM,GAC/BC,0BAAa,CAACD,MAAM,GACpB,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAAC,IAAAU,QAAA,GAESL,MAAM;AAAAM,OAAA,CAAAP,OAAA,GAAAM,QAAA"} \ No newline at end of file +{"version":3,"names":["_reactNative","require","_updatePostbackConversionValue","LINKING_ERROR","Platform","select","ios","default","Tenjin","NativeModules","updatePostbackConversionValue","Proxy","get","Error","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,8BAAA,GAAAD,OAAA;AAEA,MAAME,aAAa,GACnB,8EAA8E,GAC9EC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAE/B,MAAMC,MAAM,GAAGC,0BAAa,CAACD,MAAM,GACjC;EACA,GAAGC,0BAAa,CAACD,MAAM;EACvBE,6BAA6B,EAA7BA;AACF,CAAC,GACC,IAAIC,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACV,aAAa,CAAC;EAChC;AACF,CACA,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAEWC,MAAM","ignoreList":[]} diff --git a/lib/commonjs/updatePostbackConversionValue.js b/lib/commonjs/updatePostbackConversionValue.js new file mode 100644 index 0000000..20cf909 --- /dev/null +++ b/lib/commonjs/updatePostbackConversionValue.js @@ -0,0 +1,19 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.updatePostbackConversionValue = void 0; +var _reactNative = require("react-native"); +const nativeTenjin = _reactNative.NativeModules.Tenjin; +const updatePostbackConversionValue = (conversionValue, coarseValue, lockWindow) => { + if (lockWindow !== undefined) { + return nativeTenjin.updatePostbackConversionValueWithCoarseValueAndLockWindow(conversionValue, coarseValue, lockWindow); + } else if (coarseValue !== undefined) { + return nativeTenjin.updatePostbackConversionValueWithCoarseValue(conversionValue, coarseValue); + } else { + return nativeTenjin.updatePostbackConversionValue(conversionValue); + } +}; +exports.updatePostbackConversionValue = updatePostbackConversionValue; +//# sourceMappingURL=updatePostbackConversionValue.js.map diff --git a/lib/commonjs/updatePostbackConversionValue.js.map b/lib/commonjs/updatePostbackConversionValue.js.map new file mode 100644 index 0000000..4366511 --- /dev/null +++ b/lib/commonjs/updatePostbackConversionValue.js.map @@ -0,0 +1 @@ +{"version":3,"names":["_reactNative","require","nativeTenjin","NativeModules","Tenjin","updatePostbackConversionValue","conversionValue","coarseValue","lockWindow","undefined","updatePostbackConversionValueWithCoarseValueAndLockWindow","updatePostbackConversionValueWithCoarseValue","exports"],"sourceRoot":"../../src","sources":["updatePostbackConversionValue.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAMC,YAAY,GAAGC,0BAAa,CAACC,MAAM;AAIlC,MAAMC,6BAA6B,GAAGA,CAC3CC,eAAuB,EACvBC,WAAyC,EACzCC,UAAoB,KACX;EACT,IAAIA,UAAU,KAAKC,SAAS,EAAE;IAC5B,OAAOP,YAAY,CAACQ,yDAAyD,CAC3EJ,eAAe,EACfC,WAAW,EACXC,UACF,CAAC;EACH,CAAC,MAAM,IAAID,WAAW,KAAKE,SAAS,EAAE;IACpC,OAAOP,YAAY,CAACS,4CAA4C,CAC9DL,eAAe,EACfC,WACF,CAAC;EACH,CAAC,MAAM;IACL,OAAOL,YAAY,CAACG,6BAA6B,CAACC,eAAe,CAAC;EACpE;AACF,CAAC;AAACM,OAAA,CAAAP,6BAAA,GAAAA,6BAAA","ignoreList":[]} diff --git a/lib/module/index.js b/lib/module/index.js index 5b71630..0528939 100644 --- a/lib/module/index.js +++ b/lib/module/index.js @@ -1,12 +1,16 @@ import { NativeModules, Platform } from 'react-native'; +import { updatePostbackConversionValue } from './updatePostbackConversionValue'; const LINKING_ERROR = `The package 'react-native-tenjin' doesn't seem to be linked. Make sure: \n\n` + Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; -const Tenjin = NativeModules.Tenjin ? NativeModules.Tenjin : new Proxy({}, { +const Tenjin = NativeModules.Tenjin ? { + ...NativeModules.Tenjin, + updatePostbackConversionValue +} : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); export default Tenjin; -//# sourceMappingURL=index.js.map \ No newline at end of file +//# sourceMappingURL=index.js.map diff --git a/lib/module/index.js.map b/lib/module/index.js.map index 93ad9ec..426935d 100644 --- a/lib/module/index.js.map +++ b/lib/module/index.js.map @@ -1 +1 @@ -{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","Tenjin","Proxy","get","Error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AAEtD,MAAMC,aAAa,GAChB,8EAA6E,GAC9ED,QAAQ,CAACE,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,MAAM,GAAGN,aAAa,CAACM,MAAM,GAC/BN,aAAa,CAACM,MAAM,GACpB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,eAAeI,MAAM"} \ No newline at end of file +{"version":3,"names":["NativeModules","Platform","updatePostbackConversionValue","LINKING_ERROR","select","ios","default","Tenjin","Proxy","get","Error"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,MAAMC,aAAa,GACnB,8EAA8E,GAC9EF,QAAQ,CAACG,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAE/B,MAAMC,MAAM,GAAGP,aAAa,CAACO,MAAM,GACjC;EACA,GAAGP,aAAa,CAACO,MAAM;EACvBL;AACF,CAAC,GACC,IAAIM,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACA,CAAC;AAEH,eAAeI,MAAM","ignoreList":[]} diff --git a/lib/module/updatePostbackConversionValue.js b/lib/module/updatePostbackConversionValue.js new file mode 100644 index 0000000..814cec5 --- /dev/null +++ b/lib/module/updatePostbackConversionValue.js @@ -0,0 +1,12 @@ +import { NativeModules } from 'react-native'; +const nativeTenjin = NativeModules.Tenjin; +export const updatePostbackConversionValue = (conversionValue, coarseValue, lockWindow) => { + if (lockWindow !== undefined) { + return nativeTenjin.updatePostbackConversionValueWithCoarseValueAndLockWindow(conversionValue, coarseValue, lockWindow); + } else if (coarseValue !== undefined) { + return nativeTenjin.updatePostbackConversionValueWithCoarseValue(conversionValue, coarseValue); + } else { + return nativeTenjin.updatePostbackConversionValue(conversionValue); + } +}; +//# sourceMappingURL=updatePostbackConversionValue.js.map diff --git a/lib/module/updatePostbackConversionValue.js.map b/lib/module/updatePostbackConversionValue.js.map new file mode 100644 index 0000000..1f1a2bf --- /dev/null +++ b/lib/module/updatePostbackConversionValue.js.map @@ -0,0 +1 @@ +{"version":3,"names":["NativeModules","nativeTenjin","Tenjin","updatePostbackConversionValue","conversionValue","coarseValue","lockWindow","undefined","updatePostbackConversionValueWithCoarseValueAndLockWindow","updatePostbackConversionValueWithCoarseValue"],"sourceRoot":"../../src","sources":["updatePostbackConversionValue.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,cAAc;AAE5C,MAAMC,YAAY,GAAGD,aAAa,CAACE,MAAM;AAIzC,OAAO,MAAMC,6BAA6B,GAAGA,CAC3CC,eAAuB,EACvBC,WAAyC,EACzCC,UAAoB,KACX;EACT,IAAIA,UAAU,KAAKC,SAAS,EAAE;IAC5B,OAAON,YAAY,CAACO,yDAAyD,CAC3EJ,eAAe,EACfC,WAAW,EACXC,UACF,CAAC;EACH,CAAC,MAAM,IAAID,WAAW,KAAKE,SAAS,EAAE;IACpC,OAAON,YAAY,CAACQ,4CAA4C,CAC9DL,eAAe,EACfC,WACF,CAAC;EACH,CAAC,MAAM;IACL,OAAOJ,YAAY,CAACE,6BAA6B,CAACC,eAAe,CAAC;EACpE;AACF,CAAC","ignoreList":[]} diff --git a/lib/typescript/index.d.ts.map b/lib/typescript/index.d.ts.map index 8ef91a9..449f67d 100644 --- a/lib/typescript/index.d.ts.map +++ b/lib/typescript/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM,KASP,CAAC;AAEN,eAAe,MAAM,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,MAAM,KAYT,CAAC;AAEJ,eAAe,MAAM,CAAC"} diff --git a/lib/typescript/updatePostbackConversionValue.d.ts b/lib/typescript/updatePostbackConversionValue.d.ts new file mode 100644 index 0000000..ca5ffc5 --- /dev/null +++ b/lib/typescript/updatePostbackConversionValue.d.ts @@ -0,0 +1,3 @@ +export type TenjinCoarseConversionValue = 'low' | 'medium' | 'high'; +export declare const updatePostbackConversionValue: (conversionValue: number, coarseValue?: TenjinCoarseConversionValue, lockWindow?: boolean) => void; +//# sourceMappingURL=updatePostbackConversionValue.d.ts.map diff --git a/lib/typescript/updatePostbackConversionValue.d.ts.map b/lib/typescript/updatePostbackConversionValue.d.ts.map new file mode 100644 index 0000000..a96ad12 --- /dev/null +++ b/lib/typescript/updatePostbackConversionValue.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"updatePostbackConversionValue.d.ts","sourceRoot":"","sources":["../../src/updatePostbackConversionValue.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,2BAA2B,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpE,eAAO,MAAM,6BAA6B,oBACvB,MAAM,gBACT,2BAA2B,eAC5B,OAAO,KACnB,IAeF,CAAC"} diff --git a/package.json b/package.json index 56c35bf..62658fe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-tenjin", "title": "React Native Tenjin", - "version": "1.1.0", + "version": "1.1.1", "description": "Tenjin is a unique growth infrastructure platform that helps you streamline your mobile marketing.", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -32,7 +32,6 @@ "typecheck": "tsc --noEmit", "lint": "eslint \"**/*.{js,ts,tsx}\"", "prepack": "bob build", - "release": "release-it", "example": "yarn --cwd example", "bootstrap": "yarn example && yarn install && yarn example pods", "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build" @@ -55,14 +54,11 @@ "homepage": "https://tenjin.com", "readmeFilename": "README.md", "devDependencies": { - "@commitlint/config-conventional": "^17.0.2", "@evilmartians/lefthook": "^1.2.2", "@react-native-community/eslint-config": "^3.0.2", - "@release-it/conventional-changelog": "^5.0.0", "@types/jest": "^28.1.2", "@types/react": "~17.0.21", "@types/react-native": "0.70.0", - "commitlint": "^17.0.2", "del-cli": "^5.0.0", "eslint": "^8.4.1", "eslint-config-prettier": "^8.5.0", @@ -73,7 +69,6 @@ "react": "18.2.0", "react-native": "0.71.7", "react-native-builder-bob": "^0.20.4", - "release-it": "^15.0.0", "typescript": "^4.5.2" }, "resolutions": { @@ -94,28 +89,6 @@ "/lib/" ] }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, - "release-it": { - "git": { - "commitMessage": "chore: release ${version}", - "tagName": "v${version}" - }, - "npm": { - "publish": true - }, - "github": { - "release": true - }, - "plugins": { - "@release-it/conventional-changelog": { - "preset": "angular" - } - } - }, "eslintConfig": { "root": true, "extends": [