moves mapbox token inside gradle.properties (#5392)

This commit is contained in:
Srishti Rohatgi 2023-11-22 20:04:38 +05:30 committed by GitHub
parent e7b15b1160
commit 2dafc0d2ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View file

@ -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'
} }
} }

View file

@ -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)

View file

@ -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>

View file

@ -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"