Skip to content

Commit 1a15639

Browse files
feat: update native lib
1 parent 79a0947 commit 1a15639

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ dependencies {
106106
//noinspection GradleDynamicVersion
107107
implementation "com.facebook.react:react-native:+"
108108
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
109-
implementation 'com.github.Tap-Payments:Card-Android:0.0.30'
109+
implementation 'com.github.Tap-Payments:Card-Android:0.0.33'
110110
}
111111

112112
if (isNewArchitectureEnabled()) {

card-react-native.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Pod::Spec.new do |s|
2121
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
2222
if respond_to?(:install_modules_dependencies, true)
2323
install_modules_dependencies(s)
24-
s.dependency 'Card-iOS','0.0.22'
24+
s.dependency 'Card-iOS','0.0.23'
2525
else
2626
s.dependency "React-Core"
27-
s.dependency 'Card-iOS','0.0.22'
27+
s.dependency 'Card-iOS','0.0.23'
2828
# Don't install the dependencies when we run `pod install` in the old architecture.
2929
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
3030
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"

example/android/app/src/main/AndroidManifest.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools">
23

34
<uses-permission android:name="android.permission.INTERNET" />
5+
<uses-permission android:name="android.permission.CAMERA"/>
6+
<uses-permission android:name="android.permission.NFC" />
7+
<uses-feature android:name="android.hardware.nfc" android:required="true" />
8+
<uses-feature
9+
android:name="android.hardware.camera"
10+
android:required="true" />
411

512
<application
613
android:name=".MainApplication"
714
android:label="@string/app_name"
815
android:icon="@mipmap/ic_launcher"
916
android:roundIcon="@mipmap/ic_launcher_round"
17+
tools:replace="android:allowBackup"
1018
android:allowBackup="true"
1119
android:theme="@style/AppTheme">
1220
<activity

0 commit comments

Comments
 (0)