This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 640261a
Showing
389 changed files
with
15,996 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.idea | ||
.DS_Store | ||
/captures | ||
.externalNativeBuild | ||
|
||
### Android ### | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
*.iml | ||
*.swp | ||
*.swo | ||
|
||
# Files for the Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
/build | ||
app/release | ||
|
||
# Fastlane | ||
fastlane/report.xml | ||
|
||
# Local configuration file (sdk path, etc) | ||
/local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
### Android Patch ### | ||
gen-external-apklibs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
language: android | ||
sudo: false | ||
android: | ||
components: | ||
# Uncomment the lines below if you want to | ||
# use the latest revision of Android SDK Tools | ||
- tools | ||
- platform-tools | ||
|
||
# The BuildTools version used by your project | ||
- build-tools-26.0.2 | ||
|
||
# The SDK version used to compile your project | ||
- android-26 | ||
|
||
- extra-android-m2repository | ||
- extra-google-android-support | ||
|
||
# Specify at least one system image, | ||
# if you need to run emulator(s) during your tests | ||
- sys-img-x86-android-26 | ||
|
||
licenses: | ||
- 'android-sdk-preview-license-.+' | ||
- 'android-sdk-license-.+' | ||
- 'google-gdk-license-.+' | ||
|
||
install: | ||
- true | ||
|
||
script: | ||
- ./gradlew build | ||
|
||
after_success: | ||
- bash <(curl -s https://copilot.blackducksoftware.com/ci/travis/scripts/upload) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Trust - Ethereum Wallet for Android | ||
|
||
[![Build Status](https://travis-ci.org/TrustWallet/trust-wallet-android.svg?branch=master)](https://travis-ci.org/TrustWallet/trust-wallet-android) | ||
[![License](https://img.shields.io/badge/license-GPL3-green.svg?style=flat)](https://github.com/fastlane/fastlane/blob/master/LICENSE) | ||
|
||
[<img src="https://raw.githubusercontent.com/TrustWallet/trust-wallet-android-source/master/resources/android_cover.png">](https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp) | ||
|
||
[<img src=https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png height="88">](https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp) | ||
|
||
Welcome to Trust's open source Android app! | ||
|
||
Please read our post on why Android open source development harm our users: https://medium.com/@trustwallet/why-open-sourcing-android-app-could-be-a-harm-to-the-crypto-community-fb3ae1707dc6 | ||
|
||
Website: https://trustwalletapp.com | ||
|
||
Download Android version: https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp | ||
|
||
Blog: https://medium.com/@trustwallet | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'realm-android' | ||
|
||
|
||
android { | ||
compileSdkVersion 27 | ||
buildToolsVersion '26.0.2' | ||
defaultConfig { | ||
applicationId "com.random.pickyourown" | ||
minSdkVersion 18 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
vectorDrawables.useSupportLibrary = true | ||
multiDexEnabled = true | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
packagingOptions { | ||
exclude 'META-INF/NOTICE' // will not include NOTICE file | ||
exclude 'META-INF/LICENSE' // will not include LICENSE file | ||
// as noted by @Vishnuvathsan you may also need to include | ||
// variations on the file name. It depends on your dependencies. | ||
// Some other common variations on notice and license file names | ||
//exclude 'META-INF/notice' | ||
//exclude 'META-INF/notice.txt' | ||
//exclude 'META-INF/license' | ||
//exclude 'META-INF/license.txt' | ||
} | ||
lintOptions { | ||
abortOnError false | ||
} | ||
compileOptions { | ||
targetCompatibility 1.8 | ||
sourceCompatibility 1.8 | ||
} | ||
} | ||
|
||
project.ext { | ||
retrofitVersion = "2.3.0" | ||
okhttpVersion = "3.9.0" | ||
supportVersion = "27.0.2" | ||
web3jVersion = "3.0.1-android" | ||
gethVersion = "1.7.0" | ||
gsonVersion = "2.8.2" | ||
rxJavaVersion = "2.1.6" | ||
rxAndroidVersion = "2.0.1" | ||
daggerVersion = "2.11" | ||
} | ||
|
||
dependencies { | ||
// Etherium client | ||
implementation "org.web3j:core:$project.web3jVersion" | ||
implementation "org.ethereum:geth:$project.gethVersion" | ||
// Http client | ||
implementation "com.squareup.retrofit2:retrofit:$project.retrofitVersion" | ||
implementation "com.squareup.retrofit2:converter-gson:$project.retrofitVersion" | ||
implementation "com.squareup.retrofit2:adapter-rxjava2:$project.retrofitVersion" | ||
implementation "com.squareup.okhttp3:okhttp:$project.okhttpVersion" | ||
implementation "com.google.code.gson:gson:$project.gsonVersion" | ||
|
||
implementation "android.arch.lifecycle:runtime:1.0.3" | ||
implementation "android.arch.lifecycle:extensions:1.0.0" | ||
|
||
implementation "com.android.support:appcompat-v7:$project.supportVersion" | ||
implementation "com.android.support:design:$project.supportVersion" | ||
implementation "com.android.support:support-vector-drawable:$project.supportVersion" | ||
implementation "com.android.support:recyclerview-v7:$project.supportVersion" | ||
implementation "com.android.support:multidex:1.0.2" | ||
// Bar code scanning | ||
implementation "com.google.zxing:core:3.2.1" | ||
implementation "com.google.android.gms:play-services-vision:11.8.0" | ||
// Sugar | ||
implementation "com.android.support.constraint:constraint-layout:1.0.2" | ||
implementation "com.github.apl-devs:appintro:v4.2.2" | ||
implementation 'com.romandanylyk:pageindicatorview:1.0.0' | ||
implementation "com.journeyapps:zxing-android-embedded:3.2.0@aar" | ||
// ReactiveX | ||
implementation "io.reactivex.rxjava2:rxjava:$project.rxJavaVersion" | ||
implementation "io.reactivex.rxjava2:rxandroid:$project.rxAndroidVersion" | ||
// Dagger 2 | ||
// Dagger core | ||
implementation "com.google.dagger:dagger:$project.daggerVersion" | ||
annotationProcessor "com.google.dagger:dagger-compiler:$project.daggerVersion" | ||
// Dagger Android | ||
implementation "com.google.dagger:dagger-android-support:$project.daggerVersion" | ||
annotationProcessor "com.google.dagger:dagger-android-processor:$project.daggerVersion" | ||
// if you are not using support library, include this instead | ||
implementation "com.google.dagger:dagger-android:$project.daggerVersion" | ||
// Tests | ||
testImplementation "junit:junit:4.12" | ||
androidTestImplementation("com.android.support.test.espresso:espresso-core:2.2.2", { | ||
exclude group: "com.android.support", module: "support-annotations" | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public. | ||
#Thu Dec 21 15:16:27 KRAT 2017 | ||
#Wed Dec 13 10:43:28 KRAT 2017 | ||
apiSecret=8973b953bafdeaf177a2bae935a2bfba6158575b615f75305af25cf01a6adac6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /home/marat/Android/Sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
27 changes: 27 additions & 0 deletions
27
app/src/androidTest/java/com/wallet/crypto/trustapp/EthereumNetworkRepositoryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.wallet.crypto.trustapp; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import com.wallet.crypto.trustapp.repository.EthereumNetworkRepository; | ||
import com.wallet.crypto.trustapp.repository.EthereumNetworkRepositoryType; | ||
import com.wallet.crypto.trustapp.repository.PreferenceRepositoryType; | ||
import com.wallet.crypto.trustapp.repository.SharedPreferenceRepository; | ||
|
||
import org.junit.Before; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class EthereumNetworkRepositoryTest { | ||
|
||
private EthereumNetworkRepositoryType networkRepository; | ||
|
||
@Before | ||
public void setUp() { | ||
Context context = InstrumentationRegistry.getTargetContext(); | ||
PreferenceRepositoryType preferenceRepositoryType = new SharedPreferenceRepository(context); | ||
networkRepository = new EthereumNetworkRepository(preferenceRepositoryType); | ||
} | ||
|
||
} |
Oops, something went wrong.