Skip to content

Commit

Permalink
chore: #product-20675 dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-zak committed Aug 1, 2024
1 parent 217f327 commit 5b122c8
Show file tree
Hide file tree
Showing 70 changed files with 37,788 additions and 16,290 deletions.
27 changes: 19 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,22 @@ project.xcworkspace

# Android/IJ
#
.idea
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml
.project
example/android/app/google-services.json

# Android memory profiler files
*.hprof


# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# node.js
#
node_modules/
Expand All @@ -60,7 +61,17 @@ android/app/libs
android/keystores/debug.keystore

# Expo
.expo/*
.expo/

# Turborepo
.turbo/

# generated by bob
lib/

# yarn
.yarn/
.yarnrc.yml

.editorconfig
*.env.local
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18.1
22.4.1
2 changes: 1 addition & 1 deletion .watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ npm install @ramp-network/react-native-sdk
## Usage

```js
import RampSdk from "@ramp-network/react-native-sdk";
import RampSdk from '@ramp-network/react-native-sdk';

const ramp = new RampSdk({
hostAppName: 'React Native Example',
hostLogoUrl: 'https://rampnetwork.github.io/assets/misc/test-logo.png',
deepLinkScheme: 'ramprndemo',
deepLinkScheme: 'ramprndemo',
});
```

## Documentation

Docs for the SDK package can be found here - [https://docs.ramp.network/mobile/react-native-sdk](https://docs.ramp.network/mobile/react-native-sdk).


## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
Expand Down
42 changes: 26 additions & 16 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ buildscript {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
Expand All @@ -15,16 +14,18 @@ buildscript {
}
}

def reactNativeArchitectures() {
def value = rootProject.getProperties().get("reactNativeArchitectures")
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

def isNewArchitectureEnabled() {
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
}

apply plugin: "com.android.library"
apply plugin: "kotlin-android"


def appProject = rootProject.allprojects.find { it.plugins.hasPlugin('com.android.application') }

if (isNewArchitectureEnabled()) {
apply plugin: "com.facebook.react"
}
Expand All @@ -37,14 +38,34 @@ def getExtOrIntegerDefault(name) {
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["ReactNativeSdk_" + name]).toInteger()
}

def supportsNamespace() {
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
def major = parsed[0].toInteger()
def minor = parsed[1].toInteger()

// Namespace support was added in 7.3.0
return (major == 7 && minor >= 3) || major >= 8
}

android {
if (supportsNamespace()) {
namespace "network.ramp.reactnativesdk"

sourceSets {
main {
manifest.srcFile "src/main/AndroidManifestNew.xml"
}
}
}

compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

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

}

buildTypes {
release {
minifyEnabled false
Expand All @@ -59,7 +80,6 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

}

repositories {
Expand All @@ -76,15 +96,5 @@ dependencies {
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.github.RampNetwork:ramp-sdk-android:3.+'
testImplementation "org.junit.jupiter:junit-jupiter:5.8.2"


}

if (isNewArchitectureEnabled()) {
react {
jsRootDir = file("../src/")
libraryName = "ReactNativeSdk"
codegenJavaPackageName = "network.ramp.reactnativesdk"
}
}
Binary file removed android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading

0 comments on commit 5b122c8

Please sign in to comment.