Skip to content

Commit

Permalink
Merge pull request #3111 from bithyve/dev
Browse files Browse the repository at this point in the history
Build 220
  • Loading branch information
cakesoft-shashank authored Aug 1, 2023
2 parents 314c6c1 + f9c3b8c commit 18be70b
Show file tree
Hide file tree
Showing 67 changed files with 1,966 additions and 319 deletions.
13 changes: 10 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Sentry from '@sentry/react-native';

import { LogBox, Platform, StatusBar, UIManager } from 'react-native';
import React, { useEffect } from 'react';
import React, { ReactElement, useEffect } from 'react';

import { AppContextProvider } from 'src/common/content/AppContext';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
Expand All @@ -11,11 +11,12 @@ import { PersistGate } from 'redux-persist/integration/react';
import { Provider } from 'react-redux';
import { sentryConfig } from 'src/core/services/sentry';
import { withIAPContext, initConnection, endConnection } from 'react-native-iap';
import { TorContextProvider } from 'src/store/contexts/TorContext';
import { HCESessionProvider } from 'react-native-hce';
import { customTheme } from './src/common/themes';
import Navigator from './src/navigation/Navigator';
import { LocalizationProvider } from './src/common/content/LocContext';
import { persistor, store } from './src/store/store';
import { TorContextProvider } from 'src/store/contexts/TorContext';

LogBox.ignoreLogs([
"[react-native-gesture-handler] Seems like you're using an old API with gesture components, check out new Gestures system!",
Expand All @@ -30,6 +31,10 @@ if (Platform.OS === 'android') {
}
}

function AndroidProvider({ children }: { children: ReactElement }) {
return Platform.OS === 'android' ? <HCESessionProvider>{children}</HCESessionProvider> : children;
}

function App() {
useEffect(() => {
initConnection();
Expand All @@ -53,7 +58,9 @@ function App() {
<LocalizationProvider>
<AppContextProvider>
<TorContextProvider>
<Navigator />
<AndroidProvider>
<Navigator />
</AndroidProvider>
</TorContextProvider>
</AppContextProvider>
</LocalizationProvider>
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
applicationId "io.hexawallet.keeper"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 218
versionName "1.1.0"
versionCode 220
versionName "1.1.1"
missingDimensionStrategy 'react-native-camera', 'general'
missingDimensionStrategy 'store', 'play'
multiDexEnabled true
Expand Down
14 changes: 14 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,19 @@
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
<service
android:name="com.reactnativehce.services.CardService"
android:exported="true"
android:enabled="false"
android:permission="android.permission.BIND_NFC_SERVICE" >
<intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

<meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/aid_list" />
</service>
</application>
</manifest>
19 changes: 19 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-feature android:name="android.hardware.nfc.hce" android:required="true" />

<application
android:name=".MainApplication"
Expand Down Expand Up @@ -58,5 +61,21 @@
<meta-data android:name="google_analytics_adid_collection_enabled" android:value="false" />
<meta-data android:name="google_analytics_ssaid_collection_enabled" android:value="false" />
<meta-data android:name="google_analytics_default_allow_ad_personalization_signals" android:value="false" />

<service
android:name="com.reactnativehce.services.CardService"
android:exported="true"
android:enabled="false"
android:permission="android.permission.BIND_NFC_SERVICE" >
<intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>

<meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/aid_list" />
</service>

</application>
</manifest>
8 changes: 8 additions & 0 deletions android/app/src/main/res/xml/aid_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/app_name"
android:requireDeviceUnlock="false">
<aid-group android:category="other"
android:description="@string/app_name">
<aid-filter android:name="D2760000850101" />
</aid-group>
</host-apdu-service>
6 changes: 6 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ PODS:
- React-Core
- react-native-get-random-values (1.8.0):
- React-Core
- react-native-hce (0.2.0):
- React
- react-native-html-to-pdf (0.12.0):
- React-Core
- react-native-image-picker (4.10.3):
Expand Down Expand Up @@ -580,6 +582,7 @@ DEPENDENCIES:
- react-native-document-picker (from `../node_modules/react-native-document-picker`)
- react-native-flipper (from `../node_modules/react-native-flipper`)
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- react-native-hce (from `../node_modules/react-native-hce`)
- react-native-html-to-pdf (from `../node_modules/react-native-html-to-pdf`)
- react-native-image-picker (from `../node_modules/react-native-image-picker`)
- react-native-mmkv (from `../node_modules/react-native-mmkv`)
Expand Down Expand Up @@ -704,6 +707,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-flipper"
react-native-get-random-values:
:path: "../node_modules/react-native-get-random-values"
react-native-hce:
:path: "../node_modules/react-native-hce"
react-native-html-to-pdf:
:path: "../node_modules/react-native-html-to-pdf"
react-native-image-picker:
Expand Down Expand Up @@ -833,6 +838,7 @@ SPEC CHECKSUMS:
react-native-document-picker: 958e2bc82e128be69055be261aeac8d872c8d34c
react-native-flipper: 1b78844db5b0de19bd64847c3b88cafc6cc119ba
react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
react-native-hce: d416a1fcb8fd85e1d46260f72c29589a77869879
react-native-html-to-pdf: 4c5c6e26819fe202971061594058877aa9b25265
react-native-image-picker: 60f4246eb5bb7187fc15638a8c1f13abd3820695
react-native-mmkv: 1265a348a4711097ba29c8bcefd5971f48220f2b
Expand Down
16 changes: 8 additions & 8 deletions ios/hexa_keeper.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CURRENT_PROJECT_VERSION = 218;
CURRENT_PROJECT_VERSION = 220;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -921,7 +921,7 @@
"$(inherited)",
"\"$(SRCROOT)\"",
);
MARKETING_VERSION = 1.1.0;
MARKETING_VERSION = 1.1.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -943,7 +943,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper/hexa_keeper.entitlements;
CURRENT_PROJECT_VERSION = 218;
CURRENT_PROJECT_VERSION = 220;
DEVELOPMENT_TEAM = Y5TCB759QL;
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1049,7 +1049,7 @@
"$(inherited)",
"\"$(SRCROOT)\"",
);
MARKETING_VERSION = 1.1.0;
MARKETING_VERSION = 1.1.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down Expand Up @@ -1193,7 +1193,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = "dev-AppIcon";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CURRENT_PROJECT_VERSION = 218;
CURRENT_PROJECT_VERSION = 220;
DEVELOPMENT_TEAM = Y5TCB759QL;
ENABLE_BITCODE = NO;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -1301,7 +1301,7 @@
"$(PROJECT_DIR)",
"\"$(SRCROOT)\"",
);
MARKETING_VERSION = 1.1.0;
MARKETING_VERSION = 1.1.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -1324,7 +1324,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = "dev-AppIcon";
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = hexa_keeper_dev.entitlements;
CURRENT_PROJECT_VERSION = 218;
CURRENT_PROJECT_VERSION = 220;
DEVELOPMENT_TEAM = Y5TCB759QL;
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -1431,7 +1431,7 @@
"$(PROJECT_DIR)",
"\"$(SRCROOT)\"",
);
MARKETING_VERSION = 1.1.0;
MARKETING_VERSION = 1.1.1;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"react-native-fs": "^2.20.0",
"react-native-gesture-handler": "^2.3.2",
"react-native-get-random-values": "^1.7.2",
"react-native-hce": "^0.2.0",
"react-native-html-to-pdf": "^0.12.0",
"react-native-iap": "12.10.5",
"react-native-image-picker": "^4.10.3",
Expand Down
25 changes: 25 additions & 0 deletions src/assets/images/airdrop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 18be70b

Please sign in to comment.