How to use the appcenter.getSdkVersion function in appcenter

To help you get started, we’ve selected a few appcenter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / appcenter-sdk-react-native / TestApp / app / screens / AppCenterScreen.js View on Github external
const refreshAppCenterScreen = navigation.getParam('refreshAppCenterScreen');

      // Initial press: the function is not defined yet so nothing to refresh.
      if (refreshAppCenterScreen) {
        refreshAppCenterScreen();
      }
      defaultHandler();
    }
  }

  state = {
    appCenterEnabled: false,
    pushEnabled: false,
    authEnabled: false,
    installId: '',
    sdkVersion: AppCenter.getSdkVersion(),
    startupMode: StartupModes[0],
    appSecret: AppSecrets[0],
    userId: '',
    accountId: '',
    authStatus: 'Authentication status unknown'
  }

  async componentDidMount() {
    await this.refreshUI();
    const startupModeKey = await AsyncStorage.getItem(STARTUP_MODE);
    for (let index = 0; index < StartupModes.length; index++) {
      const startupMode = StartupModes[index];
      if (startupMode.key === startupModeKey) {
        this.state.startupMode = startupMode;
        break;
      }
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AppCenterScreen.js View on Github external
const refreshAppCenterScreen = navigation.getParam('refreshAppCenterScreen');

      // Initial press: the function is not defined yet so nothing to refresh.
      if (refreshAppCenterScreen) {
        refreshAppCenterScreen();
      }
      defaultHandler();
    }
  }

  state = {
    appCenterEnabled: false,
    pushEnabled: false,
    authEnabled: false,
    installId: '',
    sdkVersion: AppCenter.getSdkVersion(),
    startupMode: StartupModes[0],
    userId: '',
    accountId: '',
    authStatus: 'Authentication status unknown'
  }

  async componentDidMount() {
    await this.refreshUI();
    const startupModeKey = await AsyncStorage.getItem(STARTUP_MODE);
    for (let index = 0; index < StartupModes.length; index++) {
      const startupMode = StartupModes[index];
      if (startupMode.key === startupModeKey) {
        this.state.startupMode = startupMode;
        break;
      }
    }
github microsoft / appcenter-sdk-react-native / TestApp34 / MainScreen.js View on Github external
constructor() {
    super();
    this.state = {
      wrapperSdkVersion: AppCenter.getSdkVersion()
    };
  }
github microsoft / appcenter-sdk-react-native / DemoApp / MainScreen.js View on Github external
constructor() {
    super();
    this.state = {
      wrapperSdkVersion: AppCenter.getSdkVersion()
    };
  }
github microsoft / appcenter-sdk-react-native / BrownfieldTestApp / MainScreen.js View on Github external
constructor() {
    super();
    this.state = {
      wrapperSdkVersion: AppCenter.getSdkVersion()
    };
  }
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / MainScreen.tsx View on Github external
constructor(props: any) {
    super(props);
    this.state = {
      wrapperSdkVersion: AppCenter.getSdkVersion()
    };
  }