Skip to content
Merged
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 TransifexNativeSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ buildscript {
]
ext {
sdkVersionCode = 11 // version code for txsdk
sdkVersion = '1.4.0' // version for txsdk and common
sdkVersion = '1.4.1' // version for txsdk and common
pomGroupID = "com.transifex.txnative" // pom group id for txsdk and common

cliVersion = '1.4.0' // clitool version
cliVersion = '1.4.1' // clitool version
}
repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void onTranslationFetched(@Nullable InputStream inputStream, @NonNull String loc
*/
public CDSHandler(@Nullable String[] localeCodes,
@NonNull String token, @Nullable String secret, @NonNull String csdHost,
String customAuthorizationHeaderKey) {
@Nullable String customAuthorizationHeaderKey) {
mLocaleCodes = localeCodes;
mToken = token;
mSecret = secret;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ interface FetchTranslationsCallback {
* @param secret The API secret to use for connecting to the CDS.
* @param csdHost The host of the Content Delivery Service.
*/
public CDSHandlerAndroid(@Nullable String[] localeCodes, @NonNull String token, @Nullable String secret, @NonNull String csdHost) {
super(localeCodes, token, secret, csdHost, null);
public CDSHandlerAndroid(@Nullable String[] localeCodes, @NonNull String token,
@Nullable String secret, @NonNull String csdHost,
@Nullable String customAuthorizationHeaderKey) {
super(localeCodes, token, secret, csdHost, customAuthorizationHeaderKey);
mExecutor = Executors.newSingleThreadExecutor();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public NativeCore(@NonNull Context applicationContext,
@NonNull LocaleState localeState,
@NonNull String token,
@Nullable String cdsHost,
String customAuthorizationHeaderKey,
@Nullable String customAuthorizationHeaderKey,
@Nullable TxCache cache,
@Nullable MissingPolicy missingPolicy) {
mContext = applicationContext;
Expand All @@ -77,7 +77,8 @@ public NativeCore(@NonNull Context applicationContext,
if (cdsHost == null) {
cdsHost = CDSHandlerAndroid.CDS_HOST;
}
mCDSHandler = new CDSHandlerAndroid(mLocaleState.getAppLocales(), token, null, cdsHost);
mCDSHandler = new CDSHandlerAndroid(mLocaleState.getAppLocales(), token, null,
cdsHost, customAuthorizationHeaderKey);

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

Expand Down
Loading