mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 12:38:06 +00:00
Initial commit: Pezkuwi Wallet Android
Security hardened release: - Code obfuscation enabled (minifyEnabled=true, shrinkResources=true) - Sensitive files excluded (google-services.json, keystores) - Branch.io key moved to BuildConfig placeholder - Updated dependencies: OkHttp 4.12.0, Gson 2.10.1, BouncyCastle 1.77 - Comprehensive ProGuard rules for crypto wallet - Navigation 2.7.7, Lifecycle 2.7.0, ConstraintLayout 2.1.4
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_selected="true" android:color="@color/text_primary_on_content"/>
|
||||
<item android:color="@color/button_text" />
|
||||
</selector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape android:shape="rectangle"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="@dimen/border_radius" />
|
||||
|
||||
<solid android:color="@color/block_background" />
|
||||
|
||||
<stroke android:color="@color/container_border" android:width="0.5dp" />
|
||||
</shape>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
|
||||
<solid android:color="@color/button_background_secondary" />
|
||||
</shape>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="10dp" />
|
||||
|
||||
<solid android:color="@color/selected_dapp_category" />
|
||||
</shape>
|
||||
@@ -0,0 +1,22 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="44dp"
|
||||
android:height="44dp"
|
||||
android:viewportWidth="44"
|
||||
android:viewportHeight="44">
|
||||
<path
|
||||
android:pathData="M22,44C34.1503,44 44,34.1503 44,22C44,9.8497 34.1503,0 22,0C9.8497,0 0,9.8497 0,22C0,34.1503 9.8497,44 22,44ZM9.2784,31.9733H14.2913V11.1192H9.2784V31.9733ZM19.2529,11.1192V31.9733H26.1136C27.9183,31.9638 29.551,31.5341 31.0119,30.6843C32.4824,29.825 33.6188,28.6409 34.4209,27.1322C35.2324,25.614 35.6382,23.8999 35.6382,21.9903V21.0307C35.6287,19.14 35.2087,17.4356 34.3779,15.9173C33.5567,14.3896 32.4108,13.2103 30.9404,12.3796C29.4699,11.5393 27.8131,11.1192 25.9703,11.1192H19.2529ZM24.2802,28.1062V15.0006H25.9703C27.4503,15.0006 28.5771,15.5115 29.3505,16.5333C30.124,17.555 30.5106,19.0731 30.5106,21.0879V21.9903C30.5106,24.0146 30.124,25.5423 29.3505,26.5737C28.5771,27.5953 27.4695,28.1062 26.0276,28.1062H24.2802Z"
|
||||
android:fillType="evenOdd">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startY="0"
|
||||
android:startX="22"
|
||||
android:endY="44"
|
||||
android:endX="22"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFF50083"/>
|
||||
<item android:offset="1" android:color="#FF720497"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</vector>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<View
|
||||
android:id="@+id/itemDappShimerringIcon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="@drawable/bg_shimmering"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/itemDappShimerringTitle"
|
||||
android:layout_width="96dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:background="@drawable/bg_shimmering"
|
||||
app:layout_constraintBottom_toTopOf="@+id/itemDappShimerringSubTitle"
|
||||
app:layout_constraintStart_toEndOf="@+id/itemDappShimerringIcon"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="packed" />
|
||||
|
||||
<View
|
||||
android:id="@id/itemDappShimerringSubTitle"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="8dp"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:background="@drawable/bg_shimmering"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/itemDappShimerringIcon"
|
||||
app:layout_constraintTop_toBottomOf="@+id/itemDappShimerringTitle" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.facebook.shimmer.ShimmerFrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/bg_shimmering" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
</com.facebook.shimmer.ShimmerFrameLayout>
|
||||
|
||||
<com.facebook.shimmer.ShimmerFrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="34dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="14dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="@drawable/bg_shimmering" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<include
|
||||
layout="@layout/item_dapp_shimmering"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
|
||||
</com.facebook.shimmer.ShimmerFrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_primary_list_item"
|
||||
tools:background="@color/block_background"
|
||||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/itemDAppIcon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="@drawable/dapp_icon_background"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.0"
|
||||
tools:src="@drawable/ic_sub_id" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/itemDAppTitle"
|
||||
style="@style/TextAppearance.NovaFoundation.Regular.Body"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:maxLines="1"
|
||||
android:singleLine="true"
|
||||
android:textColor="@color/text_primary"
|
||||
app:layout_constraintBottom_toTopOf="@+id/itemDAppSubtitle"
|
||||
app:layout_constraintEnd_toStartOf="@+id/itemDappAction"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toEndOf="@id/itemDAppIcon"
|
||||
app:layout_constraintTop_toTopOf="@+id/itemDAppIcon"
|
||||
app:layout_constraintVertical_chainStyle="packed"
|
||||
tools:text="Astar" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/itemDAppSubtitleIcon"
|
||||
android:layout_width="16dp"
|
||||
android:layout_height="16dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintStart_toStartOf="@+id/itemDAppTitle"
|
||||
app:layout_constraintTop_toBottomOf="@+id/itemDAppTitle"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/itemDAppSubtitle"
|
||||
style="@style/TextAppearance.NovaFoundation.Regular.Footnote"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="2dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:ellipsize="end"
|
||||
android:includeFontPadding="false"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/text_secondary"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/itemDAppIcon"
|
||||
app:layout_constraintEnd_toStartOf="@+id/itemDappAction"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toEndOf="@+id/itemDAppSubtitleIcon"
|
||||
app:layout_constraintTop_toBottomOf="@+id/itemDAppTitle"
|
||||
app:layout_goneMarginStart="0dp"
|
||||
tools:text="Staking" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/itemDappFavorite"
|
||||
android:layout_width="12dp"
|
||||
android:layout_height="12dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:layout_marginBottom="38dp"
|
||||
android:src="@drawable/ic_favorite_heart_filled_20"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/itemDAppIcon"
|
||||
app:layout_constraintStart_toStartOf="@+id/itemDAppIcon"
|
||||
app:tint="@color/mimi_icon_favorite"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/itemDappAction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:paddingStart="10dp"
|
||||
android:paddingEnd="20dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:src="@drawable/ic_close" />
|
||||
</merge>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="Widget.Nova.DappCategory.Shimmering" parent="">
|
||||
<item name="android:layout_width">48dp</item>
|
||||
<item name="android:layout_height">10dp</item>
|
||||
<item name="android:background">@drawable/bg_shimmering</item>
|
||||
<item name="android:layout_marginEnd">32dp</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user