mirror of
https://github.com/kickstarter/android-oss.git
synced 2026-03-13 09:11:01 +08:00
- Deleted broken existing UI tests. - Moved the rest of the UI tests into suites organized by test category. - Added androidx.test.espresso:espresso-contrib lib. - Created a new variant of the app regression since we don't want to ever run these tests on production or a real web API. It has an app icon with a cobalt background and is populated with mock data from our Factory classes. - Moved provideApolloClientType and provideApiClientType out of the main ApplicationModule and into the variant specific ApplicationModule`s because regression only ever hits the mock clients. - Added fake google-service.json files to the config so anyone can build regression after running make bootstrap.
21 lines
588 B
Bash
Executable File
21 lines
588 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Move config files into place
|
|
cd config
|
|
for src in *.example
|
|
do
|
|
dest=`basename $src .example`
|
|
test -e $dest || cp $src $dest
|
|
done
|
|
|
|
VARIANTS="externalDebug externalRelease internalDebug internalRelease regressionDebug regressionRelease"
|
|
|
|
cd ..
|
|
|
|
# Copy google services over. Fallback to example if they don't exist.
|
|
for v in $VARIANTS
|
|
do
|
|
test -d app/src/"$v" || mkdir -p app/src/"$v"/
|
|
cp vendor/native-secrets/android/"$v"/google-services.json app/src/"$v"/google-services.json || cp config/"$v"/google-services.example.json app/src/"$v"/google-services.json
|
|
done
|