Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c0be2d4
Merge pull request #367 from qonversion/release/9.0.2
SpertsyanKM Jul 24, 2025
6437f14
React 19 supported.
SpertsyanKM Jul 24, 2025
7020bd9
The new architecture support (iOS not working for now).
SpertsyanKM Aug 4, 2025
3df1e89
The new architecture support (iOS not working for now).
SpertsyanKM Aug 4, 2025
b2784b8
Intermediate iOS state
SpertsyanKM Aug 15, 2025
612a709
Compiling state of the new architecture support on iOS
SpertsyanKM Aug 19, 2025
98165bf
Added source and version for no-codes.
SpertsyanKM Aug 20, 2025
fd723cc
ID and Id synchronization
SpertsyanKM Aug 20, 2025
917184c
Sample app recreated.
SpertsyanKM Aug 26, 2025
cda421e
linter fixes
SpertsyanKM Aug 26, 2025
6d91f41
Lockfile
SpertsyanKM Aug 26, 2025
68bc401
CR fixes
SpertsyanKM Aug 28, 2025
187c3d2
Return bridging header file
SpertsyanKM Aug 28, 2025
65b9271
Return bridging header to ios folder
SpertsyanKM Aug 28, 2025
0ca07e7
Rename native RN spec file
SpertsyanKM Aug 29, 2025
552221d
Merge pull request #373 from qonversion/tech/sc-40200/react19
SpertsyanKM Aug 29, 2025
14ac9ea
Merge pull request #375 from qonversion/tech/sc-40572/majorChanges
SpertsyanKM Aug 29, 2025
fb6f1d0
Merge branch 'major10' into tech/sc-40232/sourceVersion
SpertsyanKM Aug 29, 2025
62d5c6f
Merge pull request #374 from qonversion/tech/sc-40232/sourceVersion
SpertsyanKM Aug 29, 2025
c51e19e
Merge branch 'major10' into tech/sc-40572/newSample
SpertsyanKM Aug 29, 2025
4111b33
Merge pull request #376 from qonversion/tech/sc-40572/newSample
SpertsyanKM Aug 29, 2025
a556806
Small fixes
SpertsyanKM Aug 31, 2025
9e9ff11
Added fallback file
actions-user Sep 3, 2025
26e4c23
Removed useless file
actions-user Sep 3, 2025
503419b
Merge pull request #377 from qonversion/major10
SpertsyanKM Sep 3, 2025
7b7693f
[create-pull-request] automated change
SpertsyanKM Sep 3, 2025
16251ed
Update package.json
SpertsyanKM Sep 3, 2025
298fe8e
Update QonversionInternal.ts
SpertsyanKM Sep 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
65 changes: 50 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
#
.DS_Store

# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# VSCode
.vscode/
jsconfig.json

# Xcode
#
Expand All @@ -27,23 +25,60 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android/IntelliJ
# Android/IJ
#
build/
.idea
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
*.iml
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
android/app/libs
android/keystores/debug.keystore

# Yarn
.yarn/*
example/.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Expo
.expo/

# Turborepo
.turbo/

# generated by bob
lib/

# vscode
.vscode
# React Native Codegen
ios/generated
android/generated

# CocoaPods
Pods/
Podfile.lock
# React Native Nitro Modules
nitrogen/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.19.0
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

874 changes: 874 additions & 0 deletions .yarn/releases/yarn-3.6.1.cjs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
nodeLinker: node-modules
nmHoistingLimits: workspaces

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
138 changes: 75 additions & 63 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,80 +1,92 @@
// android/build.gradle

// based on:
//
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle
// original location:
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle
//
// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle
// original location:
// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle

def DEFAULT_COMPILE_SDK_VERSION = 33
def DEFAULT_MIN_SDK_VERSION = 16
def DEFAULT_TARGET_SDK_VERSION = 33

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
buildscript {
ext.getExtOrDefault = {name ->
return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ReactNativeSdk_' + name]
}

repositories {
google()
mavenCentral()
}

dependencies {
classpath "com.android.tools.build:gradle:8.7.2"
// noinspection DifferentKotlinGradleVersion
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
}
}

apply plugin: 'com.android.library'
def isNewArchitectureEnabled() {
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
}

buildscript {
// The Android Gradle plugin is only required when opening the android folder stand-alone.
// This avoids unnecessary downloads and potential conflicts when the library is included as a
// module dependency in an application project.
// ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies
repositories {
google()
}
if (project == rootProject) {
dependencies {
classpath 'com.android.tools.build:gradle:3.4.3'
}
}
apply plugin: "com.android.library"
apply plugin: "kotlin-android"

if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}

def getExtOrIntegerDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ReactNativeSdk_" + name]).toInteger()
}

android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
versionCode 1
versionName "1.0"
namespace "com.qonversion.reactnativesdk"

compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

defaultConfig {
minSdkVersion getExtOrIntegerDefault("minSdkVersion")
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
}

buildFeatures {
buildConfig true
}

buildTypes {
release {
minifyEnabled false
}
lintOptions {
abortOnError false
}

lintOptions {
disable "GradleCompatible"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

sourceSets {
main {
java.srcDirs += [
"generated/java",
"generated/jni"
]
}
}
}

repositories {
// ref: https://www.baeldung.com/maven-local-repository
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
// Android JSC is installed from npm
url "$rootDir/../node_modules/jsc-android/dist"
}
google()
mavenCentral()
google()
}

def kotlin_version = getExtOrDefault("kotlinVersion")

dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
implementation "io.qonversion:sandwich:6.0.6"
implementation "com.facebook.react:react-android"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "io.qonversion:sandwich:6.0.10"
}

afterEvaluate { project ->
android.libraryVariants.all { variant ->
def name = variant.name.capitalize()
def javaCompileTask = variant.javaCompileProvider.get()

task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
from javaCompileTask.destinationDir
}
}
if (isNewArchitectureEnabled()) {
react {
jsRootDir = file("../src/")
libraryName = "ReactNativeSdk"
codegenJavaPackageName = "com.qonversion.reactnativesdk"
}
}
8 changes: 6 additions & 2 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
android.useAndroidX=true
android.enableJetifier=true
ReactNativeSdk_kotlinVersion=2.0.21
ReactNativeSdk_minSdkVersion=24
ReactNativeSdk_targetSdkVersion=34
ReactNativeSdk_compileSdkVersion=35
ReactNativeSdk_ndkVersion=27.1.12297006
newArchEnabled=true
Binary file removed android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading