Compare commits

...

1 Commits
master ... 4.x2

Author SHA1 Message Date
Devin Smith
b211dceee5 clean 2017-02-18 12:13:53 -08:00
5 changed files with 16 additions and 13 deletions

View File

@ -1,4 +1,4 @@
## Crunchbutton Native
# Crunchbutton Native
Crunchbutton native was originally created in early 2012 using a pretty old version of PhoneGap, and has since been converted to a recent version of Cordova. Many of its features were created long before Ionic was released. It uses Ionic only for resource generation. Much of its code could be simplified using now existing Ionic or ngCordova libraries.
@ -8,7 +8,7 @@ This repository is mostly for educational purposes. Though the complete source o
---
### Install
## Install
```sh
npm install -g cordova ionic
@ -17,28 +17,31 @@ cordova platform add android
ionic resources
```
---
### Build
## Build
In order to build that app, we need to build against specific version of web so that it can download all the necessary assets. The **build.php** contains all the information and paths about that you will need. The build target is used to download code and assets, and bundle them with the app. This way there is no need to have any external http requests other than our rest.
```sh
build dev
./build.php dev
```
or
```sh
build live
./build.php live
```
---
### Release
## Release
For iOS, use xcode for your releases. For Android, you can use the **release_android.sh** script. You will need to create an android keystore in the **cert** directory.
```sh
sh release_android.sh
./release_android.sh
```
---
### Notes
## Notes
Note that newer versions of Cordova require cocoapods installed. There is a pod required for the push plugin which will error out if you do not have cocoapods properly configured.

View File

@ -140,7 +140,7 @@ file_put_contents($path.'index.html', $index);
echo "Building index js...\n";
$index = file_get_contents($path.'index.js');
if( $live ){
$index = str_replace('FACEBOOK_APP_IP', '***REMOVED***', $index);
$index = str_replace('FACEBOOK_APP_IP', '411729638889643', $index);
} else {
$index = str_replace('FACEBOOK_APP_IP', $config->facebook, $index);
}

View File

@ -128,10 +128,10 @@
<plugin name="cordova-plugin-appversion" spec="~1.0.0"/>
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
<plugin name="phonegap-plugin-push" spec="~1.9.3">
<variable name="SENDER_ID" value="***REMOVED***"/>
<variable name="SENDER_ID" value="ID"/>
</plugin>
<plugin name="cordova-plugin-facebook4" spec="~1.7.4">
<variable name="APP_ID" value="***REMOVED***"/>
<variable name="APP_ID" value="ID"/>
<variable name="APP_NAME" value="Crunchbutton"/>
</plugin>
<allow-intent href="http://*/*"/>

View File

@ -283,7 +283,7 @@ $(function() {
FB.Event.subscribe('auth.statusChange', facebookService.processStatus);
FB.init({
appId: '***REMOVED***',
appId: '411729638889643',
//cookie: true,
xfbml: true,
//oauth: true,

View File

@ -283,7 +283,7 @@ $(function() {
FB.Event.subscribe('auth.statusChange', facebookService.processStatus);
FB.init({
appId: '***REMOVED***',
appId: '411729638889643',
//cookie: true,
xfbml: true,
//oauth: true,