From 1aa1baff1b5949015b51f81ab5236e3a4a1b5838 Mon Sep 17 00:00:00 2001 From: ew534679 <166439613+ew534679@users.noreply.github.com> Date: Tue, 10 Sep 2024 16:19:55 -0500 Subject: [PATCH] remove unused dependencies --- smartcar-auth/build.gradle | 5 +-- smartcar-auth/gradle.properties | 2 +- .../smartcar/sdk/SmartcarCodeReceiver.java | 44 ------------------- 3 files changed, 2 insertions(+), 49 deletions(-) delete mode 100644 smartcar-auth/src/main/java/com/smartcar/sdk/SmartcarCodeReceiver.java diff --git a/smartcar-auth/build.gradle b/smartcar-auth/build.gradle index b154ef4..67b41e6 100644 --- a/smartcar-auth/build.gradle +++ b/smartcar-auth/build.gradle @@ -61,12 +61,9 @@ android { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation "androidx.appcompat:appcompat:1.7.0" implementation "androidx.core:core-ktx:1.13.1" - implementation "androidx.activity:activity-ktx:1.9.1" - implementation "org.jetbrains.kotlinx:kotlinx-rpc-krpc-server:0.2.2" + implementation "androidx.activity:activity-ktx:1.9.2" implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1" - implementation "com.google.code.gson:gson:2.11.0" androidTestImplementation 'androidx.annotation:annotation:1.8.2' androidTestImplementation 'androidx.test:runner:1.6.2' androidTestImplementation 'androidx.test:rules:1.6.1' diff --git a/smartcar-auth/gradle.properties b/smartcar-auth/gradle.properties index 48f050d..87e5007 100644 --- a/smartcar-auth/gradle.properties +++ b/smartcar-auth/gradle.properties @@ -1,4 +1,4 @@ libGroup=com.smartcar.sdk libName=smartcar-auth -libVersion=4.0.0 +libVersion=4.0.1 libDescription=Smartcar Android Auth SDK diff --git a/smartcar-auth/src/main/java/com/smartcar/sdk/SmartcarCodeReceiver.java b/smartcar-auth/src/main/java/com/smartcar/sdk/SmartcarCodeReceiver.java deleted file mode 100644 index a3b13b8..0000000 --- a/smartcar-auth/src/main/java/com/smartcar/sdk/SmartcarCodeReceiver.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2017-present, Smartcar, Inc. All rights reserved. - - * You are hereby granted a limited, non-exclusive, worldwide, royalty-free - * license to use, copy, modify, and distribute this software in source code or - * binary form, for the limited purpose of this software's use in connection - * with the web services and APIs provided by Smartcar. - * - * As with any software that integrates with the Smartcar platform, your use of - * this software is subject to the Smartcar Developer Agreement. This copyright - * 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. - */ - -package com.smartcar.sdk; - -import android.content.Intent; -import android.net.Uri; -import android.os.Bundle; - -import androidx.appcompat.app.AppCompatActivity; - -/** - * - * Activity that receives the response sent to the custom URL scheme defined by the application. - */ -public class SmartcarCodeReceiver extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - Intent intent = getIntent(); - Uri uri = intent.getData(); - SmartcarAuth.receiveResponse(uri); - finish(); - } - -} \ No newline at end of file