@capacitor/app 5.0.0-alpha.1 → 5.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-beta.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/app@5.0.0-alpha.1...@capacitor/app@5.0.0-beta.0) (2023-03-31)
7
+
8
+ **Note:** Version bump only for package @capacitor/app
9
+
10
+
11
+
12
+
13
+
6
14
  # [5.0.0-alpha.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/app@4.1.1...@capacitor/app@5.0.0-alpha.1) (2023-03-16)
7
15
 
8
16
 
@@ -15,7 +15,7 @@ buildscript {
15
15
  }
16
16
  }
17
17
  dependencies {
18
- classpath 'com.android.tools.build:gradle:7.2.1'
18
+ classpath 'com.android.tools.build:gradle:7.4.1'
19
19
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
20
20
  classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
21
21
  }
@@ -30,6 +30,7 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
30
30
  }
31
31
 
32
32
  android {
33
+ namespace "com.capacitorjs.plugins.app"
33
34
  compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
34
35
  defaultConfig {
35
36
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
@@ -1,3 +1,2 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.capacitorjs.plugins.app">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
2
  </manifest>
@@ -4,7 +4,6 @@ import android.content.Intent;
4
4
  import android.content.pm.ApplicationInfo;
5
5
  import android.content.pm.PackageInfo;
6
6
  import android.net.Uri;
7
- import android.os.Build;
8
7
  import androidx.activity.OnBackPressedCallback;
9
8
  import androidx.core.content.pm.PackageInfoCompat;
10
9
  import com.getcapacitor.JSObject;
@@ -13,6 +12,7 @@ import com.getcapacitor.Plugin;
13
12
  import com.getcapacitor.PluginCall;
14
13
  import com.getcapacitor.PluginMethod;
15
14
  import com.getcapacitor.annotation.CapacitorPlugin;
15
+ import com.getcapacitor.util.InternalUtils;
16
16
 
17
17
  @CapacitorPlugin(name = "App")
18
18
  public class AppPlugin extends Plugin {
@@ -73,7 +73,7 @@ public class AppPlugin extends Plugin {
73
73
  public void getInfo(PluginCall call) {
74
74
  JSObject data = new JSObject();
75
75
  try {
76
- PackageInfo pinfo = getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), 0);
76
+ PackageInfo pinfo = InternalUtils.getPackageInfo(getContext().getPackageManager(), getContext().getPackageName());
77
77
  ApplicationInfo applicationInfo = getContext().getApplicationInfo();
78
78
  int stringId = applicationInfo.labelRes;
79
79
  String appName = stringId == 0 ? applicationInfo.nonLocalizedLabel.toString() : getContext().getString(stringId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/app",
3
- "version": "5.0.0-alpha.1",
3
+ "version": "5.0.0-beta.0",
4
4
  "description": "The App API handles high level App state and events.For example, this API emits events when the app enters and leaves the foreground, handles deeplinks, opens other apps, and manages persisted plugin state.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "b980c4d862b72610560a6cedc69238021c5367cc"
82
+ "gitHead": "d53b649da594ee7e30d7cff4f7cdb87ba6a436b5"
83
83
  }