diff --git a/.gitignore b/.gitignore index d57fcf7..aa724b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,50 +1,15 @@ +*.iml .gradle /local.properties -/.idea/workspace.xml +/.idea/caches /.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store /build /captures - -# generated files -bin/ -gen/ - -# Local configuration file (sdk path, etc) +.externalNativeBuild +.cxx local.properties - -# Windows thumbnail db -Thumbs.db - -# OSX files -.DS_Store - -# Eclipse project files -.classpath -.project - -# Android Studio -*.iml - -#NDK -obj/ - -# Built application files -*.apk -*.ap_ - -# Files for the Dalvik VM -*.dex - -# Java class files -*.class - -# Gradle files -.gradle/ -build/ -/*/build/ - -# Proguard folder generated by Eclipse -proguard/ - -# Log Files -*.log \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..eaf91e2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..a99f850 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +Cybersource \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..7d7ec2e --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..93e6e10 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..afd8433 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..9661ac7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index eea54ae..0000000 --- a/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Authorize.Net - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/README.md b/README.md deleted file mode 100644 index 347c3a5..0000000 --- a/README.md +++ /dev/null @@ -1,48 +0,0 @@ -# Sample Application for the Android SDK - -## Usage - -### Clone this repository -```` -git clone https://github.com/CyberSource/cybersource-android-samples -```` - -### Open the project in Android Studio and Run. -Run through the sample mobile application and at the end you will get an encrypted payment blob which you can then pass back to your payment server without any PCI concerns. This payment blob is then passed to a standard CyberSource payment authorization API request. - -## Using the Payment Blob -Once you have the secure payment blob from our SDK you can post that up to your mobile backend/payment server (without incurring any additional PCI burden) and make a standard CyberSource API call. For example, to authorize that card: - -````xml - - - - - - test_paymentech_001 - POgqicGXdrqafap/7WzT/KcYVzuN/aW4u1cuRKawBvOg== - - - - - -ccAuthService_run=true -merchantID=test_paymentech_001 -merchantReferenceCode=23AEE8CB6B62EE2AF07 -encryptedPayment_data=eyJkYXRhIjoiN2kxTUxjWEIxRXZoMjk2emRJdnFyY1hZXC93SG9zRE9jbXdVRE1PRG5tdk9xWXJZWXlpTXhmRzc0bTRWbndTblwvN1FEdjlYUm9kZHNxalc4aXpoTVA4cXpDOG5HVkhMa3ZES2ZVYVNqWnB3WURKS2JaYk5JNklVcE1QUjlPWmJ2NFJ5VE5tbUprcmlVU25JbFwvbVRobWprbkh1eXpwc3FFRzdVR21wcXNkOHczaG50ZStvaUpSU2pBbmtraTI1T2hmUFlqTU9CUE9BaHNFMUsxM0Npc3dNWTA4dEN5K1V3VEhuakY5MThyTFVkXC9jMnpKTW9BOEFjN042SHFPQklWa2plUVwvd25rOGkyeGNcL3lubE51bTlMMlR5RGRnRE42SHNYWjNRb3V6Z053cTZyTGFSYjU5WGpMSlVXUmRDcU5namtFTjZlUkE0Mk94NElubDlQc0RKblRpbzZ4SDVcLyIsImhlYWRlciI6eyJhcHBsaWNhdGlvbkRhdGEiOiI0Nzc1Njk2NDNEMzczMDM4MzI2MzM5MzEzNjJENjI2MjY0NjMyRDM0MzY2NTY1MkQzODM0MzEzMDJENjM2NDM1MzEzNDMxMzQzNTMzNjUzNjM1M0I0NDYxNzQ2NTU0Njk2RDY1M0QzMjMwMzEzNTJEMzEzMjJEMzEzNDU0MzIzMDNBMzMzMTNBMzAzNTJFMzEzMjMzMzAzOTMwMzI1QSIsImVwaGVtZXJhbFB1YmxpY0tleSI6Ik1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRU80V2prRzFLYXlpbmhlRGY5QXFtRVJCeHRxMHdiaFBmS25qcUNCZ0w4RWw4NU45c3JBWVdhaEE1d29iaHFTQ0VQazc5Q0xKNGhRVXU1bENIem43ZVdBPT0iLCJwdWJsaWNLZXlIYXNoIjoieXRLSjgwc3JjWXppQnVwNzRcL0R5K3RTV1FQSENwXC9ZbkFabGhcL3lXOFk3ND0iLCJ0cmFuc2FjdGlvbklkIjoiNDUwMTI1MDYyMDA3NTAwMDAwMTUxOSJ9LCJzaWduYXR1cmVBbGdJbmZvIjoiU0hBMjU2Iiwic2lnbmF0dXJlIjoiWitjbWg4UXNzNUdQMzUrOEEzTkZOcUNNRThFbVBqb0xiKzRqUWpIVDdGMD0iLCJ2ZXJzaW9uIjoiMS4xLjEuMiJ9 -paymentSolution=004 -billTo_firstName=Brian -billTo_lastName=McManus -billTo_city=Bellevue -billTo_country=US -billTo_email=bmc@mail.com -billTo_state=WA -billTo_street1=213 yiui St -billTo_postalCode=98103 -purchaseTotals_currency=USD -purchaseTotals_grandTotalAmount=200.23 - - - - -```` diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..3bf2584 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,38 @@ +plugins { + id 'com.android.application' +} + +android { + compileSdk 31 + + defaultConfig { + applicationId "com.cybersource.webcheckout" + minSdk 21 + targetSdk 31 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation 'com.android.support:appcompat-v7:28.0.0' + testImplementation 'junit:junit:' + androidTestImplementation 'com.android.support.test:runner:1.0.2' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' + implementation 'com.google.android.gms:play-services-wallet:18.1.3' + implementation 'com.cybersource:inappsdk:+' +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# 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 \ No newline at end of file diff --git a/app/src/androidTest/java/com/cybersource/webcheckout/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/cybersource/webcheckout/ExampleInstrumentedTest.java new file mode 100644 index 0000000..ec322b4 --- /dev/null +++ b/app/src/androidTest/java/com/cybersource/webcheckout/ExampleInstrumentedTest.java @@ -0,0 +1,25 @@ +package com.cybersource.webcheckout; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.cybersource.webcheckout", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml similarity index 91% rename from src/main/AndroidManifest.xml rename to app/src/main/AndroidManifest.xml index 6d573ba..66246d7 100644 --- a/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,7 +10,8 @@ + android:screenOrientation="portrait" + android:exported="true"> diff --git a/src/main/assets/certificates/mobileic3com.cer b/app/src/main/assets/certificates/mobileic3com.cer similarity index 100% rename from src/main/assets/certificates/mobileic3com.cer rename to app/src/main/assets/certificates/mobileic3com.cer diff --git a/src/main/assets/certificates/mobiletestic3com.cer b/app/src/main/assets/certificates/mobiletestic3com.cer similarity index 100% rename from src/main/assets/certificates/mobiletestic3com.cer rename to app/src/main/assets/certificates/mobiletestic3com.cer diff --git a/src/main/java/com/cybersource/webcheckout/MainActivity.java b/app/src/main/java/com/cybersource/webcheckout/MainActivity.java similarity index 96% rename from src/main/java/com/cybersource/webcheckout/MainActivity.java rename to app/src/main/java/com/cybersource/webcheckout/MainActivity.java index 6bb9961..5241f58 100644 --- a/src/main/java/com/cybersource/webcheckout/MainActivity.java +++ b/app/src/main/java/com/cybersource/webcheckout/MainActivity.java @@ -3,15 +3,16 @@ import android.app.Activity; import android.content.Intent; import android.os.Handler; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentManager; import android.os.Bundle; -import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; +import androidx.appcompat.app.AppCompatActivity; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; + import com.cybersource.webcheckout.fragments.MainFragment; import com.cybersource.webcheckout.fragments.WebCheckoutFragment; import com.cybersource.webcheckout.receivers.MessageSignatureResultReceiver; diff --git a/src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java b/app/src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java similarity index 98% rename from src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java rename to app/src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java index 7e021cd..5a10eb9 100644 --- a/src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java +++ b/app/src/main/java/com/cybersource/webcheckout/fragments/MainFragment.java @@ -3,10 +3,6 @@ import android.app.Activity; import android.content.Intent; import android.os.Bundle; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentManager; import android.text.Spannable; import android.text.SpannableStringBuilder; import android.util.Base64; @@ -20,6 +16,11 @@ import android.widget.TextView; import android.widget.Toast; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentManager; + import com.cybersource.webcheckout.R; import com.cybersource.webcheckout.utils.GooglePay; import com.google.android.gms.common.api.Status; diff --git a/src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java b/app/src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java similarity index 97% rename from src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java rename to app/src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java index c3e8f8d..1554201 100644 --- a/src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java +++ b/app/src/main/java/com/cybersource/webcheckout/fragments/MessageSignatureHeadlessFragment.java @@ -2,11 +2,12 @@ import android.os.Bundle; -import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import androidx.fragment.app.Fragment; + import com.cybersource.inappsdk.connectors.inapp.InAppSDKApiClient; import com.cybersource.inappsdk.connectors.inapp.receivers.TransactionResultReceiver; diff --git a/src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java b/app/src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java similarity index 99% rename from src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java rename to app/src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java index a35560a..7609bb5 100644 --- a/src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java +++ b/app/src/main/java/com/cybersource/webcheckout/fragments/WebCheckoutFragment.java @@ -3,7 +3,6 @@ import android.app.ProgressDialog; import android.os.Bundle; -import android.support.v4.app.Fragment; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; @@ -17,6 +16,8 @@ import android.widget.TextView; import android.widget.Toast; +import androidx.fragment.app.Fragment; + import com.cybersource.inappsdk.common.error.SDKError; import com.cybersource.inappsdk.common.exceptions.SDKInvalidCardException; import com.cybersource.inappsdk.connectors.inapp.InAppSDKApiClient; diff --git a/src/main/java/com/cybersource/webcheckout/receivers/MessageSignatureResultReceiver.java b/app/src/main/java/com/cybersource/webcheckout/receivers/MessageSignatureResultReceiver.java similarity index 100% rename from src/main/java/com/cybersource/webcheckout/receivers/MessageSignatureResultReceiver.java rename to app/src/main/java/com/cybersource/webcheckout/receivers/MessageSignatureResultReceiver.java diff --git a/src/main/java/com/cybersource/webcheckout/services/MessageSignatureService.java b/app/src/main/java/com/cybersource/webcheckout/services/MessageSignatureService.java similarity index 100% rename from src/main/java/com/cybersource/webcheckout/services/MessageSignatureService.java rename to app/src/main/java/com/cybersource/webcheckout/services/MessageSignatureService.java diff --git a/src/main/java/com/cybersource/webcheckout/signature/MessageSignature.java b/app/src/main/java/com/cybersource/webcheckout/signature/MessageSignature.java similarity index 100% rename from src/main/java/com/cybersource/webcheckout/signature/MessageSignature.java rename to app/src/main/java/com/cybersource/webcheckout/signature/MessageSignature.java diff --git a/src/main/java/com/cybersource/webcheckout/utils/GooglePay.java b/app/src/main/java/com/cybersource/webcheckout/utils/GooglePay.java similarity index 100% rename from src/main/java/com/cybersource/webcheckout/utils/GooglePay.java rename to app/src/main/java/com/cybersource/webcheckout/utils/GooglePay.java diff --git a/src/main/java/com/cybersource/webcheckout/utils/GooglePayConstants.java b/app/src/main/java/com/cybersource/webcheckout/utils/GooglePayConstants.java similarity index 100% rename from src/main/java/com/cybersource/webcheckout/utils/GooglePayConstants.java rename to app/src/main/java/com/cybersource/webcheckout/utils/GooglePayConstants.java diff --git a/src/main/res/anim/cycle_2.xml b/app/src/main/res/anim/cycle_2.xml similarity index 100% rename from src/main/res/anim/cycle_2.xml rename to app/src/main/res/anim/cycle_2.xml diff --git a/src/main/res/anim/shake_error.xml b/app/src/main/res/anim/shake_error.xml similarity index 100% rename from src/main/res/anim/shake_error.xml rename to app/src/main/res/anim/shake_error.xml diff --git a/src/main/res/drawable-hdpi/abstract_steps.png b/app/src/main/res/drawable-hdpi/abstract_steps.png similarity index 100% rename from src/main/res/drawable-hdpi/abstract_steps.png rename to app/src/main/res/drawable-hdpi/abstract_steps.png diff --git a/src/main/res/drawable-hdpi/drawer_shadow.9.png b/app/src/main/res/drawable-hdpi/drawer_shadow.9.png similarity index 100% rename from src/main/res/drawable-hdpi/drawer_shadow.9.png rename to app/src/main/res/drawable-hdpi/drawer_shadow.9.png diff --git a/src/main/res/drawable-hdpi/fab_ic_add.png b/app/src/main/res/drawable-hdpi/fab_ic_add.png similarity index 100% rename from src/main/res/drawable-hdpi/fab_ic_add.png rename to app/src/main/res/drawable-hdpi/fab_ic_add.png diff --git a/src/main/res/drawable-hdpi/ic_add_circle_outline_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_add_circle_outline_white_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_add_circle_outline_white_24dp.png rename to app/src/main/res/drawable-hdpi/ic_add_circle_outline_white_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_add_shopping_cart_black_48dp.png b/app/src/main/res/drawable-hdpi/ic_add_shopping_cart_black_48dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_add_shopping_cart_black_48dp.png rename to app/src/main/res/drawable-hdpi/ic_add_shopping_cart_black_48dp.png diff --git a/src/main/res/drawable-hdpi/ic_add_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-hdpi/ic_add_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_add_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-hdpi/ic_add_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_close_grey600_24dp.png b/app/src/main/res/drawable-hdpi/ic_close_grey600_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_close_grey600_24dp.png rename to app/src/main/res/drawable-hdpi/ic_close_grey600_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_close_grey600_36dp.png b/app/src/main/res/drawable-hdpi/ic_close_grey600_36dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_close_grey600_36dp.png rename to app/src/main/res/drawable-hdpi/ic_close_grey600_36dp.png diff --git a/src/main/res/drawable-hdpi/ic_credit_card_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_credit_card_black_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_credit_card_black_24dp.png rename to app/src/main/res/drawable-hdpi/ic_credit_card_black_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_credit_card_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_credit_card_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_credit_card_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_credit_card_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_credit_card_white_24dp.9.png b/app/src/main/res/drawable-hdpi/ic_credit_card_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_credit_card_white_24dp.9.png rename to app/src/main/res/drawable-hdpi/ic_credit_card_white_24dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_credit_card_white_48dp.png b/app/src/main/res/drawable-hdpi/ic_credit_card_white_48dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_credit_card_white_48dp.png rename to app/src/main/res/drawable-hdpi/ic_credit_card_white_48dp.png diff --git a/src/main/res/drawable-hdpi/ic_drawer.png b/app/src/main/res/drawable-hdpi/ic_drawer.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_drawer.png rename to app/src/main/res/drawable-hdpi/ic_drawer.png diff --git a/src/main/res/drawable-hdpi/ic_highlight_remove_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_highlight_remove_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_highlight_remove_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_highlight_remove_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_history_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_history_black_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_history_black_24dp.png rename to app/src/main/res/drawable-hdpi/ic_history_black_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_lock_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_lock_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_lock_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_lock_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_lock_outline_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_lock_outline_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_lock_outline_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_lock_outline_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_loyalty_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_loyalty_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_loyalty_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_loyalty_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_loyalty_grey600_48dp.9.png b/app/src/main/res/drawable-hdpi/ic_loyalty_grey600_48dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_loyalty_grey600_48dp.9.png rename to app/src/main/res/drawable-hdpi/ic_loyalty_grey600_48dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_settings_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_settings_black_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_settings_black_24dp.png rename to app/src/main/res/drawable-hdpi/ic_settings_black_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-hdpi/ic_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-hdpi/ic_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_subject_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_subject_white_24dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_subject_white_24dp.png rename to app/src/main/res/drawable-hdpi/ic_subject_white_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_today_grey600_36dp.9.png b/app/src/main/res/drawable-hdpi/ic_today_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_today_grey600_36dp.9.png rename to app/src/main/res/drawable-hdpi/ic_today_grey600_36dp.9.png diff --git a/src/main/res/drawable-hdpi/ic_view_list_black_48dp.png b/app/src/main/res/drawable-hdpi/ic_view_list_black_48dp.png similarity index 100% rename from src/main/res/drawable-hdpi/ic_view_list_black_48dp.png rename to app/src/main/res/drawable-hdpi/ic_view_list_black_48dp.png diff --git a/src/main/res/drawable-hdpi/mpos_bigcheckmark.png b/app/src/main/res/drawable-hdpi/mpos_bigcheckmark.png similarity index 100% rename from src/main/res/drawable-hdpi/mpos_bigcheckmark.png rename to app/src/main/res/drawable-hdpi/mpos_bigcheckmark.png diff --git a/src/main/res/drawable-mdpi/drawer_shadow.9.png b/app/src/main/res/drawable-mdpi/drawer_shadow.9.png similarity index 100% rename from src/main/res/drawable-mdpi/drawer_shadow.9.png rename to app/src/main/res/drawable-mdpi/drawer_shadow.9.png diff --git a/src/main/res/drawable-mdpi/fab_ic_add.png b/app/src/main/res/drawable-mdpi/fab_ic_add.png similarity index 100% rename from src/main/res/drawable-mdpi/fab_ic_add.png rename to app/src/main/res/drawable-mdpi/fab_ic_add.png diff --git a/src/main/res/drawable-mdpi/ic_add_shopping_cart_black_48dp.png b/app/src/main/res/drawable-mdpi/ic_add_shopping_cart_black_48dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_add_shopping_cart_black_48dp.png rename to app/src/main/res/drawable-mdpi/ic_add_shopping_cart_black_48dp.png diff --git a/src/main/res/drawable-mdpi/ic_add_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-mdpi/ic_add_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_add_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-mdpi/ic_add_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_close_grey600_24dp.png b/app/src/main/res/drawable-mdpi/ic_close_grey600_24dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_close_grey600_24dp.png rename to app/src/main/res/drawable-mdpi/ic_close_grey600_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_credit_card_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_credit_card_black_24dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_credit_card_black_24dp.png rename to app/src/main/res/drawable-mdpi/ic_credit_card_black_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_credit_card_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_credit_card_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_credit_card_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_credit_card_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_credit_card_white_24dp.9.png b/app/src/main/res/drawable-mdpi/ic_credit_card_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_credit_card_white_24dp.9.png rename to app/src/main/res/drawable-mdpi/ic_credit_card_white_24dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_drawer.png b/app/src/main/res/drawable-mdpi/ic_drawer.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_drawer.png rename to app/src/main/res/drawable-mdpi/ic_drawer.png diff --git a/src/main/res/drawable-mdpi/ic_highlight_remove_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_highlight_remove_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_highlight_remove_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_highlight_remove_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_history_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_history_black_24dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_history_black_24dp.png rename to app/src/main/res/drawable-mdpi/ic_history_black_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_lock_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_lock_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_lock_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_lock_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_lock_outline_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_lock_outline_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_lock_outline_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_lock_outline_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_loyalty_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_loyalty_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_loyalty_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_loyalty_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_loyalty_grey600_48dp.9.png b/app/src/main/res/drawable-mdpi/ic_loyalty_grey600_48dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_loyalty_grey600_48dp.9.png rename to app/src/main/res/drawable-mdpi/ic_loyalty_grey600_48dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_settings_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_settings_black_24dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_settings_black_24dp.png rename to app/src/main/res/drawable-mdpi/ic_settings_black_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-mdpi/ic_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-mdpi/ic_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_today_grey600_36dp.9.png b/app/src/main/res/drawable-mdpi/ic_today_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_today_grey600_36dp.9.png rename to app/src/main/res/drawable-mdpi/ic_today_grey600_36dp.9.png diff --git a/src/main/res/drawable-mdpi/ic_view_list_black_48dp.png b/app/src/main/res/drawable-mdpi/ic_view_list_black_48dp.png similarity index 100% rename from src/main/res/drawable-mdpi/ic_view_list_black_48dp.png rename to app/src/main/res/drawable-mdpi/ic_view_list_black_48dp.png diff --git a/src/main/res/drawable-mdpi/mpos_bigcheckmark.png b/app/src/main/res/drawable-mdpi/mpos_bigcheckmark.png similarity index 100% rename from src/main/res/drawable-mdpi/mpos_bigcheckmark.png rename to app/src/main/res/drawable-mdpi/mpos_bigcheckmark.png diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/res/drawable-xhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/drawer_shadow.9.png rename to app/src/main/res/drawable-xhdpi/drawer_shadow.9.png diff --git a/src/main/res/drawable-xhdpi/fab_ic_add.png b/app/src/main/res/drawable-xhdpi/fab_ic_add.png similarity index 100% rename from src/main/res/drawable-xhdpi/fab_ic_add.png rename to app/src/main/res/drawable-xhdpi/fab_ic_add.png diff --git a/src/main/res/drawable-xhdpi/googlepay_button_background_image.9.png b/app/src/main/res/drawable-xhdpi/googlepay_button_background_image.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/googlepay_button_background_image.9.png rename to app/src/main/res/drawable-xhdpi/googlepay_button_background_image.9.png diff --git a/src/main/res/drawable-xhdpi/googlepay_button_background_image_focused.9.png b/app/src/main/res/drawable-xhdpi/googlepay_button_background_image_focused.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/googlepay_button_background_image_focused.9.png rename to app/src/main/res/drawable-xhdpi/googlepay_button_background_image_focused.9.png diff --git a/src/main/res/drawable-xhdpi/googlepay_button_background_image_pressed.9.png b/app/src/main/res/drawable-xhdpi/googlepay_button_background_image_pressed.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/googlepay_button_background_image_pressed.9.png rename to app/src/main/res/drawable-xhdpi/googlepay_button_background_image_pressed.9.png diff --git a/src/main/res/drawable-xhdpi/ic_add_shopping_cart_black_48dp.png b/app/src/main/res/drawable-xhdpi/ic_add_shopping_cart_black_48dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_add_shopping_cart_black_48dp.png rename to app/src/main/res/drawable-xhdpi/ic_add_shopping_cart_black_48dp.png diff --git a/src/main/res/drawable-xhdpi/ic_add_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-xhdpi/ic_add_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_add_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_add_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_close_grey600_24dp.png b/app/src/main/res/drawable-xhdpi/ic_close_grey600_24dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_close_grey600_24dp.png rename to app/src/main/res/drawable-xhdpi/ic_close_grey600_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_close_grey600_36dp.png b/app/src/main/res/drawable-xhdpi/ic_close_grey600_36dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_close_grey600_36dp.png rename to app/src/main/res/drawable-xhdpi/ic_close_grey600_36dp.png diff --git a/src/main/res/drawable-xhdpi/ic_credit_card_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_credit_card_black_24dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_credit_card_black_24dp.png rename to app/src/main/res/drawable-xhdpi/ic_credit_card_black_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_credit_card_white_24dp.9.png b/app/src/main/res/drawable-xhdpi/ic_credit_card_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_credit_card_white_24dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_credit_card_white_24dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_drawer.png b/app/src/main/res/drawable-xhdpi/ic_drawer.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_drawer.png rename to app/src/main/res/drawable-xhdpi/ic_drawer.png diff --git a/src/main/res/drawable-xhdpi/ic_highlight_remove_grey600_36dp.9.png b/app/src/main/res/drawable-xhdpi/ic_highlight_remove_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_highlight_remove_grey600_36dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_highlight_remove_grey600_36dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_history_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_history_black_24dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_history_black_24dp.png rename to app/src/main/res/drawable-xhdpi/ic_history_black_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_lock_grey600_36dp.9.png b/app/src/main/res/drawable-xhdpi/ic_lock_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_lock_grey600_36dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_lock_grey600_36dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_lock_outline_grey600_36dp.9.png b/app/src/main/res/drawable-xhdpi/ic_lock_outline_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_lock_outline_grey600_36dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_lock_outline_grey600_36dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_loyalty_grey600_36dp.9.png b/app/src/main/res/drawable-xhdpi/ic_loyalty_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_loyalty_grey600_36dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_loyalty_grey600_36dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_loyalty_grey600_48dp.9.png b/app/src/main/res/drawable-xhdpi/ic_loyalty_grey600_48dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_loyalty_grey600_48dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_loyalty_grey600_48dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_settings_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_settings_black_24dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_settings_black_24dp.png rename to app/src/main/res/drawable-xhdpi/ic_settings_black_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-xhdpi/ic_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_today_grey600_36dp.9.png b/app/src/main/res/drawable-xhdpi/ic_today_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_today_grey600_36dp.9.png rename to app/src/main/res/drawable-xhdpi/ic_today_grey600_36dp.9.png diff --git a/src/main/res/drawable-xhdpi/ic_view_list_black_48dp.png b/app/src/main/res/drawable-xhdpi/ic_view_list_black_48dp.png similarity index 100% rename from src/main/res/drawable-xhdpi/ic_view_list_black_48dp.png rename to app/src/main/res/drawable-xhdpi/ic_view_list_black_48dp.png diff --git a/src/main/res/drawable-xhdpi/mpos_bigcheckmark.png b/app/src/main/res/drawable-xhdpi/mpos_bigcheckmark.png similarity index 100% rename from src/main/res/drawable-xhdpi/mpos_bigcheckmark.png rename to app/src/main/res/drawable-xhdpi/mpos_bigcheckmark.png diff --git a/src/main/res/drawable-xhdpi/white_visa_256.9.png b/app/src/main/res/drawable-xhdpi/white_visa_256.9.png similarity index 100% rename from src/main/res/drawable-xhdpi/white_visa_256.9.png rename to app/src/main/res/drawable-xhdpi/white_visa_256.9.png diff --git a/src/main/res/drawable-xxhdpi/drawer_shadow.9.png b/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/drawer_shadow.9.png rename to app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png diff --git a/src/main/res/drawable-xxhdpi/fab_ic_add.png b/app/src/main/res/drawable-xxhdpi/fab_ic_add.png similarity index 100% rename from src/main/res/drawable-xxhdpi/fab_ic_add.png rename to app/src/main/res/drawable-xxhdpi/fab_ic_add.png diff --git a/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_black_48dp.png b/app/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_black_48dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_add_shopping_cart_black_48dp.png rename to app/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_black_48dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_add_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_add_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_close_grey600_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_close_grey600_24dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_close_grey600_24dp.png rename to app/src/main/res/drawable-xxhdpi/ic_close_grey600_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_close_grey600_36dp.png b/app/src/main/res/drawable-xxhdpi/ic_close_grey600_36dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_close_grey600_36dp.png rename to app/src/main/res/drawable-xxhdpi/ic_close_grey600_36dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_credit_card_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_credit_card_black_24dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_credit_card_black_24dp.png rename to app/src/main/res/drawable-xxhdpi/ic_credit_card_black_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_credit_card_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_credit_card_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_credit_card_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_credit_card_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_credit_card_white_24dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_credit_card_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_credit_card_white_24dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_credit_card_white_24dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_drawer.png b/app/src/main/res/drawable-xxhdpi/ic_drawer.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_drawer.png rename to app/src/main/res/drawable-xxhdpi/ic_drawer.png diff --git a/src/main/res/drawable-xxhdpi/ic_highlight_remove_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_highlight_remove_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_highlight_remove_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_highlight_remove_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_history_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_history_black_24dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_history_black_24dp.png rename to app/src/main/res/drawable-xxhdpi/ic_history_black_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_lock_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_lock_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_lock_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_lock_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_lock_outline_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_lock_outline_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_lock_outline_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_lock_outline_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_loyalty_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_48dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_48dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_loyalty_grey600_48dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_loyalty_grey600_48dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_settings_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_settings_black_24dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_settings_black_24dp.png rename to app/src/main/res/drawable-xxhdpi/ic_settings_black_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_shopping_cart_white_24dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_shopping_cart_white_24dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_shopping_cart_white_24dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_shopping_cart_white_24dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_today_grey600_36dp.9.png b/app/src/main/res/drawable-xxhdpi/ic_today_grey600_36dp.9.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_today_grey600_36dp.9.png rename to app/src/main/res/drawable-xxhdpi/ic_today_grey600_36dp.9.png diff --git a/src/main/res/drawable-xxhdpi/ic_view_list_black_48dp.png b/app/src/main/res/drawable-xxhdpi/ic_view_list_black_48dp.png similarity index 100% rename from src/main/res/drawable-xxhdpi/ic_view_list_black_48dp.png rename to app/src/main/res/drawable-xxhdpi/ic_view_list_black_48dp.png diff --git a/src/main/res/drawable-xxhdpi/mpos_bigcheckmark.png b/app/src/main/res/drawable-xxhdpi/mpos_bigcheckmark.png similarity index 100% rename from src/main/res/drawable-xxhdpi/mpos_bigcheckmark.png rename to app/src/main/res/drawable-xxhdpi/mpos_bigcheckmark.png diff --git a/src/main/res/drawable/googlepay_button_background.xml b/app/src/main/res/drawable/googlepay_button_background.xml similarity index 100% rename from src/main/res/drawable/googlepay_button_background.xml rename to app/src/main/res/drawable/googlepay_button_background.xml diff --git a/src/main/res/drawable/googlepay_button_content.xml b/app/src/main/res/drawable/googlepay_button_content.xml similarity index 100% rename from src/main/res/drawable/googlepay_button_content.xml rename to app/src/main/res/drawable/googlepay_button_content.xml diff --git a/src/main/res/drawable/googlepay_button_overlay.xml b/app/src/main/res/drawable/googlepay_button_overlay.xml similarity index 100% rename from src/main/res/drawable/googlepay_button_overlay.xml rename to app/src/main/res/drawable/googlepay_button_overlay.xml diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml similarity index 100% rename from src/main/res/layout/activity_main.xml rename to app/src/main/res/layout/activity_main.xml diff --git a/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml similarity index 100% rename from src/main/res/layout/fragment_main.xml rename to app/src/main/res/layout/fragment_main.xml diff --git a/src/main/res/layout/fragment_web_checkout.xml b/app/src/main/res/layout/fragment_web_checkout.xml similarity index 100% rename from src/main/res/layout/fragment_web_checkout.xml rename to app/src/main/res/layout/fragment_web_checkout.xml diff --git a/src/main/res/layout/googlepay_button.xml b/app/src/main/res/layout/googlepay_button.xml similarity index 100% rename from src/main/res/layout/googlepay_button.xml rename to app/src/main/res/layout/googlepay_button.xml diff --git a/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml similarity index 100% rename from src/main/res/menu/menu_main.xml rename to app/src/main/res/menu/menu_main.xml diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..7f60ab0 --- /dev/null +++ b/app/src/main/res/values-night/themes.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml similarity index 100% rename from src/main/res/values-w820dp/dimens.xml rename to app/src/main/res/values-w820dp/dimens.xml diff --git a/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml similarity index 100% rename from src/main/res/values/colors.xml rename to app/src/main/res/values/colors.xml diff --git a/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml similarity index 100% rename from src/main/res/values/dimens.xml rename to app/src/main/res/values/dimens.xml diff --git a/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml similarity index 100% rename from src/main/res/values/strings.xml rename to app/src/main/res/values/strings.xml diff --git a/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml similarity index 100% rename from src/main/res/values/styles.xml rename to app/src/main/res/values/styles.xml diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..7f60ab0 --- /dev/null +++ b/app/src/main/res/values/themes.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/test/java/com/cybersource/webcheckout/ExampleUnitTest.java b/app/src/test/java/com/cybersource/webcheckout/ExampleUnitTest.java new file mode 100644 index 0000000..18f2057 --- /dev/null +++ b/app/src/test/java/com/cybersource/webcheckout/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.cybersource.webcheckout; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index dcf954f..2106b82 100644 --- a/build.gradle +++ b/build.gradle @@ -1,55 +1,17 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { - jcenter() - maven { - url 'https://maven.google.com/' - name 'Google' - } + google() + mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.2' + classpath "com.android.tools.build:gradle:7.0.2" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } -allprojects { - repositories { - jcenter() - maven { - url 'https://maven.google.com/' - name 'Google' - } - } -} - -apply plugin: 'com.android.application' - -android { - compileSdkVersion 27 - - defaultConfig { - applicationId "com.visa.webcheckout" - /* Google Payment API is not supported in SDK versions lower than 19. This example requires - version 24 due to use of newer constructs like Optional. */ - minSdkVersion 24 - targetSdkVersion 27 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'com.android.support:appcompat-v7:27.1.1' - implementation 'com.android.support:design:27.1.1' - implementation 'com.cybersource:inappsdk:+' - implementation 'com.google.android.gms:play-services-wallet:16.0.1' -} +task clean(type: Delete) { + delete rootProject.buildDir +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..cd57ed2 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,15 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +android.useAndroidX=true +android.enableJetifier=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..f337e33 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue Nov 09 23:21:53 EET 2021 +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..ac1b06f --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/proguard-rules.pro b/proguard-rules.pro deleted file mode 100644 index a7f3f0e..0000000 --- a/proguard-rules.pro +++ /dev/null @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in C:\Users\fzubair\AppData\Local\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 *; -#} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..3bb10bb --- /dev/null +++ b/settings.gradle @@ -0,0 +1,10 @@ +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + jcenter() // Warning: this repository is going to shut down soon + } +} +rootProject.name = "Cybersource" +include ':app' diff --git a/src/androidTest/java/com/visa/webcheckout/ApplicationTest.java b/src/androidTest/java/com/visa/webcheckout/ApplicationTest.java deleted file mode 100644 index 1ea21f7..0000000 --- a/src/androidTest/java/com/visa/webcheckout/ApplicationTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.cybersource.webcheckout; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git a/src/main/res/mipmap-hdpi/ic_launcher.png b/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index cde69bc..0000000 Binary files a/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/src/main/res/mipmap-mdpi/ic_launcher.png b/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index c133a0c..0000000 Binary files a/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/src/main/res/mipmap-xhdpi/ic_launcher.png b/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index bfa42f0..0000000 Binary files a/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/src/main/res/mipmap-xxhdpi/ic_launcher.png b/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 324e72c..0000000 Binary files a/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ