Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
matinzd committed Sep 10, 2024
1 parent 2b85830 commit dd2802c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.health.READ_STEPS" />
<uses-permission android:name="android.permission.health.WRITE_STEPS" />
<uses-permission android:name="android.permission.health.READ_EXERCISE"/>
<uses-permission android:name="android.permission.health.WRITE_EXERCISE"/>

<application
android:name=".MainApplication"
Expand Down
8 changes: 8 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ export default function App() {
accessType: 'write',
recordType: 'Steps',
},
{
accessType: 'write',
recordType: 'ExerciseSession',
},
{
accessType: 'read',
recordType: 'ExerciseSession',
},
]).then((permissions) => {
console.log('Granted permissions on request ', { permissions });
});
Expand Down

0 comments on commit dd2802c

Please sign in to comment.