teads-react-native 6.0.2 → 6.0.6-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/android/build.gradle +2 -5
  2. package/android/src/main/java/tv/teads/reactnative/TeadsFeedPackage.java +3 -1
  3. package/lib/commonjs/version.js +1 -1
  4. package/lib/module/version.js +1 -1
  5. package/lib/typescript/commonjs/src/version.d.ts +1 -1
  6. package/lib/typescript/module/src/version.d.ts +1 -1
  7. package/package.json +2 -2
  8. package/react-native.config.js +17 -0
  9. package/src/version.ts +1 -1
  10. package/android/bin/build/generated/source/buildConfig/debug/com/outbrainreactnative/BuildConfig.class +0 -0
  11. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -7
  12. package/android/bin/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
  13. package/android/bin/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -6
  14. package/android/bin/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
  15. package/android/bin/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  16. package/android/bin/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  17. package/android/bin/build/intermediates/compile_symbol_list/debug/R.txt +0 -0
  18. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  19. package/android/bin/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  20. package/android/bin/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  21. package/android/bin/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  22. package/android/bin/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  23. package/android/bin/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
  24. package/android/bin/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -7
  25. package/android/bin/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -7
  26. package/android/bin/build/intermediates/navigation_json/debug/navigation.json +0 -1
  27. package/android/bin/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  28. package/android/bin/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1
  29. package/android/bin/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
  30. package/android/bin/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  31. package/android/bin/build.gradle +0 -101
  32. package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
  33. package/android/bin/gradle/wrapper/gradle-wrapper.properties +0 -7
  34. package/android/bin/gradle.properties +0 -5
  35. package/android/bin/gradlew +0 -249
  36. package/android/bin/gradlew.bat +0 -92
  37. package/android/bin/src/main/AndroidManifest.xml +0 -3
  38. package/android/bin/src/main/AndroidManifestNew.xml +0 -2
  39. package/android/bin/src/main/java/com/outbrainreactnative/OutbrainNativePackage.class +0 -0
  40. package/android/bin/src/main/java/com/outbrainreactnative/SFWebViewWidgetManager.class +0 -0
  41. package/android/bin/src/main/java/com/outbrainreactnative/SFWebViewWidgetWrapper.class +0 -0
  42. package/android/bin/src/main/java/com/outbrainreactnative/Utils.class +0 -0
  43. package/android/generated/jni/CMakeLists.txt +0 -36
  44. package/android/generated/jni/RNTeadsReactNativeViewSpec-generated.cpp +0 -22
  45. package/android/generated/jni/RNTeadsReactNativeViewSpec.h +0 -24
  46. package/android/generated/jni/react/renderer/components/RNTeadsReactNativeViewSpec/RNTeadsReactNativeViewSpecJSI-generated.cpp +0 -17
  47. package/android/generated/jni/react/renderer/components/RNTeadsReactNativeViewSpec/RNTeadsReactNativeViewSpecJSI.h +0 -19
  48. package/ios/generated/RNTeadsReactNativeViewSpec/RNTeadsReactNativeViewSpec-generated.mm +0 -16
  49. package/ios/generated/RNTeadsReactNativeViewSpec/RNTeadsReactNativeViewSpec.h +0 -38
  50. package/ios/generated/RNTeadsReactNativeViewSpecJSI-generated.cpp +0 -17
  51. package/ios/generated/RNTeadsReactNativeViewSpecJSI.h +0 -19
@@ -67,7 +67,7 @@ android {
67
67
  lintOptions {
68
68
  disable "GradleCompatible"
69
69
  }
70
-
70
+
71
71
  // Add flavor dimensions to resolve obsdk variant ambiguity
72
72
  flavorDimensions "version"
73
73
  productFlavors {
@@ -107,9 +107,6 @@ dependencies {
107
107
  implementation("tv.teads.sdk.android:sdk:6.0.2@aar") {
108
108
  transitive = true
109
109
  }
110
-
111
-
112
-
113
110
  implementation 'com.google.code.gson:gson:2.10.1'
114
111
  }
115
112
 
@@ -126,4 +123,4 @@ react {
126
123
  libraryName = "RNTeadsReactNativeViewSpec"
127
124
  codegenJavaPackageName = "tv.teads.reactnative"
128
125
 
129
- }
126
+ }
@@ -28,6 +28,9 @@ public class TeadsFeedPackage extends BaseReactPackage {
28
28
  if (TeadsAdPlacementFeedManager.REACT_CLASS.equals(s)) {
29
29
  return new TeadsAdPlacementFeedManager();
30
30
  }
31
+ if (TeadsMediaPlacementManager.REACT_CLASS.equals(s)) {
32
+ return new TeadsMediaPlacementManager();
33
+ }
31
34
  return null;
32
35
  }
33
36
 
@@ -50,4 +53,3 @@ public class TeadsFeedPackage extends BaseReactPackage {
50
53
  };
51
54
  }
52
55
  }
53
-
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageVersion = void 0;
7
- const packageVersion = exports.packageVersion = '6.0.2';
7
+ const packageVersion = exports.packageVersion = '6.0.6';
8
8
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
 
3
- export const packageVersion = '6.0.2';
3
+ export const packageVersion = '6.0.6';
4
4
  //# sourceMappingURL=version.js.map
@@ -1,2 +1,2 @@
1
- export declare const packageVersion = "6.0.2";
1
+ export declare const packageVersion = "6.0.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const packageVersion = "6.0.2";
1
+ export declare const packageVersion = "6.0.6";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teads-react-native",
3
- "version": "6.0.2",
3
+ "version": "6.0.6-alpha.0",
4
4
  "description": "Easily embed Teads Widgets in your React Native app!",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -195,7 +195,7 @@
195
195
  },
196
196
  "codegenConfig": {
197
197
  "name": "RNTeadsReactNativeViewSpec",
198
- "type": "all",
198
+ "type": "components",
199
199
  "jsSrcsDir": "src",
200
200
  "outputDir": {
201
201
  "ios": "ios/generated",
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ sourceDir: 'android',
6
+ libraryName: 'RNTeadsReactNativeViewSpec',
7
+ componentDescriptors: [
8
+ 'TeadsAdPlacementFeedComponentDescriptor',
9
+ 'TeadsAdPlacementMediaComponentDescriptor',
10
+ ],
11
+ cmakeListsPath: 'generated/jni/CMakeLists.txt',
12
+ packageImportPath: 'import tv.teads.reactnative.TeadsFeedPackage;',
13
+ packageInstance: 'new TeadsFeedPackage()',
14
+ },
15
+ },
16
+ },
17
+ };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const packageVersion = '6.0.2';
1
+ export const packageVersion = '6.0.6';
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.outbrainreactnative" >
4
-
5
- <uses-sdk android:minSdkVersion="23" />
6
-
7
- </manifest>
@@ -1,18 +0,0 @@
1
- {
2
- "version": 3,
3
- "artifactType": {
4
- "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
- "kind": "Directory"
6
- },
7
- "applicationId": "com.outbrainreactnative",
8
- "variantName": "debug",
9
- "elements": [
10
- {
11
- "type": "SINGLE",
12
- "filters": [],
13
- "attributes": [],
14
- "outputFile": "AndroidManifest.xml"
15
- }
16
- ],
17
- "elementType": "File"
18
- }
@@ -1,6 +0,0 @@
1
- aarFormatVersion=1.0
2
- aarMetadataVersion=1.0
3
- minCompileSdk=1
4
- minCompileSdkExtension=0
5
- minAndroidGradlePluginVersion=1.0.0
6
- coreLibraryDesugaringEnabled=false
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/debug/jniLibs"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/debug/shaders"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/main/assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/src/debug/assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/odedre/work/outbrain/outbrain-react-native/android/build/intermediates/shader_assets/debug/out"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- R_DEF: Internal format may change without notice
2
- local
@@ -1,7 +0,0 @@
1
- 1<?xml version="1.0" encoding="utf-8"?>
2
- 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- 3 package="com.outbrainreactnative" >
4
- 4
5
- 5 <uses-sdk android:minSdkVersion="23" />
6
- 6
7
- 7</manifest>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.outbrainreactnative" >
4
-
5
- <uses-sdk android:minSdkVersion="23" />
6
-
7
- </manifest>
@@ -1,16 +0,0 @@
1
- -- Merging decision tree log ---
2
- manifest
3
- ADDED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml:1:1-2:12
4
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml:1:1-2:12
5
- package
6
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml
7
- xmlns:android
8
- ADDED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml:1:11-69
9
- uses-sdk
10
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml reason: use-sdk injection requested
11
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml
12
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml
13
- android:targetSdkVersion
14
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml
15
- android:minSdkVersion
16
- INJECTED from /Users/odedre/work/outbrain/miscellaneous/react-native-viewability-not-working-october-2024/outbrain-not-working-reproduce/node_modules/outbrain-react-native/android/src/main/AndroidManifestNew.xml
@@ -1,101 +0,0 @@
1
- buildscript {
2
- // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["OutbrainReactNative_kotlinVersion"]
4
-
5
- repositories {
6
- google()
7
- mavenCentral()
8
- }
9
-
10
- dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
12
- // noinspection DifferentKotlinGradleVersion
13
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
- }
15
- }
16
-
17
- def reactNativeArchitectures() {
18
- def value = rootProject.getProperties().get("reactNativeArchitectures")
19
- return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
20
- }
21
-
22
- def isNewArchitectureEnabled() {
23
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
24
- }
25
-
26
- apply plugin: "com.android.library"
27
- apply plugin: "kotlin-android"
28
-
29
- if (isNewArchitectureEnabled()) {
30
- apply plugin: "com.facebook.react"
31
- }
32
-
33
- def getExtOrDefault(name) {
34
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["OutbrainReactNative_" + name]
35
- }
36
-
37
- def getExtOrIntegerDefault(name) {
38
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["OutbrainReactNative_" + name]).toInteger()
39
- }
40
-
41
- def supportsNamespace() {
42
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
43
- def major = parsed[0].toInteger()
44
- def minor = parsed[1].toInteger()
45
-
46
- // Namespace support was added in 7.3.0
47
- return (major == 7 && minor >= 3) || major >= 8
48
- }
49
-
50
- android {
51
- if (supportsNamespace()) {
52
- namespace "com.outbrainreactnative"
53
-
54
- sourceSets {
55
- main {
56
- manifest.srcFile "src/main/AndroidManifestNew.xml"
57
- }
58
- }
59
- }
60
-
61
- compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
62
-
63
- defaultConfig {
64
- minSdkVersion getExtOrIntegerDefault("minSdkVersion")
65
- targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
66
-
67
- }
68
-
69
- buildTypes {
70
- release {
71
- minifyEnabled false
72
- }
73
- }
74
-
75
- lintOptions {
76
- disable "GradleCompatible"
77
- }
78
-
79
- compileOptions {
80
- sourceCompatibility JavaVersion.VERSION_16
81
- targetCompatibility JavaVersion.VERSION_16
82
- }
83
- }
84
-
85
- repositories {
86
- mavenCentral()
87
- google()
88
- }
89
-
90
- def kotlin_version = getExtOrDefault("kotlinVersion")
91
-
92
- dependencies {
93
- // For < 0.71, this will be from the local maven repo
94
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
95
- //noinspection GradleDynamicVersion
96
- implementation 'com.outbrain.mobile:obsdk:5.0.7.beta'
97
- implementation "com.google.code.gson:gson:2.11.0"
98
- implementation "com.facebook.react:react-native:+"
99
- implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
100
- }
101
-
@@ -1,7 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4
- networkTimeout=10000
5
- validateDistributionUrl=true
6
- zipStoreBase=GRADLE_USER_HOME
7
- zipStorePath=wrapper/dists
@@ -1,5 +0,0 @@
1
- OutbrainReactNative_kotlinVersion=1.7.0
2
- OutbrainReactNative_minSdkVersion=21
3
- OutbrainReactNative_targetSdkVersion=31
4
- OutbrainReactNative_compileSdkVersion=31
5
- OutbrainReactNative_ndkversion=21.4.7075529
@@ -1,249 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- # This is normally unused
84
- # shellcheck disable=SC2034
85
- APP_BASE_NAME=${0##*/}
86
- # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87
- APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
88
-
89
- # Use the maximum available, or set MAX_FD != -1 to use that value.
90
- MAX_FD=maximum
91
-
92
- warn () {
93
- echo "$*"
94
- } >&2
95
-
96
- die () {
97
- echo
98
- echo "$*"
99
- echo
100
- exit 1
101
- } >&2
102
-
103
- # OS specific support (must be 'true' or 'false').
104
- cygwin=false
105
- msys=false
106
- darwin=false
107
- nonstop=false
108
- case "$( uname )" in #(
109
- CYGWIN* ) cygwin=true ;; #(
110
- Darwin* ) darwin=true ;; #(
111
- MSYS* | MINGW* ) msys=true ;; #(
112
- NONSTOP* ) nonstop=true ;;
113
- esac
114
-
115
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
116
-
117
-
118
- # Determine the Java command to use to start the JVM.
119
- if [ -n "$JAVA_HOME" ] ; then
120
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
121
- # IBM's JDK on AIX uses strange locations for the executables
122
- JAVACMD=$JAVA_HOME/jre/sh/java
123
- else
124
- JAVACMD=$JAVA_HOME/bin/java
125
- fi
126
- if [ ! -x "$JAVACMD" ] ; then
127
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
128
-
129
- Please set the JAVA_HOME variable in your environment to match the
130
- location of your Java installation."
131
- fi
132
- else
133
- JAVACMD=java
134
- if ! command -v java >/dev/null 2>&1
135
- then
136
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137
-
138
- Please set the JAVA_HOME variable in your environment to match the
139
- location of your Java installation."
140
- fi
141
- fi
142
-
143
- # Increase the maximum file descriptors if we can.
144
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
- case $MAX_FD in #(
146
- max*)
147
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
- # shellcheck disable=SC2039,SC3045
149
- MAX_FD=$( ulimit -H -n ) ||
150
- warn "Could not query maximum file descriptor limit"
151
- esac
152
- case $MAX_FD in #(
153
- '' | soft) :;; #(
154
- *)
155
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
- # shellcheck disable=SC2039,SC3045
157
- ulimit -n "$MAX_FD" ||
158
- warn "Could not set maximum file descriptor limit to $MAX_FD"
159
- esac
160
- fi
161
-
162
- # Collect all arguments for the java command, stacking in reverse order:
163
- # * args from the command line
164
- # * the main class name
165
- # * -classpath
166
- # * -D...appname settings
167
- # * --module-path (only if needed)
168
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
169
-
170
- # For Cygwin or MSYS, switch paths to Windows format before running java
171
- if "$cygwin" || "$msys" ; then
172
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
173
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
174
-
175
- JAVACMD=$( cygpath --unix "$JAVACMD" )
176
-
177
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
178
- for arg do
179
- if
180
- case $arg in #(
181
- -*) false ;; # don't mess with options #(
182
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
183
- [ -e "$t" ] ;; #(
184
- *) false ;;
185
- esac
186
- then
187
- arg=$( cygpath --path --ignore --mixed "$arg" )
188
- fi
189
- # Roll the args list around exactly as many times as the number of
190
- # args, so each arg winds up back in the position where it started, but
191
- # possibly modified.
192
- #
193
- # NB: a `for` loop captures its iteration list before it begins, so
194
- # changing the positional parameters here affects neither the number of
195
- # iterations, nor the values presented in `arg`.
196
- shift # remove old arg
197
- set -- "$@" "$arg" # push replacement arg
198
- done
199
- fi
200
-
201
-
202
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
-
205
- # Collect all arguments for the java command:
206
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
- # and any embedded shellness will be escaped.
208
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
- # treated as '${Hostname}' itself on the command line.
210
-
211
- set -- \
212
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
213
- -classpath "$CLASSPATH" \
214
- org.gradle.wrapper.GradleWrapperMain \
215
- "$@"
216
-
217
- # Stop when "xargs" is not available.
218
- if ! command -v xargs >/dev/null 2>&1
219
- then
220
- die "xargs is not available"
221
- fi
222
-
223
- # Use "xargs" to parse quoted args.
224
- #
225
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
226
- #
227
- # In Bash we could simply go:
228
- #
229
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
230
- # set -- "${ARGS[@]}" "$@"
231
- #
232
- # but POSIX shell has neither arrays nor command substitution, so instead we
233
- # post-process each arg (as a line of input to sed) to backslash-escape any
234
- # character that might be a shell metacharacter, then use eval to reverse
235
- # that process (while maintaining the separation between arguments), and wrap
236
- # the whole thing up as a single "set" statement.
237
- #
238
- # This will of course break if any of these variables contains a newline or
239
- # an unmatched quote.
240
- #
241
-
242
- eval "set -- $(
243
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
244
- xargs -n1 |
245
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
246
- tr '\n' ' '
247
- )" '"$@"'
248
-
249
- exec "$JAVACMD" "$@"
@@ -1,92 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%"=="" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%"=="" set DIRNAME=.
29
- @rem This is normally unused
30
- set APP_BASE_NAME=%~n0
31
- set APP_HOME=%DIRNAME%
32
-
33
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
-
36
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
-
39
- @rem Find java.exe
40
- if defined JAVA_HOME goto findJavaFromJavaHome
41
-
42
- set JAVA_EXE=java.exe
43
- %JAVA_EXE% -version >NUL 2>&1
44
- if %ERRORLEVEL% equ 0 goto execute
45
-
46
- echo.
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
- echo.
49
- echo Please set the JAVA_HOME variable in your environment to match the
50
- echo location of your Java installation.
51
-
52
- goto fail
53
-
54
- :findJavaFromJavaHome
55
- set JAVA_HOME=%JAVA_HOME:"=%
56
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
-
58
- if exist "%JAVA_EXE%" goto execute
59
-
60
- echo.
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
- echo.
63
- echo Please set the JAVA_HOME variable in your environment to match the
64
- echo location of your Java installation.
65
-
66
- goto fail
67
-
68
- :execute
69
- @rem Setup the command line
70
-
71
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
-
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if %ERRORLEVEL% equ 0 goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- set EXIT_CODE=%ERRORLEVEL%
85
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
- exit /b %EXIT_CODE%
88
-
89
- :mainEnd
90
- if "%OS%"=="Windows_NT" endlocal
91
-
92
- :omega
@@ -1,3 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.outbrainreactnative">
3
- </manifest>
@@ -1,2 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
- </manifest>
@@ -1,36 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- cmake_minimum_required(VERSION 3.13)
7
- set(CMAKE_VERBOSE_MAKEFILE on)
8
-
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/RNTeadsReactNativeViewSpec/*.cpp)
10
-
11
- add_library(
12
- react_codegen_RNTeadsReactNativeViewSpec
13
- OBJECT
14
- ${react_codegen_SRCS}
15
- )
16
-
17
- target_include_directories(react_codegen_RNTeadsReactNativeViewSpec PUBLIC . react/renderer/components/RNTeadsReactNativeViewSpec)
18
-
19
- target_link_libraries(
20
- react_codegen_RNTeadsReactNativeViewSpec
21
- fbjni
22
- jsi
23
- # We need to link different libraries based on whether we are building rncore or not, that's necessary
24
- # because we want to break a circular dependency between react_codegen_rncore and reactnative
25
- reactnative
26
- )
27
-
28
- target_compile_options(
29
- react_codegen_RNTeadsReactNativeViewSpec
30
- PRIVATE
31
- -DLOG_TAG=\"ReactNative\"
32
- -fexceptions
33
- -frtti
34
- -std=c++20
35
- -Wall
36
- )
@@ -1,22 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNTeadsReactNativeViewSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- std::shared_ptr<TurboModule> RNTeadsReactNativeViewSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
18
-
19
- return nullptr;
20
- }
21
-
22
- } // namespace facebook::react
@@ -1,24 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- JSI_EXPORT
22
- std::shared_ptr<TurboModule> RNTeadsReactNativeViewSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
23
-
24
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNTeadsReactNativeViewSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,16 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleObjCpp
8
- *
9
- * We create an umbrella header (and corresponding implementation) here since
10
- * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
- * must have a single output. More files => more genrule()s => slower builds.
12
- */
13
-
14
- #import "RNTeadsReactNativeViewSpec.h"
15
-
16
-
@@ -1,38 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleObjCpp
8
- *
9
- * We create an umbrella header (and corresponding implementation) here since
10
- * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
11
- * must have a single output. More files => more genrule()s => slower builds.
12
- */
13
-
14
- #ifndef __cplusplus
15
- #error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
16
- #endif
17
-
18
- // Avoid multiple includes of RNTeadsReactNativeViewSpec symbols
19
- #ifndef RNTeadsReactNativeViewSpec_H
20
- #define RNTeadsReactNativeViewSpec_H
21
-
22
- #import <Foundation/Foundation.h>
23
- #import <RCTRequired/RCTRequired.h>
24
- #import <RCTTypeSafety/RCTConvertHelpers.h>
25
- #import <RCTTypeSafety/RCTTypedModuleConstants.h>
26
- #import <React/RCTBridgeModule.h>
27
- #import <React/RCTCxxConvert.h>
28
- #import <React/RCTManagedPointer.h>
29
- #import <ReactCommon/RCTTurboModule.h>
30
- #import <optional>
31
- #import <vector>
32
-
33
-
34
- NS_ASSUME_NONNULL_BEGIN
35
-
36
-
37
- NS_ASSUME_NONNULL_END
38
- #endif // RNTeadsReactNativeViewSpec_H
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNTeadsReactNativeViewSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react