Skip to content

Commit d2de993

Browse files
committed
v1.0.0-beta.4 Compatible with globals
1 parent 643aa8a commit d2de993

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changes
22

3+
### v1.0.0-beta.4
4+
- Compatible with globals for flexible configuration
5+
36
### v1.0.0-alpha.8
47
- Suppport for `includeFontPadding`
58
- Using gradle 2.2.3

android/build.gradle

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
def DEF_BUILD_TOOLS_VERSION = '27.0.3'
2+
def DEF_COMPILE_SDK_VERSION = 26
3+
def DEF_MIN_SDK_VERSION = 16
4+
def DEF_TARGET_SDK_VERSION = 26
5+
6+
def _buildToolsVersion = rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEF_BUILD_TOOLS_VERSION
7+
def _compileSdkVersion = rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEF_COMPILE_SDK_VERSION
8+
def _minSdkVersion = rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEF_MIN_SDK_VERSION
9+
def _targetSdkVersion = rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEF_TARGET_SDK_VERSION
110

211
buildscript {
312
repositories {
@@ -12,12 +21,12 @@ buildscript {
1221
apply plugin: 'com.android.library'
1322

1423
android {
15-
compileSdkVersion 26
16-
buildToolsVersion "27.0.3"
24+
compileSdkVersion _compileSdkVersion
25+
buildToolsVersion _buildToolsVersion
1726

1827
defaultConfig {
19-
minSdkVersion 16
20-
targetSdkVersion 26
28+
minSdkVersion _minSdkVersion
29+
targetSdkVersion _targetSdkVersion
2130
versionCode 1
2231
versionName "1.0"
2332
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-text-size",
3-
"version": "1.0.0-beta.3",
3+
"version": "1.0.0-beta.4",
44
"description": "Measure text height and width without laying it out.",
55
"main": "index.js",
66
"types": "./index.d.ts",

0 commit comments

Comments
 (0)