docs: private static int getAppVersion(Context context) {
          try {
              PackageInfo packageInfo = context.getPackageManager()
                      .getPackageInfo(context.getPackageName(), 0);
              return packageInfo.versionCode;
          } catch (NameNotFoundException e) {
              // should never happen
              throw new RuntimeException("Coult not get package name: " + e);
          }
      }