Skip to content

Commit

Permalink
Restructure project
Browse files Browse the repository at this point in the history
  • Loading branch information
lelandrichardson committed Mar 26, 2017
1 parent 903c099 commit 6cd30ad
Show file tree
Hide file tree
Showing 152 changed files with 391 additions and 669 deletions.
14 changes: 14 additions & 0 deletions .babelrc
@@ -0,0 +1,14 @@
{
"presets": ["react-native"],
"plugins": [
[
"module-resolver",
{
"alias": {
"react-native-maps": "./"
},
"cwd": "babelrc"
}
]
]
}
2 changes: 2 additions & 0 deletions .bundle/config
@@ -0,0 +1,2 @@
---
BUNDLE_BIN: "./examples/ios"
3 changes: 2 additions & 1 deletion .eslintrc
Expand Up @@ -11,6 +11,7 @@
"react/sort-comp": 0,
"no-use-before-define": 0,
"no-underscore-dangle": 0,
"import/no-unresolved": [2, { "ignore": ["react"] }]
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": [2, { "ignore": ["^react-native-maps"] }]
}
}
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -35,3 +35,5 @@ node_modules/
npm-debug.log
Pods/
AirMapsExplorer.xcworkspace/
lib/android/src/main/gen
example/android/app/src/main/gen
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -6,6 +6,5 @@ node_js:
cache:
directories:
- node_modules
- example/node_modules

script: npm run lint
script: npm run ci
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
ruby '2.2.4'
gem 'cocoapods', '1.2.0'
51 changes: 27 additions & 24 deletions example/ios/Gemfile.lock → Gemfile.lock
@@ -1,73 +1,76 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.3)
activesupport (4.2.7.1)
CFPropertyList (2.3.5)
activesupport (4.2.8)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (1.0.1)
cocoapods (1.1.1)
cocoapods (1.2.0)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.1, < 2.0)
cocoapods-core (= 1.1.1)
cocoapods-core (= 1.2.0)
cocoapods-deintegrate (>= 1.0.1, < 2.0)
cocoapods-downloader (>= 1.1.2, < 2.0)
cocoapods-downloader (>= 1.1.3, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.1.1, < 2.0)
cocoapods-trunk (>= 1.1.2, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored (~> 1.2)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.5.1)
molinillo (~> 0.5.5)
nap (~> 1.0)
xcodeproj (>= 1.3.3, < 2.0)
cocoapods-core (1.1.1)
ruby-macho (~> 0.2.5)
xcodeproj (>= 1.4.1, < 2.0)
cocoapods-core (1.2.0)
activesupport (>= 4.0.2, < 5)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.2)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.1.1)
cocoapods-trunk (1.1.2)
nap (>= 0.8, < 2.0)
netrc (= 0.7.8)
cocoapods-try (1.1.0)
colored (1.2)
escape (0.0.4)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.0.2)
i18n (0.7.0)
json (1.8.3)
minitest (5.9.1)
molinillo (0.5.3)
nanaimo (0.2.2)
gh_inspector (1.0.3)
i18n (0.8.1)
minitest (5.10.1)
molinillo (0.5.7)
nanaimo (0.2.3)
nap (1.1.0)
netrc (0.7.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
ruby-macho (0.2.6)
thread_safe (0.3.6)
tzinfo (1.2.3)
thread_safe (~> 0.1)
xcodeproj (1.4.1)
xcodeproj (1.4.2)
CFPropertyList (~> 2.3.3)
activesupport (>= 3)
claide (>= 1.0.1, < 2.0)
colored (~> 1.2)
nanaimo (~> 0.2.0)
nanaimo (~> 0.2.3)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.1.1)
cocoapods (= 1.2.0)

RUBY VERSION
ruby 2.2.4p230

BUNDLED WITH
1.10.6
1.14.6
59 changes: 0 additions & 59 deletions android/build.gradle

This file was deleted.

25 changes: 25 additions & 0 deletions build.gradle
@@ -0,0 +1,25 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}

allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/node_modules/react-native/android"
}
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
24 changes: 21 additions & 3 deletions example/android/app/build.gradle
Expand Up @@ -59,7 +59,22 @@ import com.android.build.OutputFile
* ]
*/

apply from: "react.gradle"
project.ext.react = [
// the name of the generated asset file containing your JS bundle
bundleAssetName : "example.bundle",

// the entry file for bundle generation
entryFile : "index.js",

// the root of your project, i.e. where "package.json" lives
root : "../../../",

// supply additional arguments to the packager
extraPackagerArgs: []
]


apply from: "../../../node_modules/react-native/react.gradle"

def enableSeparateBuildPerCPUArchitecture = false

Expand All @@ -70,7 +85,7 @@ def enableProguardInReleaseBuilds = false

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "com.airbnb.android.react.maps.example"
Expand Down Expand Up @@ -112,5 +127,8 @@ android {
}

dependencies {
compile project(':react-native-maps')
compile 'com.facebook.react:react-native:0.42.+'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:support-annotations:25.1.1'
compile project(':react-native-maps-lib')
}
97 changes: 0 additions & 97 deletions example/android/app/react.gradle

This file was deleted.

0 comments on commit 6cd30ad

Please sign in to comment.