Selaa lähdekoodia

Merge commit 'refs/tags/jenkins-front-end-screenad-180-v29^{}' into product

tags/jenkins-product-front-end-screenad-4-v3^0
hupeng 5 vuotta sitten
vanhempi
commit
62c82ee31b
1 muutettua tiedostoa jossa 7 lisäystä ja 5 poistoa
  1. +7
    -5
      App.js

+ 7
- 5
App.js Näytä tiedosto

@@ -117,14 +117,16 @@ export default class MyPage extends Component {
codePushUpdate() {
CodePush.allowRestart();
CodePush.sync(
{ installMode: CodePush.InstallMode.ON_NEXT_RESTART},
{ mandatoryInstallMode: CodePush.InstallMode.IMMEDIATE,
installMode: CodePush.InstallMode.IMMEDIATE},
this.codePushStatusDidChange.bind(this),
this.codePushDownloadDidProgress.bind(this)
);

CodePush.getUpdateMetadata(CodePush.UpdateState.RUNNING)
.then((metadata: LocalPackage) => {
this.setState({ versionInfo: metadata ? metadata.appVersion +'b'+NativeModules.BuildConfig.versionCode+"-" + metadata.label : "Unknown"});
this.setState({ versionInfo: metadata ? 'b'+NativeModules.BuildConfig.versionCode+"-" + metadata.label : 'b'+ NativeModules.BuildConfig.versionCode});
versionInfo = this.state.versionInfo;
}, (error: any) => {
this.setState({ versionInfo: "Unknown"});
@@ -344,9 +346,9 @@ routine() {
}

async startAd() {
await this.getBaseInfo()
await this.getAdDataList(true)
await this.hbRequest()
this.getBaseInfo()
this.getAdDataList(true)
this.hbRequest()
hbRequestCount = heartConfig.heartbeatInterval;
getAdDataCount =heartConfig.dataRefreshInterval;


Ladataan…
Peruuta
Tallenna