Skip to content

Commit

Permalink
Move mvvvm template to Example/
Browse files Browse the repository at this point in the history
  • Loading branch information
fortmarek committed Sep 13, 2018
1 parent 201d960 commit 46d9ae0
Show file tree
Hide file tree
Showing 113 changed files with 153 additions and 74 deletions.
Binary file modified .DS_Store
Binary file not shown.
73 changes: 0 additions & 73 deletions .gitignore
@@ -1,74 +1 @@
# Created by http://www.gitignore.io

### OSX ###
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Objective-C ###
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
Pods/

# Carthage
Carthage
Romefile

#Fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
screenshots

#build output
/outputs

#Environment
Environment/Current
Environment/.current
Environment/.environment_preprocess.h
Environment/Environment.swift

#generated files
*/Model/Generated/*
!*/Model/Generated/.gitkeep

ContractCodegen/.build
19 changes: 19 additions & 0 deletions ContractCodegen/.gitignore
@@ -0,0 +1,19 @@
### Objective-C ###
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
73 changes: 73 additions & 0 deletions Example/.gitignore
@@ -0,0 +1,73 @@
# Created by http://www.gitignore.io

### OSX ###
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Objective-C ###
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
Pods/

# Carthage
Carthage
Romefile

#Fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
screenshots

#build output
/outputs

#Environment
Environment/Current
Environment/.current
Environment/.environment_preprocess.h
Environment/Environment.swift

#generated files
*/Model/Generated/*
!*/Model/Generated/.gitkeep

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -125,7 +125,6 @@ final class EtherViewController: BaseViewController {
}
}


private func testContracts(with myAddress: Address) {
let walletStorage = KeychainStorageStrategy(identifier: "cz.ackee.etherkit.example")
let key = HDKey.Private(walletStorage, network: .rinkeby, path: [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
61 changes: 61 additions & 0 deletions Example/README.md
@@ -0,0 +1,61 @@
# iOS MVVM Project Template

**This is just installation guide, for detailed description check [wiki](https://github.com/AckeeCZ/iOS-MVVM-ProjectTemplate/wiki).**

## Installation

### Prepare environment
To use project template you will need Ruby [Bundler](http://bundler.io) and [Carthage](https://github.com/Carthage/Carthage).

We recommend always running on latest Carthage version. Carthage could be installed by running

```bash
brew update
brew install carthage
```

Bundler should be a part of your Ruby installation. We recommend ruby version greater than 2.4.x. If you don't have bundler than it can be installed by running

```bash
sudo gem install bundler
```

### Download template
If you have your environment ready, **download content of this repo as [ZIP archive](https://github.com/AckeeCZ/iOS-MVVM-ProjectTemplate/archive/master.zip)** and unpack to folder where you want to have your new project (recommended).

...or you can do standard git clone of course
```bash
git clone https://github.com/AckeeCZ/iOS-MVVM-ProjectTemplate.git
```
In that case don't forget to remove `.git` directory after clone, otherwise you will have whole template history in your new repository. I guess you don't want that.
```bash
rm -rf .git
```

### Project setup

1. In the project root folder call
```bash
bundle install
```
This will install all needed gems to run the skeleton and maintain their versions appropriately.

2. rename template
```bash
bundle exec fastlane rename name:NewProject
```
if the `name` argument is ommitted, the script will prompt for it.

3. Run installation of cocoapods
```bash
bundle exec pod install
```

4. Run carthage
```bash
carthage bootstrap --platform ios --cache-builds
```

Now your new project is ready to use :tada:

In the first place check `FirebaseAppDelegate.swift` and uncomment cofiguration code, it's easy to forget that and pretty hard to find afterwards :smirk:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 46d9ae0

Please sign in to comment.