Skip to content

Commit

Permalink
Initial publication of blocktrail-wallet source code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensayshi committed Sep 21, 2015
0 parents commit f04bfd2
Show file tree
Hide file tree
Showing 3,859 changed files with 1,317,428 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "src/lib"
}
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules/
appconfig.json

platforms/android/assets/www/*
platforms/ios/www/*
platforms/ios/cordova/console.log
platforms/android/CordovaLib/build
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Change Log

###Next Version


###Version 1.0.14
- fixed iOS 9 bug affecting navigation between screens

###Version 1.0.13
- permission pruning: we've removed all the unnecessary permissions
- fixed numeric keyboard bug on certain Samsung devices

###Version 1.0.12
- fixed app rating button on "About" screen
- for users experiencing issues with saving the backup during setup, we've added the option to save it later once we've fixed the bug properly
- made side-menu scrollable for small mobile screens
- various minor UI bug fixes

## Version 1.0.8
- added support for bitcoin URIs - click on a bitcoin link to launch the app and send to the linked address
- fixed jittery scrolling on receive screen

## Version 1.0.7
- complete UI redesign
- wallets V2
- promo code redeem screen
- syncing contacts to web wallet (available soon)
661 changes: 661 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Blocktrail Mobile Wallet
Take back control of your Bitcoin!
BlockTrail's Bitcoin wallet features unparalleled security through MultiSignature technology, keeping you in full control of your coins at all time. Transactions are signed on your device so we never see your private keys.

With our HD wallets you can create an unlimited number of addresses to help protect your privacy without the need for multiple private key backups. Our system will also generate new addresses for change and fund requests automatically.

Access your wallet anywhere, anytime; use the mobile app when you're on the go, or log in to the web-interface when at home or in the office.

- 2-of-3 Multisig technology so you always remain in control of your coins
- HD wallet technology allowing you to create an unlimited number of addresses
- Send and Receive bitcoin easily with contacts on your phone
- Live update for new transactions and your balance
- View your full transaction history with the price at the time of the transaction
- Personalise your account so your friends can quickly identify you
- QR code scanning with bitcoin URI support
- Send requests via email and SMS
- PIN protection
- Anonymous accounts, for your privacy
- Transactions signed locally on your device
- Backup document incase the worst happens
- Local currency display using live price updates

## Install
```
npm install -g ionic-cli gulp
npm install
cp appconfig.example.json appconfig.json
gulp
```

## Run
```
ionic run android|ios
```

## Release Process
### Android
```
rm -rf platforms/android/build/outputs/apk/* # clean up old builds
ionic build --release android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/blocktrail.keystore /work/blocktrail-wallet/platforms/android/build/outputs/apk/android-release-unsigned.apk blocktrail
zipalign -v 4 /work/blocktrail-wallet/platforms/android/build/outputs/apk/android-release-unsigned.apk /work/blocktrail-wallet/platforms/android/build/outputs/apk/blocktrail.apk
```

### iOS
In xCode build for archiving: Product > Archive
Select new build in Archives Organiser and submitt to app store (optionally validate before hand)

### tips
Remember to remove the old signed, zipped APK before running zipalign, it doesn't overrite the file.

## License
The Blocktrail Wallet source code is released under the GNU Affero General Public License.
The Blocktrail Logo and any other images / graphics are not part of this.
See [LICENSE.md](LICENSE.md).
19 changes: 19 additions & 0 deletions appconfig.default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"DEBUG": false,
"MINIFY": true,
"TESTNET": true,
"NG_CORDOVA_MOCKS": false,
"POUCHDB_DRIVER": null,
"API_HOST": "api.blocktrail.com",
"API_HTTPS": true,

// default ionic apps keys for usage stats logging in development
"IO_CONFIG": {
"app_id": "ee6eae44",
"api_key": "9e0747befc483f602b04ba0f938db9422800d917d25b1ee9"
},

"DEFAULT_IDENTIFIER": "blocktrail-wallet",

"NULL": null // just here so we can have a trailing , on every line
}
5 changes: 5 additions & 0 deletions appconfig.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"DEBUG": true,
"MINIFY": false,
"TESTNET": true
}
12 changes: 12 additions & 0 deletions appconfig.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"DEBUG": false,
"MINIFY": true,
"TESTNET": false,

"IO_CONFIG": {
"app_id": "3dadf3bf",
"api_key": "3b518a9f046fb61498ed39695700a1a2c6052260a729a376"
},

"NULL": null // just here so we can have a trailing , on every line
}
25 changes: 25 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "blocktrail-wallet",
"private": "true",
"dependencies": {
"blocktrail-sdk": "[email protected]:blocktrail/blocktrail-sdk-nodejs.git#e12e5a4",
"ionic": "1.0.1",
"pouchdb": "[email protected]:blocktrail/pouchdb.git#blocktrail",
"q": "1.2.0",
"angular-moment": "~0.10.0",
"browserify-cryptojs": "~0.3.1",
"ngCordova": "[email protected]:blocktrail/ng-cordova.git#blocktrail",
"angular-qr": "*",
"angular-translate": "~2.7.0",
"libphonenumber": "~0.9.0",
"ngImgCrop": "~0.3.2",
"intl-tel-input": "~6.0.0"
},
"resolutions": {
"angular": ">= 1.2.23"
},
"devDependencies": {
"ionic-service-core": "~0.1.10",
"ionic-service-analytics": "~0.2.5"
}
}
78 changes: 78 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.blocktrail.mywallet" version="1.0.14" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>BlockTrail Wallet</name>
<description>
Your personal Bitcoin wallet, powered by Blocktrail
</description>
<author email="[email protected]" href="https://www.blocktrail.com/">
BlockTrail Team
</author>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashMaintainAspectRatio" value="true"/>
<preference name="orientation" value="portrait"/>
<platform name="android">
<preference name="SplashScreenDelay" value="10000"/>
<preference name="AutoHideSplashScreen" value="true"/>
<preference name="android-minSdkVersion" value="17"/>
<preference name="android-targetSdkVersion" value="22"/>
</platform>
<platform name="ios">
<preference name="AutoHideSplashScreen" value="false"/>
<preference name="ShowSplashScreenSpinner" value="false"/>
</platform>
<platform name="browser">
<preference name="SplashScreen" value="resources/android/splash/drawable-port-xhdpi-screen.png"/>
<preference name="SplashScreenDelay" value="10000"/>
<preference name="SplashScreenBackgroundColor" value="green"/>
<preference name="ShowSplashScreen" value="true"/>
<preference name="SplashScreenWidth" value="600"/>
<preference name="SplashScreenHeight" value="300"/>
</platform>
<platform name="android">
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.9.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.9.png" density="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.9.png" density="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.9.png" density="port-xxxhdpi"/>
</platform>
<platform name="ios">
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
<icon src="resources/ios/icon/[email protected]" width="114" height="114"/>
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
<icon src="resources/ios/icon/[email protected]" width="80" height="80"/>
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
<icon src="resources/ios/icon/[email protected]" width="100" height="100"/>
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
<icon src="resources/ios/icon/[email protected]" width="180" height="180"/>
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
<icon src="resources/ios/icon/[email protected]" width="144" height="144"/>
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
<icon src="resources/ios/icon/[email protected]" width="152" height="152"/>
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
<icon src="resources/ios/icon/[email protected]" width="58" height="58"/>
<icon src="resources/ios/icon/[email protected]" width="87" height="87"/>
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
</platform>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
</widget>
43 changes: 43 additions & 0 deletions engine/cordova-android-c0.6.1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.DS_Store
default.properties
gen
assets/www/cordova.js
local.properties
proguard.cfg
proguard.cfg
proguard-project.txt
/framework/lib
/framework/build
/framework/bin
/framework/assets/www/.DS_Store
/framework/assets/www/cordova-*.js
/framework/assets/www/phonegap-*.js
/framework/libs
/framework/javadoc-public
/framework/javadoc-private
/test/libs
example
/test/bin
/test/assets/www/.tmp*
/test/assets/www/cordova.js
/test/gradle
/test/gradlew
/test/gradlew.bat
/test/build
.gradle
tmp/**
.metadata
tmp/**/*
Thumbs.db
Desktop.ini
*.tmp
*.bak
*.swp
*.class
*.jar
# IntelliJ IDEA files
*.iml
.idea
npm-debug.log
/node_modules
/framework/build
2 changes: 2 additions & 0 deletions engine/cordova-android-c0.6.1/.jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/node_modules/*
bin/templates/project/*
10 changes: 10 additions & 0 deletions engine/cordova-android-c0.6.1/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"node": true
, "bitwise": true
, "undef": true
, "trailing": true
, "quotmark": true
, "indent": 4
, "unused": "vars"
, "latedef": "nofunc"
}
8 changes: 8 additions & 0 deletions engine/cordova-android-c0.6.1/.reviewboardrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Settings for post-review (used for uploading diffs to reviews.apache.org).
#
GUESS_FIELDS = True
OPEN_BROWSER = True
TARGET_GROUPS = 'cordova'
REVIEWBOARD_URL = 'http://reviews.apache.org'

6 changes: 6 additions & 0 deletions engine/cordova-android-c0.6.1/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: android
sudo: false
install: npm install
script:
- npm test
- npm run test-build
38 changes: 38 additions & 0 deletions engine/cordova-android-c0.6.1/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!--
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
-->

# Contributing to Apache Cordova

Anyone can contribute to Cordova. And we need your contributions.

There are multiple ways to contribute: report bugs, improve the docs, and
contribute code.

For instructions on this, start with the
[contribution overview](http://cordova.apache.org/#contribute).

The details are explained there, but the important items are:
- Sign and submit an Apache ICLA (Contributor License Agreement).
- Have a Jira issue open that corresponds to your contribution.
- Run the tests so your patch doesn't break existing functionality.

We look forward to your contributions!

Loading

0 comments on commit f04bfd2

Please sign in to comment.