Skip to content

Commit 44c63d8

Browse files
authored
Merge pull request #80 from Petrakeas/petrakeas/bump-version-1-4-1
Bump version to 1.4.1
2 parents fd8567f + 43fe5a5 commit 44c63d8

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

TransifexNativeSDK/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ buildscript {
1616
]
1717
ext {
1818
sdkVersionCode = 11 // version code for txsdk
19-
sdkVersion = '1.4.0' // version for txsdk and common
19+
sdkVersion = '1.4.1' // version for txsdk and common
2020
pomGroupID = "com.transifex.txnative" // pom group id for txsdk and common
2121

22-
cliVersion = '1.4.0' // clitool version
22+
cliVersion = '1.4.1' // clitool version
2323
}
2424
repositories {
2525
google()

TransifexNativeSDK/common/src/main/java/com/transifex/common/CDSHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void onTranslationFetched(@Nullable InputStream inputStream, @NonNull String loc
111111
*/
112112
public CDSHandler(@Nullable String[] localeCodes,
113113
@NonNull String token, @Nullable String secret, @NonNull String csdHost,
114-
String customAuthorizationHeaderKey) {
114+
@Nullable String customAuthorizationHeaderKey) {
115115
mLocaleCodes = localeCodes;
116116
mToken = token;
117117
mSecret = secret;

TransifexNativeSDK/txsdk/src/main/java/com/transifex/txnative/CDSHandlerAndroid.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ interface FetchTranslationsCallback {
5353
* @param secret The API secret to use for connecting to the CDS.
5454
* @param csdHost The host of the Content Delivery Service.
5555
*/
56-
public CDSHandlerAndroid(@Nullable String[] localeCodes, @NonNull String token, @Nullable String secret, @NonNull String csdHost) {
57-
super(localeCodes, token, secret, csdHost, null);
56+
public CDSHandlerAndroid(@Nullable String[] localeCodes, @NonNull String token,
57+
@Nullable String secret, @NonNull String csdHost,
58+
@Nullable String customAuthorizationHeaderKey) {
59+
super(localeCodes, token, secret, csdHost, customAuthorizationHeaderKey);
5860
mExecutor = Executors.newSingleThreadExecutor();
5961
}
6062

TransifexNativeSDK/txsdk/src/main/java/com/transifex/txnative/NativeCore.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public NativeCore(@NonNull Context applicationContext,
6464
@NonNull LocaleState localeState,
6565
@NonNull String token,
6666
@Nullable String cdsHost,
67-
String customAuthorizationHeaderKey,
67+
@Nullable String customAuthorizationHeaderKey,
6868
@Nullable TxCache cache,
6969
@Nullable MissingPolicy missingPolicy) {
7070
mContext = applicationContext;
@@ -77,7 +77,8 @@ public NativeCore(@NonNull Context applicationContext,
7777
if (cdsHost == null) {
7878
cdsHost = CDSHandlerAndroid.CDS_HOST;
7979
}
80-
mCDSHandler = new CDSHandlerAndroid(mLocaleState.getAppLocales(), token, null, cdsHost);
80+
mCDSHandler = new CDSHandlerAndroid(mLocaleState.getAppLocales(), token, null,
81+
cdsHost, customAuthorizationHeaderKey);
8182

8283
mSourceLocaleResources = Utils.getLocalizedResources(mContext, new Locale(mLocaleState.getSourceLocale()));
8384

0 commit comments

Comments
 (0)