Skip to content

Commit

Permalink
Version 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
coralaquarist committed Oct 18, 2024
1 parent 0cd3619 commit 0de38c9
Show file tree
Hide file tree
Showing 346 changed files with 10,626 additions and 2,927 deletions.
7 changes: 7 additions & 0 deletions .continueignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore everything
*

# Include the src directory and everything in it
!/src/
!/src/**
src/assets/**
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.2.2
9 changes: 2 additions & 7 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { StorybookConfig } from '@storybook/react-native';

const main: StorybookConfig = {
stories: [
'../src/components/**/*.stories.?(ts|tsx|js|jsx)'
],
addons: [
'@storybook/addon-ondevice-controls',
'@storybook/addon-ondevice-actions'
],
stories: ['../src/components/**/*.stories.?(ts|tsx|js|jsx)', '../src/screens/**/*.stories.?(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-actions'],
};

export default main;
13 changes: 13 additions & 0 deletions .storybook/storybook.requires.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ const normalizedStories = [
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
{
titlePrefix: "",
directory: "./src/screens",
files: "**/*.stories.?(ts|tsx|js|jsx)",
importPathMatcher:
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/,
// @ts-ignore
req: require.context(
"../src/screens",
true,
/^\.(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?\.stories\.(?:ts|tsx|js|jsx)?)$/
),
},
];

declare global {
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source 'https://rubygems.org'

ruby ">= 2.6.10"

gem "fastlane", '~> 2.215.1'
gem "fastlane", '~> 2.223.1'
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.kraken.superwallet.modules.boottime.BootTimePackage;
import com.kraken.superwallet.modules.gradients.WalletGradientViewPackage;
import com.kraken.superwallet.modules.clipboard.SensitiveClipboardPackage;
import com.kraken.superwallet.modules.minimizer.MinimizerPackage;

public class MainApplication extends Application implements ReactApplication {

Expand All @@ -38,6 +39,7 @@ protected List<ReactPackage> getPackages() {
packages.add(new BootTimePackage());
packages.add(new WalletGradientViewPackage());
packages.add(new ActivityLifecyclePackage());
packages.add(new MinimizerPackage());
return packages;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.kraken.superwallet.modules.minimizer

import android.app.Activity
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod

class MinimizerModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {

override fun getName(): String {
return "Minimizer"
}

@ReactMethod
fun goBack() {
val activity: Activity? = reactContext.currentActivity
activity?.moveTaskToBack(true)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.kraken.superwallet.modules.minimizer

import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager

class MinimizerPackage : ReactPackage {
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
return listOf(MinimizerModule(reactContext))
}

override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
return emptyList()
}
}
21 changes: 21 additions & 0 deletions assets/kraken-wallet-cryptoicons/src/kbtc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/kraken-wallet-cryptoicons/src/linea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/kraken-wallet-network-icons/src/linea.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ declare module 'react-native-config' {
export default Config;
}

declare module '*.webp' {
const content: string;
export default content;
}

declare module 'react-native-password-strength-meter/src/utils/calculate-level' {
function calculateLevel<T extends object>(score: number, levels: T[]): T;
export default calculateLevel;
Expand Down
Loading

0 comments on commit 0de38c9

Please sign in to comment.