@attryio/react-native 0.1.5 → 0.1.6
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/AttryReactNative.podspec +19 -0
- package/android/build.gradle +37 -0
- package/dist/index.js +1 -1
- package/ios/AttryAppleAds.swift +1 -0
- package/package.json +3 -1
- package/react-native.config.js +12 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "AttryReactNative"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = "Attry React Native SDK"
|
|
9
|
+
s.description = "React Native SDK for Attry mobile attribution, app events, and store attribution."
|
|
10
|
+
s.homepage = "https://attry.io"
|
|
11
|
+
s.license = { :type => "Apache-2.0" }
|
|
12
|
+
s.author = { "Attry" => "hello@attry.io" }
|
|
13
|
+
s.platforms = { :ios => "13.0" }
|
|
14
|
+
s.source = { :git => "https://github.com/mozhn/attry.io.git", :tag => "v#{s.version}" }
|
|
15
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
16
|
+
s.frameworks = "AdServices"
|
|
17
|
+
s.swift_version = "5.0"
|
|
18
|
+
s.dependency "React-Core"
|
|
19
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
buildscript {
|
|
2
|
+
repositories {
|
|
3
|
+
google()
|
|
4
|
+
mavenCentral()
|
|
5
|
+
}
|
|
6
|
+
dependencies {
|
|
7
|
+
classpath("com.android.tools.build:gradle:8.7.3")
|
|
8
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.21")
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
def safeExtGet(prop, fallback) {
|
|
13
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
apply plugin: "com.android.library"
|
|
17
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
|
18
|
+
|
|
19
|
+
android {
|
|
20
|
+
namespace "io.attry.reactnative"
|
|
21
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 35)
|
|
22
|
+
|
|
23
|
+
defaultConfig {
|
|
24
|
+
minSdkVersion safeExtGet("minSdkVersion", 23)
|
|
25
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 35)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
repositories {
|
|
30
|
+
google()
|
|
31
|
+
mavenCentral()
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
dependencies {
|
|
35
|
+
implementation("com.facebook.react:react-android")
|
|
36
|
+
implementation("com.android.installreferrer:installreferrer:2.2")
|
|
37
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Attry, ATTRY_EVENTS, MemoryStorage, parseAttryUrl } from "@attryio/sdk-core";
|
|
2
2
|
const SDK_NAME = "attry-react-native";
|
|
3
|
-
const SDK_VERSION = "0.1.
|
|
3
|
+
const SDK_VERSION = "0.1.6";
|
|
4
4
|
export { parseAttryUrl };
|
|
5
5
|
export async function createAttryReactNative(config) {
|
|
6
6
|
const rn = await loadReactNative();
|
package/ios/AttryAppleAds.swift
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attryio/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"dist",
|
|
23
23
|
"ios",
|
|
24
24
|
"android",
|
|
25
|
+
"AttryReactNative.podspec",
|
|
26
|
+
"react-native.config.js",
|
|
25
27
|
"README.md",
|
|
26
28
|
"package.json"
|
|
27
29
|
],
|