Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The [example app](/example/) demonstrates usage of the library. You need to run

It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.

If you want to use Android Studio or Xcode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/AndroidHealthConnectExample.xcworkspace` in Xcode and find the source files at `Pods > Development Pods > android-health-connect`.
The library is Android-only, so the example app has no iOS project.

To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `android-health-connect` under `Android`.

Expand All @@ -43,12 +43,6 @@ To run the example app on Android:
yarn example android
```

To run the example app on iOS:

```sh
yarn example ios
```

To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:

```sh
Expand Down Expand Up @@ -117,7 +111,6 @@ The `package.json` file contains various scripts for common tasks:
- `yarn test`: run unit tests with [Jest](https://jestjs.io/).
- `yarn example start`: start the Metro server for the example app.
- `yarn example android`: run the example app on Android.
- `yarn example ios`: run the example app on iOS.

### Sending a pull request

Expand Down
2 changes: 0 additions & 2 deletions example/.bundle/config

This file was deleted.

16 changes: 0 additions & 16 deletions example/Gemfile

This file was deleted.

35 changes: 3 additions & 32 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ yarn start

## Step 2: Build and run your app

With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:

### Android
With Metro running, open a new terminal window/pane from the root of your React Native project, and use the following command to build and run the Android app (the library is Android-only, so the example has no iOS project):

```sh
# Using npm
Expand All @@ -32,35 +30,9 @@ npm run android
yarn android
```

### iOS

For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).

The first time you create a new project, run the Ruby bundler to install CocoaPods itself:

```sh
bundle install
```

Then, and every time you update your native dependencies, run:

```sh
bundle exec pod install
```

For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).

```sh
# Using npm
npm run ios

# OR using Yarn
yarn ios
```

If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
If everything is set up correctly, you should see your new app running in the Android Emulator or your connected device.

This is one way to run your app — you can also build it directly from Android Studio or Xcode.
This is one way to run your app — you can also build it directly from Android Studio.

## Step 3: Modify your app

Expand All @@ -71,7 +43,6 @@ Open `App.tsx` in your text editor of choice and make some changes. When you sav
When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:

- **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
- **iOS**: Press <kbd>R</kbd> in iOS Simulator.

## Congratulations! :tada:

Expand Down
11 changes: 0 additions & 11 deletions example/ios/.xcode.env

This file was deleted.

Loading
Loading