Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
changed target sdk and removed unused plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
zennermac committed Feb 28, 2019
1 parent 33538ea commit 47b14c1
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 160 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Use node v6.15.1
export ANDROID_HOME=<path to sdk>
npm install -g yarn [email protected]
yarn install
cordova plugin add cordova-plugin-qrscanner cordova-plugin-file cordova-plugin-http cordova-clipboard cordova-plugin-inappbrowser cordova-plugin-device cordova-plugin-wkwebview-engine cordova-plugin-whitelist cordova-plugin-google-analytics
cordova platform add [[email protected] | ios]
cordova run [android | ios]
cordova plugin add cordova-plugin-qrscanner cordova-plugin-file cordova-plugin-http cordova-clipboard cordova-plugin-inappbrowser cordova-plugin-device cordova-plugin-wkwebview-engine cordova-plugin-whitelist
cordova platform add [email protected]
cordova run android
# Generate a Signed APK
cordova build --release android
Expand Down
5 changes: 1 addition & 4 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<platform name="android">
<allow-intent href="market:*" />
<preference name="android-minSdkVersion" value="19" />
<preference name="android-targetSdkVersion" value="26" />
<preference name="android-maxSdkVersion" value="28" />
</platform>
<platform name="ios">
Expand All @@ -30,7 +31,6 @@
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<preference default="11.0.1" name="GMS_VERSION" />
<hook src="./scripts/build.sh" type="before_prepare" />
<icon src="./assets/img/zencash.png" />
<allow-navigation href="http://*/*" />
Expand All @@ -40,9 +40,6 @@
<allow-intent href="*" />
<engine name="android" spec="^6.2.3" />
<plugin name="cordova-plugin-file" spec="^4.3.3" />
<plugin name="cordova-plugin-google-analytics" spec="^1.8.6">
<variable name="GMS_VERSION" value="11.0.1" />
</plugin>
<plugin name="cordova-plugin-qrscanner" spec="^2.6.0" />
<plugin name="cordova-plugin-http" spec="^1.2.0" />
<plugin name="cordova-clipboard" spec="^1.2.1" />
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^4.3.3",
"cordova-plugin-google-analytics": "^1.8.6",
"cordova-plugin-http": "^1.2.0",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-qrscanner": "^2.6.0",
Expand All @@ -92,9 +91,6 @@
"cordova": {
"plugins": {
"cordova-plugin-file": {},
"cordova-plugin-google-analytics": {
"GMS_VERSION": "11.0.1"
},
"cordova-plugin-qrscanner": {},
"cordova-plugin-http": {},
"cordova-clipboard": {},
Expand Down
3 changes: 0 additions & 3 deletions src/containers/AboutPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ import {
import TRANSLATIONS from '../translations'

class RecoverWalletPage extends React.Component {
componentDidMount() {
window.ga.trackView('About Page')
}

renderToolbar () {
const CUR_LANG = this.props.settings.language
Expand Down
3 changes: 0 additions & 3 deletions src/containers/AddressInfoPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ class AddressInfoPage extends React.Component {
}
}

componentDidMount () {
window.ga.trackView('Address Info Page')
}

renderToolbar () {
const CUR_LANG = this.props.settings.language
Expand Down
4 changes: 1 addition & 3 deletions src/containers/ContactsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ const getContactDetails = (curLang, navigator, addContact, deleteContact, contac
}

class ContactsPage extends React.Component {
componentDidMount() {
window.ga.trackView('Contact Page')
}


gotoComponent (c) {
this.props.navigator.pushPage({component: c})
Expand Down
2 changes: 0 additions & 2 deletions src/containers/MainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ class MainPage extends React.Component {
}

componentDidMount () {
// Dispatch every 30 seconds
window.ga.startTrackerWithId('UA-71060764-11', 30)

if (this.props.secrets.items.length > 0) {
const address = this.props.secrets.items[0].address
Expand Down
3 changes: 0 additions & 3 deletions src/containers/SelectCurrencyPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import {
import TRANSLATIONS from '../translations'

class SelectCurrencyPage extends React.Component {
componentDidMount() {
window.ga.trackView('Currency Page')
}

renderToolbar () {
const CUR_LANG = this.props.settings.language
Expand Down
4 changes: 1 addition & 3 deletions src/containers/SelectInsightPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import {
import TRANSLATIONS from '../translations'

class SelectInsightPage extends React.Component {
componentDidMount() {
window.ga.trackView('Insight Page')
}


renderToolbar () {
return (
Expand Down
4 changes: 1 addition & 3 deletions src/containers/SelectLanguagePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ import {
import TRANSLATIONS from '../translations'

class SelectLanguagePage extends React.Component {
componentDidMount() {
window.ga.trackView('Language Page')
}


renderToolbar () {
const CUR_LANG = this.props.settings.language
Expand Down
11 changes: 1 addition & 10 deletions src/containers/SendPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ class SendPage extends React.Component {
}

componentDidMount () {
// Track event
window.ga.trackView('Send Page')


// Get fees dynamically each time component is mounted
const statusURL = urlAppend(this.props.settings.insightAPI, 'status')
Expand Down Expand Up @@ -375,29 +374,21 @@ class SendPage extends React.Component {
})
})
.catch((err) => {
window.ga.trackEvent('Send rawtx error', JSON.stringify(err))
window.ga.dispatch()
alert('Send failure: ' + JSON.stringify(err))

this.setProgressValue(0)
})
}).catch((err) => {
window.ga.trackEvent('Get blockinfo error', JSON.stringify(err))
window.ga.dispatch()
alert('GET failure: ' + JSON.stringify(err))

this.setProgressValue(0)
})
}).catch((err) => {
window.ga.trackEvent('Get blockheight and blockhash error', JSON.stringify(err))
window.ga.dispatch()
alert('GET failure: ' + JSON.stringify(err))

this.setProgressValue(0)
})
}).catch((err) => {
window.ga.trackEvent('Get utxo error', JSON.stringify(err))
window.ga.dispatch()
alert('GET failure: ' + JSON.stringify(err))

this.setProgressValue(0)
Expand Down
4 changes: 1 addition & 3 deletions src/containers/SettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import SelectInsightPage from './SelectInsightPage'
import TRANSLATIONS from '../translations'

class SettingsPage extends React.Component {
componentDidMount() {
window.ga.trackView('Settings Page')
}


gotoComponent (c) {
this.props.navigator.pushPage({component: c})
Expand Down
4 changes: 0 additions & 4 deletions src/containers/SetupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class SetupPage extends React.Component {
this.handleNewWallet = this.handleNewWallet.bind(this)
}

componentDidMount () {
window.ga.trackView('Setup Page')
}

handleNewWallet () {
var seed = new Mnemonic(Mnemonic.Words.ENGLISH)
this.handleLoadWallet(seed.toString())
Expand Down
Loading

0 comments on commit 47b14c1

Please sign in to comment.