Skip to content

Commit cbbb498

Browse files
committed
handle newlines in sdk-version.txt
1 parent 5ae15de commit cbbb498

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common-methods.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ext {
1111
LEANPLUM_FCM_ARTIFACT_ID = 'leanplum-fcm'
1212
LEANPLUM_GCM_ARTIFACT_ID = 'leanplum-gcm'
1313
LEANPLUM_LOCATION_ARTIFACT_ID = 'leanplum-location'
14-
def sdkVersion = file('../sdk-version.txt').text
14+
def sdkVersion = file('../sdk-version.txt').text.replace('\n','')
1515
LEANPLUM_SDK_VERSION = "$sdkVersion"
1616

1717
PROGUARD_FILES = 'proguard-rules.pro'

sdk-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2.2
1+
4.2.2

0 commit comments

Comments
 (0)