Skip to content

Commit

Permalink
v 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
am263129 committed May 4, 2022
0 parents commit 1d8dc13
Show file tree
Hide file tree
Showing 293 changed files with 10,497 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
57 changes: 57 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdk 32

defaultConfig {
applicationId "com.trust.walletclone"
minSdk 24
targetSdk 32
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.7.0-alpha01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation "com.trustwallet:wallet-core:2.6.16"
// implementation 'com.github.trustwallet:trust-web3-provider:SPM Support'
implementation "cash.z.ecc.android:kotlin-bip39:1.0.1"
implementation 'org.web3j:core:4.8.7-android'
implementation 'com.google.zxing:core:3.4.0'
implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.4'
implementation 'com.squareup.retrofit2:retrofit:2.6.1'
implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
implementation 'com.squareup.retrofit2:converter-scalars:2.3.0'
}
23 changes: 23 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# 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
-keep class wallet.core.jni.** { *; }
-keep class wallet.core.jni.proto.** { *; }
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.trust.walletclone

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.trust.walletclone", appContext.packageName)
}
}
84 changes: 84 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.trust.walletclone">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.TrustWalletClone"
android:usesCleartextTraffic="true">
<activity
android:name=".activity.WalletImportActivity"
android:exported="false" />
<activity
android:name=".activity.ReceiveTokenActivity"
android:exported="false" />
<activity
android:name=".activity.SecurityActivity"
android:exported="false" />
<activity
android:name=".activity.PhraseActivity"
android:exported="true" >
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>

<activity
android:name=".activity.BackupActivity"
android:exported="false" />
<activity
android:name=".activity.PasswordActivity"
android:exported="false" />
<activity
android:name=".activity.BrowserActivity"
android:exported="false"></activity>
<activity
android:name=".activity.LegalActivity"
android:exported="false" />
<activity
android:name=".activity.WalletCreateActivity"
android:exported="false" />
<activity
android:name=".activity.SplashActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activity.MainActivity"
android:exported="true" >
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->

<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
</activity>

<meta-data
android:name="preloaded_fonts"
android:resource="@array/preloaded_fonts" />
</application>

</manifest>
Binary file added app/src/main/assets/coin.db
Binary file not shown.
Binary file added app/src/main/assets/coin/10000070.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10000100.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10000118.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10000250.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10000553.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10000714.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10009000.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/1001.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/10042221.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/1023.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/1024.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/133.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/136.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/14.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/144.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/148.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/165.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/17.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/1729.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/175.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/178.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/19167.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/195.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/20.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/2017.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/2301.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/235.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/242.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/2718.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/283.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/3.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/304.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/313.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/330.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/354.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/397.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/42.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/425.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/457.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/459.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/461.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/5.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/500.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/501.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/508.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/52752.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/5718350.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/5741564.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/6060.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/61.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/74.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/818.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/820.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/889.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/931.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/bitcoin.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/bitcoin_cash.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/bnb.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/cosmos.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/eth.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/litecoin.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/polygon.webp
Binary file not shown.
Binary file added app/src/main/assets/coin/smart_bnb.webp
Binary file not shown.
Binary file added app/src/main/assets/dapp/beefy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/looksrare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/mcdex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/pancake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/powerpool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/refinable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/tranchess.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/venus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/assets/dapp/wazirx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions app/src/main/java/com/trust/walletclone/activity/BackupActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.trust.walletclone.activity

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.core.content.res.ResourcesCompat
import com.trust.walletclone.R
import com.trust.walletclone.databinding.ActivityBackupBinding

class BackupActivity : AppCompatActivity(){
private lateinit var binding: ActivityBackupBinding

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_backup)
}


}
Loading

0 comments on commit 1d8dc13

Please sign in to comment.