Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ios/RNTextSize.podspec → RNTextSize.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'json'
package = JSON.parse(File.read('../package.json'))
package = JSON.parse(File.read('./package.json'))

Pod::Spec.new do |s|
s.name = 'RNTextSize'
Expand All @@ -14,7 +14,7 @@ Pod::Spec.new do |s|
s.author = package['author']
s.platform = :ios, '9.0'
s.source = { :git => package['repository'], :tag => "v#{s.version}" }
s.source_files = '*.{h,m}'
s.source_files = 'ios/*.{h,m}'
s.requires_arc = true

s.dependency 'React'
Expand Down
26 changes: 14 additions & 12 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,29 @@ def safeExtGet(prop, fallback) {
return rootProject.ext.hasProperty(prop) ? rootProject.ext.get(prop) : fallback
}

def _buildToolsVersion = safeExtGet('buildToolsVersion', '28.0.3')
def _compileSdkVersion = safeExtGet('compileSdkVersion', 28)
def _targetSdkVersion = safeExtGet('targetSdkVersion', 28)
def _compileSdkVersion = safeExtGet('compileSdkVersion', 30)
def _targetSdkVersion = safeExtGet('targetSdkVersion', 30)
def _minSdkVersion = safeExtGet('minSdkVersion', 16)

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
// The Android Gradle plugin is only required when opening the android folder stand-alone.
// This avoids unnecessary downloads and potential conflicts when the library is included as a
// module dependency in an application project.
if (project == rootProject) {
repositories {
google()
}

dependencies {
classpath("com.android.tools.build:gradle:8.0.1")
}
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion _compileSdkVersion
buildToolsVersion _buildToolsVersion

defaultConfig {
minSdkVersion _minSdkVersion
Expand All @@ -43,15 +46,14 @@ android {
repositories {
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}

dependencies {
compileOnly 'com.facebook.react:react-native:+'
implementation 'com.facebook.react:react-native:+'
}

task customClean(type: Delete) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-text-size",
"version": "4.0.0-rc.1",
"version": "4.0.0-rc.2",
"description": "Measure text accurately before laying it out and get font information from your App",
"main": "index.js",
"keywords": [
Expand Down