@react-native-tapsell-mediation/yandex 1.0.1-beta08
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.
- package/LICENSE +20 -0
- package/README.md +46 -0
- package/android/build.gradle +98 -0
- package/android/gradle.properties +5 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/ir/tapsell/mediation/adapter/yandex/YandexPackage.kt +17 -0
- package/lib/commonjs/index.js +2 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +158 -0
- package/src/index.ts +0 -0
package/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 Tapsell
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
<div align="center">
|
2
|
+
<h2 align="center">React Native Yandex Mediation Adapter</h2>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<div align="center">
|
6
|
+
<a href="https://www.npmjs.com/package/@react-native-tapsell-mediation/yandex"><img src="https://img.shields.io/npm/dm/@react-native-tapsell-mediation/yandex.svg?style=flat-square" alt="NPM downloads"></a>
|
7
|
+
<a href="https://www.npmjs.com/package/@react-native-tapsell-mediation/yandex"><img src="https://img.shields.io/npm/v/@react-native-tapsell-mediation/yandex.svg?style=flat-square" alt="NPM version"></a>
|
8
|
+
<a href="/LICENSE"><img src="https://img.shields.io/npm/l/@react-native-tapsell-mediation/yandex.svg?style=flat-square" alt="License"></a>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div align="center">
|
12
|
+
<a href="https://telegram.org/tapsell"><img src="https://img.shields.io/badge/Telegram-2CA5E0?style=flat-squeare&logo=telegram&logoColor=white" alt="Technical Support"></a>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
# @react-native-tapsell-mediation/yandex
|
18
|
+
|
19
|
+
Yandex mediation adapter
|
20
|
+
|
21
|
+
## Installation
|
22
|
+
|
23
|
+
```sh
|
24
|
+
npm install @react-native-tapsell-mediation/yandex
|
25
|
+
```
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
No specific implementation is required
|
30
|
+
|
31
|
+
## License
|
32
|
+
|
33
|
+
- See [LICENSE](/LICENSE)
|
34
|
+
|
35
|
+
---
|
36
|
+
|
37
|
+
<div align="center">
|
38
|
+
<a href="https://tapsell.ir">
|
39
|
+
<img width="75px" src="https://avatars.githubusercontent.com/u/40333245?s=200&v=4">
|
40
|
+
</a>
|
41
|
+
<div align="center">
|
42
|
+
Built and maintained by <a href="tapsell.ir">Tapsell</a>.
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
|
@@ -0,0 +1,98 @@
|
|
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["Yandex_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 isNewArchitectureEnabled() {
|
18
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
19
|
+
}
|
20
|
+
|
21
|
+
apply plugin: "com.android.library"
|
22
|
+
apply plugin: "kotlin-android"
|
23
|
+
|
24
|
+
if (isNewArchitectureEnabled()) {
|
25
|
+
apply plugin: "com.facebook.react"
|
26
|
+
}
|
27
|
+
|
28
|
+
def getExtOrDefault(name) {
|
29
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Yandex_" + name]
|
30
|
+
}
|
31
|
+
|
32
|
+
def getExtOrIntegerDefault(name) {
|
33
|
+
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["Yandex_" + name]).toInteger()
|
34
|
+
}
|
35
|
+
|
36
|
+
def supportsNamespace() {
|
37
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
38
|
+
def major = parsed[0].toInteger()
|
39
|
+
def minor = parsed[1].toInteger()
|
40
|
+
|
41
|
+
// Namespace support was added in 7.3.0
|
42
|
+
return (major == 7 && minor >= 3) || major >= 8
|
43
|
+
}
|
44
|
+
|
45
|
+
android {
|
46
|
+
if (supportsNamespace()) {
|
47
|
+
namespace "ir.tapsell.mediation.adapter.yandex"
|
48
|
+
|
49
|
+
sourceSets {
|
50
|
+
main {
|
51
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml"
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
57
|
+
|
58
|
+
defaultConfig {
|
59
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
|
60
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
buildTypes {
|
65
|
+
release {
|
66
|
+
minifyEnabled false
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
lintOptions {
|
71
|
+
disable "GradleCompatible"
|
72
|
+
}
|
73
|
+
|
74
|
+
compileOptions {
|
75
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
76
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
repositories {
|
81
|
+
mavenLocal()
|
82
|
+
mavenCentral()
|
83
|
+
google()
|
84
|
+
maven { url 'https://android-sdk.is.com' }
|
85
|
+
maven { url 'https://dl.appnext.com' }
|
86
|
+
maven { url 'https://sdk.tapjoy.com' }
|
87
|
+
}
|
88
|
+
|
89
|
+
def kotlin_version = getExtOrDefault("kotlinVersion")
|
90
|
+
|
91
|
+
dependencies {
|
92
|
+
// For < 0.71, this will be from the local maven repo
|
93
|
+
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
94
|
+
//noinspection GradleDynamicVersion
|
95
|
+
implementation "com.facebook.react:react-native:+"
|
96
|
+
implementation "ir.tapsell.mediation.adapter:yandex-reactnative:1.0.1-beta08"
|
97
|
+
}
|
98
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
rootProject.name = '@react-native-tapsell-mediation_yandex'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
package ir.tapsell.mediation.adapter.yandex
|
2
|
+
|
3
|
+
import com.facebook.react.ReactPackage
|
4
|
+
import com.facebook.react.bridge.NativeModule
|
5
|
+
import com.facebook.react.bridge.ReactApplicationContext
|
6
|
+
import com.facebook.react.uimanager.ViewManager
|
7
|
+
|
8
|
+
|
9
|
+
class YandexPackage : ReactPackage {
|
10
|
+
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
|
11
|
+
return listOf()
|
12
|
+
}
|
13
|
+
|
14
|
+
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
|
15
|
+
return emptyList()
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"","ignoreList":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
{
|
2
|
+
"name": "@react-native-tapsell-mediation/yandex",
|
3
|
+
"version": "1.0.1-beta08",
|
4
|
+
"description": "Yandex mediation adapter",
|
5
|
+
"main": "lib/commonjs/index",
|
6
|
+
"module": "lib/module/index",
|
7
|
+
"types": "lib/typescript/src/index.d.ts",
|
8
|
+
"react-native": "src/index",
|
9
|
+
"source": "src/index",
|
10
|
+
"files": [
|
11
|
+
"src",
|
12
|
+
"lib",
|
13
|
+
"android",
|
14
|
+
"ios",
|
15
|
+
"cpp",
|
16
|
+
"*.podspec",
|
17
|
+
"!ios/build",
|
18
|
+
"!android/build",
|
19
|
+
"!android/gradle",
|
20
|
+
"!android/gradlew",
|
21
|
+
"!android/gradlew.bat",
|
22
|
+
"!android/local.properties",
|
23
|
+
"!**/__tests__",
|
24
|
+
"!**/__fixtures__",
|
25
|
+
"!**/__mocks__",
|
26
|
+
"!**/.*"
|
27
|
+
],
|
28
|
+
"scripts": {
|
29
|
+
"test": "jest",
|
30
|
+
"typecheck": "tsc --noEmit",
|
31
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
32
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
33
|
+
"prepare": "bob build",
|
34
|
+
"release": "release-it"
|
35
|
+
},
|
36
|
+
"keywords": [
|
37
|
+
"react-native",
|
38
|
+
"ios",
|
39
|
+
"android"
|
40
|
+
],
|
41
|
+
"repository": {
|
42
|
+
"type": "git",
|
43
|
+
"url": "git+https://github.com/tapsellorg/TapsellMediation-ReactNative.git"
|
44
|
+
},
|
45
|
+
"author": "Tapsell <info@tapsell.ir> (https://github.com/tapsellorg)",
|
46
|
+
"license": "MIT",
|
47
|
+
"bugs": {
|
48
|
+
"url": "https://github.com/tapsellorg/TapsellMediation-ReactNative/issues"
|
49
|
+
},
|
50
|
+
"homepage": "https://github.com/tapsellorg/TapsellMediation-ReactNative#readme",
|
51
|
+
"publishConfig": {
|
52
|
+
"registry": "https://registry.npmjs.org/"
|
53
|
+
},
|
54
|
+
"devDependencies": {
|
55
|
+
"@commitlint/config-conventional": "^17.0.2",
|
56
|
+
"@evilmartians/lefthook": "^1.5.0",
|
57
|
+
"@react-native/eslint-config": "^0.72.2",
|
58
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
59
|
+
"@types/jest": "^28.1.2",
|
60
|
+
"@types/react": "~18.2.55",
|
61
|
+
"@types/react-native": "0.73.0",
|
62
|
+
"commitlint": "^17.0.2",
|
63
|
+
"del-cli": "^5.0.0",
|
64
|
+
"eslint": "^8.4.1",
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
66
|
+
"eslint-plugin-prettier": "^4.0.0",
|
67
|
+
"jest": "^28.1.1",
|
68
|
+
"prettier": "^2.0.5",
|
69
|
+
"react": "18.2.0",
|
70
|
+
"react-native": "0.73.4",
|
71
|
+
"react-native-builder-bob": "^0.20.0",
|
72
|
+
"release-it": "^15.0.0",
|
73
|
+
"turbo": "^1.10.7",
|
74
|
+
"typescript": "^5.3.3"
|
75
|
+
},
|
76
|
+
"resolutions": {
|
77
|
+
"@types/react": "18.2.55"
|
78
|
+
},
|
79
|
+
"peerDependencies": {
|
80
|
+
"@react-native-tapsell-mediation/tapsell": "^1.0.1-beta08",
|
81
|
+
"react": "*",
|
82
|
+
"react-native": "*"
|
83
|
+
},
|
84
|
+
"packageManager": "yarn@3.6.1",
|
85
|
+
"engines": {
|
86
|
+
"node": ">= 18.0.0"
|
87
|
+
},
|
88
|
+
"jest": {
|
89
|
+
"preset": "react-native",
|
90
|
+
"modulePathIgnorePatterns": [
|
91
|
+
"<rootDir>/example/node_modules",
|
92
|
+
"<rootDir>/lib/"
|
93
|
+
]
|
94
|
+
},
|
95
|
+
"commitlint": {
|
96
|
+
"extends": [
|
97
|
+
"@commitlint/config-conventional"
|
98
|
+
]
|
99
|
+
},
|
100
|
+
"release-it": {
|
101
|
+
"git": {
|
102
|
+
"commitMessage": "chore: release ${version}",
|
103
|
+
"tagName": "v${version}"
|
104
|
+
},
|
105
|
+
"npm": {
|
106
|
+
"publish": true
|
107
|
+
},
|
108
|
+
"plugins": {
|
109
|
+
"@release-it/conventional-changelog": {
|
110
|
+
"preset": "angular"
|
111
|
+
}
|
112
|
+
}
|
113
|
+
},
|
114
|
+
"eslintConfig": {
|
115
|
+
"root": true,
|
116
|
+
"extends": [
|
117
|
+
"@react-native",
|
118
|
+
"prettier"
|
119
|
+
],
|
120
|
+
"rules": {
|
121
|
+
"prettier/prettier": [
|
122
|
+
"error",
|
123
|
+
{
|
124
|
+
"quoteProps": "consistent",
|
125
|
+
"singleQuote": true,
|
126
|
+
"tabWidth": 2,
|
127
|
+
"trailingComma": "es5",
|
128
|
+
"useTabs": false
|
129
|
+
}
|
130
|
+
]
|
131
|
+
}
|
132
|
+
},
|
133
|
+
"eslintIgnore": [
|
134
|
+
"node_modules/",
|
135
|
+
"lib/"
|
136
|
+
],
|
137
|
+
"prettier": {
|
138
|
+
"quoteProps": "consistent",
|
139
|
+
"singleQuote": true,
|
140
|
+
"tabWidth": 2,
|
141
|
+
"trailingComma": "es5",
|
142
|
+
"useTabs": false
|
143
|
+
},
|
144
|
+
"react-native-builder-bob": {
|
145
|
+
"source": "src",
|
146
|
+
"output": "lib",
|
147
|
+
"targets": [
|
148
|
+
"commonjs",
|
149
|
+
"module",
|
150
|
+
[
|
151
|
+
"typescript",
|
152
|
+
{
|
153
|
+
"project": "tsconfig.build.json"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
]
|
157
|
+
}
|
158
|
+
}
|
package/src/index.ts
ADDED
File without changes
|