android: read Dropbox API from main package resources
This makes Dropbox work on apps using the SDK without needing to build it themselves.
This commit is contained in:
parent
d5a43426ed
commit
9bfe54475b
|
@ -41,9 +41,11 @@ public class Dropbox
|
||||||
public Dropbox(ReactApplicationContext reactContext) {
|
public Dropbox(ReactApplicationContext reactContext) {
|
||||||
super(reactContext);
|
super(reactContext);
|
||||||
|
|
||||||
|
String pkg = reactContext.getApplicationContext().getPackageName();
|
||||||
|
int resId = reactContext.getResources()
|
||||||
|
.getIdentifier("dropbox_app_key", "string", pkg);
|
||||||
appKey
|
appKey
|
||||||
= reactContext.getString(
|
= reactContext.getString(resId);
|
||||||
org.jitsi.meet.sdk.R.string.dropbox_app_key);
|
|
||||||
isEnabled = !TextUtils.isEmpty(appKey);
|
isEnabled = !TextUtils.isEmpty(appKey);
|
||||||
|
|
||||||
clientId = generateClientId();
|
clientId = generateClientId();
|
||||||
|
|
Loading…
Reference in New Issue