Skip to content

Commit

Permalink
PX-324 Release SDK 2.4.0 (#10)
Browse files Browse the repository at this point in the history
Integrates the new version of the SDK
  • Loading branch information
tl-keenen-charles authored May 5, 2023
1 parent 1bf6330 commit 4c6b9f3
Show file tree
Hide file tree
Showing 33 changed files with 111 additions and 35 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ android {
dependencies {
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugar_jdk_libs"

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.core:core-ktx:1.10.0'
implementation "androidx.appcompat:appcompat:$appcompat_version"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material-icons-extended:$compose_icons_version"
Expand All @@ -66,10 +66,10 @@ dependencies {
implementation "androidx.compose.material3:material3:$material3_compose_version"

implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.10.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0'

implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$json_serialization_version"
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:$retrofit2_kotlinx_serialization"

implementation "com.truelayer.payments:ui:2.3.0"
implementation "com.truelayer.payments:ui:2.4.0"
}
Binary file modified app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/src/main/java/com/truelayer/demo/ui/theme/Color.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.truelayer.demo.ui.theme

import androidx.compose.ui.graphics.Color

val Primary = Color(0xFF058ed8)
val PrimaryDark = Color(0xFF066da5)
val Primary = Color(0xFFF33B92)
val PrimaryDark = Color(0xFF1F1F25)
val SurfaceVariant = Color(0xFFdee3eb)
val SurfaceVariantDark = Color(0xFF42474e)
val Secondary = Color(0xFFF7AB1B)
18 changes: 9 additions & 9 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.07488281"
android:scaleY="0.07488281"
android:translateX="15.66"
android:translateY="15.66">
android:viewportWidth="1024"
android:viewportHeight="1024">
<group android:scaleX="0.71"
android:scaleY="0.71"
android:translateX="148.48"
android:translateY="148.48">
<path
android:pathData="M0,0h1024v1024h-1024z"
android:fillColor="#F18D8D"/>
<path
android:pathData="M0,0h1024v1024h-1024z"
android:fillColor="#058ED8"/>
android:fillColor="#F33B92"/>
<path
android:pathData="M411.3,651.8C438.3,651.8 451.4,638 451.4,619.7C451.4,582.3 393.9,593 393.9,577.1C393.9,571.1 399,567 408.2,567C418.4,567 429.2,570.5 437.3,578L449.1,562.4C439.2,553.3 426,548.5 410.1,548.5C386.6,548.5 372.2,562.3 372.2,578.9C372.2,616.5 429.8,604.4 429.8,622.1C429.8,627.8 424.1,633.2 412.4,633.2C398.6,633.2 387.6,627 380.6,619.7L369,635.9C378.3,645.3 392.1,651.8 411.3,651.8ZM504.8,650C536.2,650 557.9,630.2 557.9,600C557.9,569.9 536.2,550 504.8,550H465.4V650H504.8ZM504.8,631.3H486.7V568.7H504.8C525.4,568.7 536.2,582.3 536.2,600C536.2,617 524.6,631.3 504.8,631.3ZM658.3,650L615.9,596.9L655.6,550H629.4L594,594.7V550H572.7V650H594V619.3L601.8,610L632.1,650H658.3ZM359.6,833C391,833 412.7,813.2 412.7,783C412.7,752.9 391,733 359.6,733H320.2V833H359.6ZM359.6,814.3H341.5V751.7H359.6C380.2,751.7 391,765.3 391,783C391,800 379.4,814.3 359.6,814.3ZM461.1,834.8C472.4,834.8 483.8,831.3 491,824.8L482.6,812.5C477.9,817 469.4,819.7 463.2,819.7C450.9,819.7 443.6,812 442.4,802.8H496.2V798.7C496.2,775 481.5,758.8 459.9,758.8C437.9,758.8 422.4,775.7 422.4,796.7C422.4,820 439.1,834.8 461.1,834.8ZM477.8,790H442.1C443,782.8 448.1,773.9 459.9,773.9C472.5,773.9 477.3,783 477.8,790ZM618.7,833V780.7C618.7,765.8 610.7,758.8 597.4,758.8C586.3,758.8 576.7,765.3 572.5,772C569.8,763.7 563,758.8 552.4,758.8C541.3,758.8 531.7,765.7 528.7,770V760.5H509.6V833H528.7V784.3C531.5,780.2 537.1,775.7 543.7,775.7C551.5,775.7 554.5,780.5 554.5,787.3V833H573.7V784.1C576.4,780.2 581.9,775.7 588.7,775.7C596.5,775.7 599.5,780.5 599.5,787.3V833H618.7ZM670.6,834.8C694.6,834.8 709,817.4 709,796.7C709,776.2 694.6,758.8 670.6,758.8C646.8,758.8 632.4,776.2 632.4,796.7C632.4,817.4 646.8,834.8 670.6,834.8ZM670.6,817.8C658.8,817.8 652.2,808.1 652.2,796.7C652.2,785.5 658.8,775.7 670.6,775.7C682.5,775.7 689.2,785.5 689.2,796.7C689.2,808.1 682.5,817.8 670.6,817.8Z"
android:fillColor="#ffffff"/>
android:fillColor="#FFFFFF"/>
<path
android:pathData="M348.7,435.9L499.7,521.8C512.5,529.4 518.3,524.1 523.6,521.7L683.7,430C689.4,426.4 693.4,423.3 693.4,416.9C693.4,410.6 688.5,407.3 685.6,405.5L642.5,376.7L683.5,353C690.1,349.6 697.2,342.1 697.2,332.8V269.6C697.2,253.2 687.8,248 683.2,245.5C682.8,245.3 526.1,155 526.1,155C512.5,146.1 501.4,152 496.8,155L339.1,246.5C332.1,251.3 329.8,256.4 329.9,261.7C329.9,269.5 338.1,275.5 339.2,276.2L380.1,300.5L336.6,327C329.8,331.1 329.3,338.8 329.3,338.8L329.3,338.8C328.8,342.3 328.8,400.5 328.8,400.5C328.8,415.7 330.2,425.7 348.7,435.9ZM664.9,418.1L511.4,503.9L363.1,420.4L409.6,393.8L505.9,448.7C508.8,450.8 514.1,450.7 516.8,449.2L620.8,389.2L664.9,418.1ZM678,326.6L636.5,301.2L677.9,276.6L678,326.6ZM522.8,178.7L664.2,261L617.8,289.3L522.7,231.8L522.8,178.7ZM511.4,249.8L597.2,301.7L511.4,351.1C511.4,351.1 511.3,351.1 511.3,351.1L423.6,300.6L511.3,249.8H511.4ZM356.1,261.6L500.2,178.5V231.8L400.2,288.1L356.1,261.6ZM401.6,313.3L505.8,373.3C509.1,375.2 513.4,375.2 516.7,373.4L616.7,313.5L661.9,340.9L511.3,426.8L358,338.6L401.6,313.3ZM349.1,358.6L389.5,381.6L349.1,405V358.6Z"
android:fillColor="#F7AB1B"/>
android:fillColor="#FFFFFF"/>
</group>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 8 additions & 4 deletions app/src/main/res/values-v31/themes.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="Theme.SDKDemo" parent="Theme.Material3.DayNight">
<item name="colorPrimary">@color/tl_blue</item>
<item name="colorPrimaryDark">@color/tl_blue_dark</item>
<item name="android:windowSplashScreenBackground">@color/tl_blue</item>
<item name="colorPrimary">@color/magenta</item>
<item name="colorPrimaryDark">@color/magenta</item>
<item name="android:windowSplashScreenBackground">@color/magenta</item>
<!-- Status bar -->
<item name="android:windowLightStatusBar">true</item>
<item name="android:statusBarColor">?attr/colorSurface</item>
<!-- Action bar -->
<item name="actionBarStyle">@style/Widget.MaterialComponents.ActionBar.Surface</item>
</style>

<style name="Theme.SDKDemo.NoActionBar" parent="Theme.SDKDemo">
Expand Down
11 changes: 9 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="tl_blue">#058ed8</color>
<color name="tl_blue_dark">#066da5</color>
<!-- Brand Colors -->
<color name="magenta">#F33B92</color>
<color name="charcoal">#1F1F25</color>
<color name="lavender">#BBB9FB</color>
<color name="lavender_70">#CFCEFC</color>
<color name="lavender_110">#9B9BF3</color>
<color name="lavender_130">#7E7EE7</color>
<color name="semantic_red">#FF3855</color>
<color name="semantic_green">#00BF89</color>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#058ED8</color>
<color name="ic_launcher_background">#F33B92</color>
</resources>
9 changes: 7 additions & 2 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.SDKDemo" parent="Theme.Material3.DayNight">
<item name="colorPrimary">@color/tl_blue</item>
<item name="colorPrimaryDark">@color/tl_blue_dark</item>
<item name="colorPrimary">@color/magenta</item>
<item name="colorPrimaryDark">@color/magenta</item>
<!-- Status bar -->
<item name="android:windowLightStatusBar">true</item>
<item name="android:statusBarColor">?attr/colorSurface</item>
<!-- Action bar -->
<item name="actionBarStyle">@style/Widget.MaterialComponents.ActionBar.Surface</item>
</style>

<style name="Theme.SDKDemo.NoActionBar" parent="Theme.SDKDemo">
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
buildscript {
ext {
activity_compose_version="1.6.0"
activity_compose_version="1.7.1"
appcompat_version = "1.6.1"
compose_version = "1.3.3"
compose_icons_version = "1.3.1"
compose_compiler_version = "1.3.2"
compose_version = "1.4.2"
compose_icons_version = "1.4.2"
compose_compiler_version = "1.4.4"
json_serialization_version = "1.3.3"
kotlin_version = "1.7.20"
lifecycle_version = "2.5.1"
kotlin_version = "1.8.10"
lifecycle_version = "2.6.1"
material_version = "1.8.0"
retrofit2_kotlinx_serialization = "0.8.0"
retrofit2_kotlinx_serialization = "1.0.0"
material3_compose_version = "1.0.1"
desugar_jdk_libs = "1.2.2"
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.2' apply false
id 'com.android.library' version '7.4.2' apply false
id 'com.android.application' version '8.0.1' apply false
id 'com.android.library' version '8.0.1' apply false
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
}

Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jul 13 09:51:06 BST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
55 changes: 54 additions & 1 deletion truelayer_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c6b9f3

Please sign in to comment.