Browse Source
REF: Created BlueAddressInput FIX: Invalid bip21 REF: Change Blue Wallet strings to BlueWallet FIX: Many layout bug fixes. ADD: Autofocus on number inputs OPS: Upgraded to React Native 0.58 FIX: Fixes for LND viewpulltorefresh
Marcos Rodriguez Vélez
6 years ago
committed by
Igor Korsakov
63 changed files with 4401 additions and 2216 deletions
@ -0,0 +1,21 @@ |
|||
import { NavigationActions } from 'react-navigation'; |
|||
|
|||
let _navigator; |
|||
|
|||
function setTopLevelNavigator(navigatorRef) { |
|||
_navigator = navigatorRef; |
|||
} |
|||
|
|||
function navigate(routeName, params) { |
|||
_navigator.dispatch( |
|||
NavigationActions.navigate({ |
|||
routeName, |
|||
params, |
|||
}), |
|||
); |
|||
} |
|||
|
|||
export default { |
|||
navigate, |
|||
setTopLevelNavigator, |
|||
}; |
@ -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, |
|||
) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,5 @@ |
|||
#Sat Jan 19 02:29:20 GMT 2019 |
|||
distributionBase=GRADLE_USER_HOME |
|||
distributionPath=wrapper/dists |
|||
zipStoreBase=GRADLE_USER_HOME |
|||
zipStorePath=wrapper/dists |
|||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip |
|||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip |
|||
|
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
presets: ['module:metro-react-native-babel-preset'], |
|||
}; |
@ -0,0 +1,79 @@ |
|||
import { LegacyWallet } from './legacy-wallet'; |
|||
import { HDSegwitP2SHWallet } from './hd-segwit-p2sh-wallet'; |
|||
import { LightningCustodianWallet } from './lightning-custodian-wallet'; |
|||
import { HDLegacyBreadwalletWallet } from './hd-legacy-breadwallet-wallet'; |
|||
import { HDLegacyP2PKHWallet } from './hd-legacy-p2pkh-wallet'; |
|||
import { WatchOnlyWallet } from './watch-only-wallet'; |
|||
|
|||
export default class WalletGradient { |
|||
static defaultGradients = ['#65ceef', '#68bbe1']; |
|||
static watchOnlyWallet = ['#7d7d7d', '#4a4a4a']; |
|||
static legacyWallet = ['#40fad1', '#15be98']; |
|||
static hdLegacyP2PKHWallet = ['#e36dfa', '#bd10e0']; |
|||
static hdLegacyBreadWallet = ['#fe6381', '#f99c42']; |
|||
static hdSegwitP2SHWallet = ['#c65afb', '#9053fe']; |
|||
static lightningCustodianWallet = ['#f1be07', '#f79056']; |
|||
static createWallet = ['#eef0f4', '#eef0f4']; |
|||
|
|||
static gradientsFor(type) { |
|||
let gradient; |
|||
switch (type) { |
|||
case WatchOnlyWallet.type: |
|||
gradient = WalletGradient.watchOnlyWallet; |
|||
break; |
|||
case LegacyWallet.type: |
|||
gradient = WalletGradient.legacyWallet; |
|||
break; |
|||
case HDLegacyP2PKHWallet.type: |
|||
gradient = WalletGradient.hdLegacyP2PKHWallet; |
|||
break; |
|||
case HDLegacyBreadwalletWallet.type: |
|||
gradient = WalletGradient.hdLegacyBreadWallet; |
|||
break; |
|||
case HDSegwitP2SHWallet.type: |
|||
gradient = WalletGradient.hdSegwitP2SHWallet; |
|||
break; |
|||
case LightningCustodianWallet.type: |
|||
gradient = WalletGradient.lightningCustodianWallet; |
|||
break; |
|||
case 'CreateWallet': |
|||
gradient = WalletGradient.createWallet; |
|||
break; |
|||
default: |
|||
gradient = WalletGradient.defaultGradients; |
|||
break; |
|||
} |
|||
return gradient; |
|||
} |
|||
|
|||
static headerColorFor(type) { |
|||
let gradient; |
|||
switch (type) { |
|||
case WatchOnlyWallet.type: |
|||
gradient = WalletGradient.watchOnlyWallet; |
|||
break; |
|||
case LegacyWallet.type: |
|||
gradient = WalletGradient.legacyWallet; |
|||
break; |
|||
case HDLegacyP2PKHWallet.type: |
|||
gradient = WalletGradient.hdLegacyP2PKHWallet; |
|||
break; |
|||
case HDLegacyBreadwalletWallet.type: |
|||
gradient = WalletGradient.hdLegacyBreadWallet; |
|||
break; |
|||
case HDSegwitP2SHWallet.type: |
|||
gradient = WalletGradient.hdSegwitP2SHWallet; |
|||
break; |
|||
case LightningCustodianWallet.type: |
|||
gradient = WalletGradient.lightningCustodianWallet; |
|||
break; |
|||
case 'CreateWallet': |
|||
gradient = WalletGradient.createWallet; |
|||
break; |
|||
default: |
|||
gradient = WalletGradient.defaultGradients; |
|||
break; |
|||
} |
|||
return gradient[0]; |
|||
} |
|||
} |
File diff suppressed because it is too large
File diff suppressed because it is too large
Loading…
Reference in new issue