From 2dffa01b3fa819c1c7b2493105baa4eb1be95f1b Mon Sep 17 00:00:00 2001 From: Anton Krasovsky Date: Sat, 11 Aug 2018 00:20:40 +0100 Subject: [PATCH] Update to support React Native 0.56 --- TextToSpeech.podspec | 4 ++-- android/build.gradle | 23 +++++++++++++++++------ package.json | 2 +- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/TextToSpeech.podspec b/TextToSpeech.podspec index d9bc964..f4afddc 100644 --- a/TextToSpeech.podspec +++ b/TextToSpeech.podspec @@ -1,13 +1,13 @@ Pod::Spec.new do |s| s.name = "TextToSpeech" - s.version = "1.4.1" + s.version = "2.0.0" s.summary = "React Native Text-To-Speech library for Android and iOS" s.homepage = "https://github.com/ak1394/react-native-tts" s.license = "MIT" s.authors = "Anton Krasovsky" - s.platform = :ios, "7.0" + s.platform = :ios, "9.0" s.source = { :git => "https://github.com/ak1394/react-native-tts.git" } diff --git a/android/build.gradle b/android/build.gradle index 4a989a8..1f53b45 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,20 +1,31 @@ +buildscript { + repositories { + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:1.3.1' + } +} + apply plugin: 'com.android.library' android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion 26 + buildToolsVersion "26.0.3" defaultConfig { minSdkVersion 16 - targetSdkVersion 23 + targetSdkVersion 26 versionCode 1 versionName "1.0" } } +repositories { + mavenCentral() +} + dependencies { - compile fileTree(include: ['*.jar'], dir: 'libs') - compile 'com.android.support:support-v4:23.0.1' - compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.facebook.react:react-native:+' } diff --git a/package.json b/package.json index 0e8f320..3288699 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-tts", - "version": "1.5.2", + "version": "2.0.0", "description": "React Native Text-To-Speech module for Android and iOS", "main": "index.js", "repository": {