Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Jun 15, 2024
1 parent 8ca1a69 commit ebdedfa
Show file tree
Hide file tree
Showing 16 changed files with 79 additions and 241 deletions.
189 changes: 79 additions & 110 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,128 +1,97 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
xmlns:tools="http://schemas.android.com/tools"
>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- https://github.com/onfido/WebViewRN/tree/main#android -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- https://github.com/onfido/WebViewRN/tree/main#android -->
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
<uses-feature
android:name="android.hardware.nfc"
android:required="false" /> <!-- https://react-native-share.github.io/react-native-share/docs/share-open -->
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<uses-feature android:name="android.hardware.nfc" android:required="false" />

<!-- https://react-native-share.github.io/react-native-share/docs/share-open -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- TODO android:roundIcon="@mipmap/ic_launcher_round" -->
<!-- android:usesCleartextTraffic="true" for https://github.com/onfido/WebViewRN/tree/main#android -->
<application
android:name=".MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:allowBackup="false"
android:usesCleartextTraffic="true"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme"> <!-- Apply @style/AppTheme on .MainApplication -->
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<receiver
android:name=".BitcoinPriceWidget"
android:exported="false">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>

<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/bitcoin_price_widget_info" />
</receiver>

<!-- Apply @style/AppTheme on .MainApplication -->
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:exported="true"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/BootTheme"
android:windowSoftInputMode="adjustResize"> <!-- Apply @style/BootTheme on .MainActivity -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="lightning" />
<data android:scheme="bitcoinbeach" />
<data android:scheme="blink" />
<data android:scheme="bitcoin" />
<data android:scheme="lapp" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="pay.bbw.sv"
android:scheme="https" />
<data
android:host="pay.mainnet.galoy.io"
android:scheme="https" />
<data
android:host="pay.blink.sv"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />

<category android:name="android.intent.category.DEFAULT" />

<data
android:host="pay.blink.sv"
android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />

<category android:name="android.intent.category.DEFAULT" />

<data android:scheme="lnurlw" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />

<category android:name="android.intent.category.DEFAULT" />
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:screenOrientation = "portrait"
android:windowSoftInputMode="adjustResize"
android:exported="true"
android:theme="@style/BootTheme"> <!-- Apply @style/BootTheme on .MainActivity -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="lightning"/>
<data android:scheme="bitcoinbeach"/>
<data android:scheme="blink"/>
<data android:scheme="bitcoin"/>
<data android:scheme="lapp"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="https" android:host="pay.bbw.sv"/>
<data android:scheme="https" android:host="pay.mainnet.galoy.io"/>
<data android:scheme="https" android:host="pay.blink.sv"/>
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="https" android:host="pay.blink.sv" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlw" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="lnurlp" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />

<!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCttrzic-C_V-mbnZjU0qLhw80f82HZ50k"/>
<!-- TODO: key (a new one) should be added dynamically during the build? -->

<!-- You will also only need to add this uses-library tag -->
<uses-library android:name="org.apache.http.legacy" android:required="false"/>

<data android:scheme="lnurlp" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> <!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyCttrzic-C_V-mbnZjU0qLhw80f82HZ50k" /> <!-- TODO: key (a new one) should be added dynamically during the build? -->
<!-- You will also only need to add this uses-library tag -->
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
</application>

</manifest>
</manifest>
Binary file not shown.
10 changes: 0 additions & 10 deletions android/app/src/main/res/drawable-v21/app_widget_background.xml

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions android/app/src/main/res/values-night-v31/themes.xml

This file was deleted.

14 changes: 0 additions & 14 deletions android/app/src/main/res/values-v21/styles.xml

This file was deleted.

16 changes: 0 additions & 16 deletions android/app/src/main/res/values-v31/styles.xml

This file was deleted.

11 changes: 0 additions & 11 deletions android/app/src/main/res/values-v31/themes.xml

This file was deleted.

7 changes: 0 additions & 7 deletions android/app/src/main/res/values/attrs.xml

This file was deleted.

4 changes: 0 additions & 4 deletions android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<resources>
<color name="bootsplash_background">#000000</color>
<color name="windowBackgroundColor">#ffffff</color>
<color name="light_blue_50">#FFE1F5FE</color>
<color name="light_blue_200">#FF81D4FA</color>
<color name="light_blue_600">#FF039BE5</color>
<color name="light_blue_900">#FF01579B</color>
<color name="primary">#FC5805</color>
</resources>
10 changes: 0 additions & 10 deletions android/app/src/main/res/values/dimens.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,4 @@
<item name="postBootSplashTheme">@style/AppTheme</item>
</style>

<style name="Widget.GaloyApp.AppWidget.Container" parent="android:Widget">
<item name="android:id">@android:id/background</item>
<item name="android:background">?android:attr/colorBackground</item>
</style>

<style name="Widget.GaloyApp.AppWidget.InnerView" parent="android:Widget">
<item name="android:background">?android:attr/colorBackground</item>
<item name="android:textColor">?android:attr/textColorPrimary</item>
</style>

</resources>
17 changes: 0 additions & 17 deletions android/app/src/main/res/values/themes.xml

This file was deleted.

6 changes: 0 additions & 6 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1524,8 +1524,6 @@ PODS:
- ZXingObjC
- RNReactNativeHapticFeedback (2.2.0):
- React-Core
- RNReactNativeSharedGroupPreferences (1.1.24):
- React
- RNReanimated (3.11.0):
- DoubleConversion
- glog
Expand Down Expand Up @@ -1697,7 +1695,6 @@ DEPENDENCIES:
- RNPermissions (from `../node_modules/react-native-permissions`)
- RNQrGenerator (from `../node_modules/rn-qr-generator`)
- RNReactNativeHapticFeedback (from `../node_modules/react-native-haptic-feedback`)
- RNReactNativeSharedGroupPreferences (from `../node_modules/react-native-shared-group-preferences`)
- RNReanimated (from `../node_modules/react-native-reanimated`)
- RNScreens (from `../node_modules/react-native-screens`)
- RNSecureRandom (from `../node_modules/react-native-securerandom`)
Expand Down Expand Up @@ -1909,8 +1906,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/rn-qr-generator"
RNReactNativeHapticFeedback:
:path: "../node_modules/react-native-haptic-feedback"
RNReactNativeSharedGroupPreferences:
:path: "../node_modules/react-native-shared-group-preferences"
RNReanimated:
:path: "../node_modules/react-native-reanimated"
RNScreens:
Expand Down Expand Up @@ -2038,7 +2033,6 @@ SPEC CHECKSUMS:
RNPermissions: 107a3106f541d738b80450cdf2dd9fbd134646eb
RNQrGenerator: 1676221c08bfabec978242989c733810dad20959
RNReactNativeHapticFeedback: ec56a5f81c3941206fd85625fa669ffc7b4545f9
RNReactNativeSharedGroupPreferences: 29092869fc2e40d5baca5e15d82fa5c24a668977
RNReanimated: 82d44098f1640ac390d073bca26264d52a67dc7d
RNScreens: 30249f9331c3b00ae7cb7922e11f58b3ed369c07
RNSecureRandom: 07efbdf2cd99efe13497433668e54acd7df49fef
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"react-native-secure-key-store": "^2.0.9",
"react-native-securerandom": "^1.0.1",
"react-native-share": "^10.1.0",
"react-native-shared-group-preferences": "^1.1.24",
"react-native-svg": "^15.1.0",
"react-native-toast-message": "^2.2.0",
"react-native-url-polyfill": "^2.0.0",
Expand Down
Loading

0 comments on commit ebdedfa

Please sign in to comment.