Skip to content

Commit

Permalink
Version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coralaquarist committed May 17, 2024
1 parent f16deb5 commit 02d123a
Show file tree
Hide file tree
Showing 139 changed files with 1,993 additions and 1,925 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
"@typescript-eslint/no-explicit-any": "warn",
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
"import/newline-after-import": ["error", { "count": 1 }],
'import/no-extraneous-dependencies': 'error',
'import/order': [
'error',
{
Expand Down
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Windows files should use crlf line endings
# https://help.github.com/articles/dealing-with-line-endings/
*.bat text eol=crlf
91 changes: 91 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.hprof
*.xcuserstate
ios/.xcode.env.local
.cxx/

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
.vscode/
# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/test_output
*/fastlane/.env.default
ios/SuperWallet.app.dSYM.zip

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/

#
release-notes.json
release-notes.txt
current-branch.json
git-info.json
current-branch.txt

openapitools.json

coverage

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# Realm files
default.realm
default.realm.lock
default.realm.note
/default.realm.management/

# typescript-coverage-report
coverage-ts

.env
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@ module.exports = {
singleQuote: true,
trailingComma: 'all',
arrowParens: 'avoid',
overrides: [
{
files: '*.yaml',
options: {
singleQuote: false
}
},
],
};
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Empty file added a
Empty file.
9 changes: 1 addition & 8 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,12 @@ dependencies {

implementation "com.google.firebase:firebase-messaging:23.1.2"

debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
exclude group:'com.squareup.okhttp3', module:'okhttp'
}

debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}

implementation project(':react-native-notifications')
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.android.gms:play-services-base:18.2.0'
implementation 'androidx.work:work-runtime:2.8.1'
Expand All @@ -198,4 +191,4 @@ task printVersion {
println "VERSION_CODE=" + android.defaultConfig.versionCode
println "VERSION_NAME=" + android.defaultConfig.versionName
}
}
}
19 changes: 19 additions & 0 deletions android/app/build_defs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Helper definitions to glob .aar and .jar targets"""
def create_aar_targets(aarfiles):
for aarfile in aarfiles:
name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
lib_deps.append(":" + name)
android_prebuilt_aar(
name = name,
aar = aarfile,
)
def create_jar_targets(jarfiles):
for jarfile in jarfiles:
name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
lib_deps.append(":" + name)
prebuilt_jar(
name = name,
binary_jar = jarfile,
)
13 changes: 13 additions & 0 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

<application
android:usesCleartextTraffic="true"
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
</application>
</manifest>
11 changes: 11 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,24 @@
android:name="com.google.firebase.messaging.default_notification_channel_id"
android:value="@string/default_notification_channel_id"/>

<!-- handled after app start -->
<meta-data
android:name="expo.modules.notifications.default_notification_icon"
android:resource="@drawable/notification_icon" />

<meta-data
android:name="expo.modules.notifications.default_notification_color"
android:resource="@color/colorAccent" />

<!-- handled before app start -->
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/notification_icon" />

<meta-data
android:name="com.google.firebase.messaging.default_notification_color"
android:resource="@color/colorAccent" />

<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public void onCreate() {
// If you opted-in for the New Architecture, we load the native entry point for this app.
DefaultNewArchitectureEntryPoint.load();
}
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
ApplicationLifecycleDispatcher.onApplicationCreate(this);
}

Expand Down

This file was deleted.

5 changes: 1 addition & 4 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.182.0

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
Expand All @@ -41,4 +38,4 @@ newArchEnabled=false

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true
hermesEnabled=true
2 changes: 0 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ apply from: file("../node_modules/@react-native-community/cli-platform-android/n
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')

include ':react-native-notifications'
project(':react-native-notifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/lib/android/app')
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")
useExpoModules()
12 changes: 0 additions & 12 deletions assets/kraken-wallet-cryptoicons/src/hydra.svg

This file was deleted.

11 changes: 0 additions & 11 deletions assets/kraken-wallet-network-icons/src/hydra.svg

This file was deleted.

2 changes: 2 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ declare module 'coinselect';

declare type RequestCredentials = RequestCredentials_;

declare type StringNumber = string;

declare module 'react-native-config' {
export interface NativeConfig {
DEFAULT_HARMONY_BASE_URI: string;
Expand Down
1 change: 0 additions & 1 deletion entities/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion generated/assetIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,6 @@ export const icons = {
'hush': i780,
'hvn': i781,
'hxro': i782,
'hydra': i783,
'hydro': i784,
'hyn': i785,
'hyve': i786,
Expand Down
2 changes: 0 additions & 2 deletions generated/networkIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import i13 from 'kraken-wallet-network-icons/src/evmos.svg';
import i14 from 'kraken-wallet-network-icons/src/fantom.svg';
import i15 from 'kraken-wallet-network-icons/src/gnosis.svg';
import i16 from 'kraken-wallet-network-icons/src/harmony.svg';
import i17 from 'kraken-wallet-network-icons/src/hydra.svg';
import i18 from 'kraken-wallet-network-icons/src/moonriver.svg';
import i19 from 'kraken-wallet-network-icons/src/optimism.svg';
import i20 from 'kraken-wallet-network-icons/src/polygon.svg';
Expand All @@ -41,7 +40,6 @@ export const networkIcons = {
fantom: i14,
gnosis: i15,
harmony: i16,
hydra: i17,
moonriver: i18,
optimism: i19,
polygon: i20,
Expand Down
2 changes: 1 addition & 1 deletion helpers/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const handleError = async function (
context: BabelErrorContext,
toast?: Omit<ToastConfigProps, 'type' | 'blackListRoutes'> | 'generic',
): Promise<void> {
console.log('exception caught:', context, error);
console.log('exception caught:', context, unwrapError(error));
recentErrors.push({
error: serializeError(unwrapError(error)),
context,
Expand Down
6 changes: 0 additions & 6 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ platform :ios, '15.0'
install! 'cocoapods', :deterministic_uuids => false

prepare_react_native_project!
flipper_config = ENV['NO_FLIPPER'] == "true" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled(["Release","Debug"])

target 'SuperWallet' do
use_expo_modules!
Expand All @@ -31,11 +30,6 @@ target 'SuperWallet' do
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => true,
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
Expand Down
9 changes: 9 additions & 0 deletions ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
<string>8FFB.1</string>
</array>
</dict>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
<string>C56D.1</string>
</array>
</dict>
</array>
</dict>
</plist>
Loading

0 comments on commit 02d123a

Please sign in to comment.