mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
moves mapbox token inside gradle.properties (#5392)
This commit is contained in:
parent
e7b15b1160
commit
2dafc0d2ad
4 changed files with 5 additions and 6 deletions
|
|
@ -294,7 +294,7 @@ android {
|
||||||
buildConfigField "String", "TEST_USERNAME", "\"" + getTestUserName() + "\""
|
buildConfigField "String", "TEST_USERNAME", "\"" + getTestUserName() + "\""
|
||||||
buildConfigField "String", "TEST_PASSWORD", "\"" + getTestPassword() + "\""
|
buildConfigField "String", "TEST_PASSWORD", "\"" + getTestPassword() + "\""
|
||||||
buildConfigField "String", "DEPICTS_PROPERTY", "\"P180\""
|
buildConfigField "String", "DEPICTS_PROPERTY", "\"P180\""
|
||||||
|
buildConfigField "String", "MapboxAccessToken", "\"MAPBOX_ACCESS_TOKEN\""
|
||||||
dimension 'tier'
|
dimension 'tier'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -330,7 +330,7 @@ android {
|
||||||
buildConfigField "String", "TEST_USERNAME", "\"" + getTestUserName() + "\""
|
buildConfigField "String", "TEST_USERNAME", "\"" + getTestUserName() + "\""
|
||||||
buildConfigField "String", "TEST_PASSWORD", "\"" + getTestPassword() + "\""
|
buildConfigField "String", "TEST_PASSWORD", "\"" + getTestPassword() + "\""
|
||||||
buildConfigField "String", "DEPICTS_PROPERTY", "\"P245962\""
|
buildConfigField "String", "DEPICTS_PROPERTY", "\"P245962\""
|
||||||
|
buildConfigField "String", "MapboxAccessToken", "\"MAPBOX_ACCESS_TOKEN\""
|
||||||
dimension 'tier'
|
dimension 'tier'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ import android.os.Build;
|
||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.multidex.BuildConfig;
|
|
||||||
import androidx.multidex.MultiDexApplication;
|
import androidx.multidex.MultiDexApplication;
|
||||||
import com.facebook.drawee.backends.pipeline.Fresco;
|
import com.facebook.drawee.backends.pipeline.Fresco;
|
||||||
import com.facebook.imagepipeline.core.ImagePipeline;
|
import com.facebook.imagepipeline.core.ImagePipeline;
|
||||||
|
|
@ -155,7 +154,7 @@ public class CommonsApplication extends MultiDexApplication {
|
||||||
|
|
||||||
INSTANCE = this;
|
INSTANCE = this;
|
||||||
ACRA.init(this);
|
ACRA.init(this);
|
||||||
Mapbox.getInstance(this, getString(R.string.mapbox_commons_app_token), WellKnownTileServer.Mapbox);
|
Mapbox.getInstance(this, BuildConfig.MapboxAccessToken, WellKnownTileServer.Mapbox);
|
||||||
|
|
||||||
ApplicationlessInjection
|
ApplicationlessInjection
|
||||||
.getInstance(this)
|
.getInstance(this)
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,6 @@
|
||||||
<string name="become_a_tester_title">Become a Beta Tester</string>
|
<string name="become_a_tester_title">Become a Beta Tester</string>
|
||||||
<string name="become_a_tester_description">Opt-in to our beta channel on Google Play and get early access to new features and bug fixes</string>
|
<string name="become_a_tester_description">Opt-in to our beta channel on Google Play and get early access to new features and bug fixes</string>
|
||||||
<string name="beta_opt_in_link">https://play.google.com/apps/testing/fr.free.nrw.commons</string>
|
<string name="beta_opt_in_link">https://play.google.com/apps/testing/fr.free.nrw.commons</string>
|
||||||
<string name="mapbox_commons_app_token">pk.eyJ1Ijoibmljb2xhcy1yYW91bCIsImEiOiJjbG93YnU5ZTEwM3pqMmttbzIxNGVvOGgxIn0.T1o536AcyVpl5Q7eypJEAg</string>
|
|
||||||
<string name="_2fa_code">2FA Code</string>
|
<string name="_2fa_code">2FA Code</string>
|
||||||
<string name="logout_verification">Do you really want to logout?</string>
|
<string name="logout_verification">Do you really want to logout?</string>
|
||||||
<string name="mediaimage_failed">Media Image Failed</string>
|
<string name="mediaimage_failed">Media Image Failed</string>
|
||||||
|
|
|
||||||
|
|
@ -37,4 +37,5 @@ android.enableJetifier=true
|
||||||
android.jetifier.ignorelist=bcprov-jdk15on
|
android.jetifier.ignorelist=bcprov-jdk15on
|
||||||
android.defaults.buildfeatures.buildconfig=true
|
android.defaults.buildfeatures.buildconfig=true
|
||||||
android.nonTransitiveRClass=false
|
android.nonTransitiveRClass=false
|
||||||
android.nonFinalResIds=false
|
android.nonFinalResIds=false
|
||||||
|
MAPBOX_ACCESS_TOKEN="pk.eyJ1Ijoibmljb2xhcy1yYW91bCIsImEiOiJjbG93YnU5ZTEwM3pqMmttbzIxNGVvOGgxIn0.T1o536AcyVpl5Q7eypJEAg"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue