Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Jun 11, 2024
1 parent 5a20065 commit ce79f5b
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 129 deletions.
13 changes: 0 additions & 13 deletions .tx/config

This file was deleted.

3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
source 'https://rubygems.org'

gem 'cocoapods', '>=1.4'
gem 'cocoapods-keys', '>=1.7.0'
gem 'cocoapods-catalyst-support'
gem 'fastlane', '>=2.104.0'
gem 'xcpretty'
gem 'xcpretty-travis-formatter'
28 changes: 0 additions & 28 deletions Podfile

This file was deleted.

20 changes: 0 additions & 20 deletions Podfile.lock

This file was deleted.

67 changes: 2 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,79 +37,16 @@ $ cp sample.debug.xcconfig debug.xcconfig

If you want to run your app against a locally running version of Habitica, change `CUSTOM_DOMAIN` to `localhost:3000` or whatever port you have your local version configured to. Also set `DISABLE_SSL` to true so that the url can be configured correctly.

### CocoaPods

We are using [CocoaPods](http://cocoapods.org) to manage dependencies.

During installation, cocoapods-keys will prompt for some of the keys used in the project. Use any random value for debugging, the real values are only required when uploading a final build to the app store.

CocoaPods requires that you open the *Habitica.xcworkspace*.

```
$ open Habitica.xcworkspace
```

### Non-M1 Mac Installation

If you have managed ruby environment (rbenv, rvm, etc.):

```
$ bundle install
$ bundle exec pod install
```

As an alternative, it is possible to install the dependendencies manually. Use `sudo` if required to install gems (i.e. you are using the MacOS system ruby):

```
$ sudo gem install cocoapods:'>=1.2'
$ sudo gem install cocoapods-keys
$ pod install
```

### M1 Mac Installation

#### Step 1: Install Brew

```
# Install Brew (package manager)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add 'brew' as a terminal command (change {USER_NAME})
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/{USER_NAME}/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Verify Installation
which brew
```

#### Step 2: Install cocoapods using Brew

```
brew install cocoapods
# Verify the installation from brew and get the Version number:
brew info cocoapods
# ^example output: cocoapods: stable 1.10.1 (bottled)
# Go to your project directory
cd path/to/project
# Install pods (REMEMBER to run this in your project folder)
opt/homebrew/Cellar/cocoapods/{VERSION}/bin/pod init
opt/homebrew/Cellar/cocoapods/{VERSION}/bin/pod install
```
NOTE Get the {VERSION} from the brew info cocoapods command

### Step 3: Install swiftgen and generate secrets
### Install swiftgen and generate secrets

```
brew install swiftgen
# Replace the secrets.yml.example to secrets.yml and set your own values
swiftgen config run
```

NOTE You can run the project without being set the credentials but this features will be limited

```

0 comments on commit ce79f5b

Please sign in to comment.