Skip to content

Commit

Permalink
Support XMR Swap
Browse files Browse the repository at this point in the history
  • Loading branch information
WooKeyWallet committed Aug 28, 2020
1 parent 2270df1 commit 5f18146
Show file tree
Hide file tree
Showing 77 changed files with 5,152 additions and 174 deletions.
15 changes: 13 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlinx-serialization'

static def computeVersionCode() {
110
111
}

static def computeVersionName() {
return "1.1.0"
return "2.0.0"
}

android {
Expand Down Expand Up @@ -39,6 +40,11 @@ android {
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

androidExtensions {
experimental = true
}
Expand Down Expand Up @@ -96,4 +102,9 @@ dependencies {
implementation 'androidx.biometric:biometric:1.0.1'

implementation 'com.github.ihsg:PatternLocker:2.5.6'

implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.5.0"
implementation 'com.squareup.okhttp3:logging-interceptor:3.12.2'

}
40 changes: 40 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,43 @@
-dontwarn androidx.**
-keep class androidx.** { *; }
-keep interface androidx.** { *; }

# Retrofit does reflection on generic parameters. InnerClasses is required to use Signature and
# EnclosingMethod is required to use InnerClasses.
-keepattributes Signature, InnerClasses, EnclosingMethod

# Retrofit does reflection on method and parameter annotations.
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations

# Retain service method parameters when optimizing.
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}

# Ignore annotation used for build tooling.
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

# Ignore JSR 305 annotations for embedding nullability information.
-dontwarn javax.annotation.**

# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
-dontwarn kotlin.Unit

# Top-level functions that can only be used by Kotlin.
-dontwarn retrofit2.KotlinExtensions
-dontwarn retrofit2.KotlinExtensions$*

# With R8 full mode, it sees no subtypes of Retrofit interfaces since they are created with a Proxy
# and replaces all potential values with null. Explicitly keeping the interfaces prevents this.
-if interface * { @retrofit2.http.* <methods>; }
-keep,allowobfuscation interface <1>

-keepattributes *Annotation*, InnerClasses
-dontnote kotlinx.serialization.SerializationKt
-keep,includedescriptorclasses class io.wookey.wallet.**$$serializer { *; } # <-- change package name to your app's
-keepclassmembers class io.wookey.wallet.** { # <-- change package name to your app's
*** Companion;
}
-keepclasseswithmembers class io.wookey.wallet.** { # <-- change package name to your app's
kotlinx.serialization.KSerializer serializer(...);
}
Loading

0 comments on commit 5f18146

Please sign in to comment.