diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 1087013..4f2996f 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,35 +1,7 @@ -# -# TRUECALLER SDK COPYRIGHT, TRADEMARK AND LICENSE NOTICE -# -# Copyright © 2015-Present, True Software Scandinavia AB. All rights reserved. -# -# Truecaller and Truecaller SDK are registered trademark of True Software Scandinavia AB. -# -# In accordance with the Truecaller SDK Agreement available -# here (https://developer.truecaller.com/Truecaller-sdk-product-license-agreement-RoW.pdf) -# accepted and agreed between You and Your respective Truecaller entity, You are granted a -# limited, non-exclusive, non-sublicensable, non-transferable, royalty-free, license to use the -# Truecaller SDK Product in object code form only, solely for the purpose of using -# the Truecaller SDK Product with the applications and APIs provided by Truecaller. -# -# THE TRUECALLER SDK PRODUCT IS PROVIDED BY THE COPYRIGHT HOLDER AND AUTHOR “AS IS”, -# WITHOUT WARRANTY OF ANY KIND,EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED -# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, -# SOFTWARE QUALITY,PERFORMANCE,DATA ACCURACY AND NON-INFRINGEMENT. IN NO -# EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, -# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR -# OTHER LIABILITY INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -# INTERRUPTION: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,WHETHER IN -# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THE TRUECALLER SDK PRODUCT OR THE USE -# OR OTHER DEALINGS IN THE TRUECALLER SDK PRODUCT, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. AS A RESULT, BY INTEGRATING THE TRUECALLER SDK -# PRODUCT YOU ARE ASSUMING THE ENTIRE RISK AS TO ITS QUALITY AND PERFORMANCE. -# - +#Thu Aug 11 22:22:19 IST 2022 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip + diff --git a/android/src/main/kotlin/com/truecallersdk/TruecallerSdkPlugin.kt b/android/src/main/kotlin/com/truecallersdk/TruecallerSdkPlugin.kt index ac49141..2885ce4 100644 --- a/android/src/main/kotlin/com/truecallersdk/TruecallerSdkPlugin.kt +++ b/android/src/main/kotlin/com/truecallersdk/TruecallerSdkPlugin.kt @@ -143,7 +143,7 @@ public class TruecallerSdkPlugin : FlutterPlugin, MethodCallHandler, EventChanne TruecallerSDK.getInstance() .requestVerification(countryISO, phoneNumber, verificationCallback, it as FragmentActivity) } catch (e: RuntimeException) { - result.error(e.message, e.message, null) + result.error(e.message?: "unavailable", e.message?: "unavailable", null) } } ?: result.error("UNAVAILABLE", "Activity not available.", null) diff --git a/pubspec.yaml b/pubspec.yaml index e75f8bc..350ed8a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -25,4 +25,6 @@ flutter: platforms: android: package: com.truecallersdk + pluginClass: TruecallerSdkPlugin + ios: pluginClass: TruecallerSdkPlugin \ No newline at end of file