Skip to content

Commit

Permalink
Use strings.xml.example file for Android example app (#89)
Browse files Browse the repository at this point in the history
* chore: use strings.xml.example file vs strings.xml

* chore: update instructions for strings.xml

* ci: rename Android example strings.xml file in build step
  • Loading branch information
stevehobbsdev committed May 5, 2022
1 parent f26704c commit 045e272
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- run:
name: Analyze App Facing Package
command: |
cp example/.env.example example/.env
dart analyze
cp example/.env.example example/.env
dart analyze
working_directory: ./auth0_flutter
- run:
name: Run package unit tests
Expand Down Expand Up @@ -54,6 +54,7 @@ jobs:
name: Build Android Example App
command: |
cp .env.example .env
mv android/app/src/main/res/values/strings.xml.example android/app/src/main/res/values/strings.xml
flutter build apk
working_directory: ./auth0_flutter/example
- run:
Expand All @@ -77,8 +78,8 @@ jobs:
path: ~/test-results/junit
test_ios:
parameters:
ios_simulator:
type: string
ios_simulator:
type: string
macos:
xcode: 13
steps:
Expand Down
6 changes: 5 additions & 1 deletion auth0_flutter/example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ Rename the `.env.example` file to `.env`. Then, open it and fill in the values:

### 3. Configure Android project

Open the `android/app/src/main/res/values/strings.xml` file and replace `YOUR_AUTH0_DOMAIN` with your own value, e.g. `company.us.auth0.com`. This value will be passed to the respective manifest placeholder.
Copy the `android/app/src/main/res/values/strings.xml.example` file into a new file called `strings.xml` in the same folder. This new file is ignored by Git.

Open the `strings.xml` file and replace `YOUR_AUTH0_DOMAIN` with your own value, e.g. `company.us.auth0.com`. This value will be passed to the respective manifest placeholder.

Configure the `com_auth0_scheme` entry with the correct value, if you require a custom scheme.

## What is Auth0?

Expand Down
1 change: 1 addition & 0 deletions auth0_flutter/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ GeneratedPluginRegistrant.java
key.properties
**/*.keystore
**/*.jks
strings.xml

0 comments on commit 045e272

Please sign in to comment.