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

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,25 @@
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.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/app@5.0.0-beta.0...@capacitor/app@5.0.0-beta.1) (2023-04-21)
7
+
8
+
9
+ ### Features
10
+
11
+ * Update gradle to 8.0.2 and gradle plugin to 8.0.0 ([#1542](https://github.com/ionic-team/capacitor-plugins/issues/1542)) ([e7210b4](https://github.com/ionic-team/capacitor-plugins/commit/e7210b47867644f5983e37acdbf0247214ec232d))
12
+
13
+
14
+
15
+
16
+
17
+ # [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)
18
+
19
+ **Note:** Version bump only for package @capacitor/app
20
+
21
+
22
+
23
+
24
+
6
25
  # [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
26
 
8
27
 
@@ -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:8.0.0'
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
@@ -48,8 +49,8 @@ android {
48
49
  abortOnError false
49
50
  }
50
51
  compileOptions {
51
- sourceCompatibility JavaVersion.VERSION_11
52
- targetCompatibility JavaVersion.VERSION_11
52
+ sourceCompatibility JavaVersion.VERSION_17
53
+ targetCompatibility JavaVersion.VERSION_17
53
54
  }
54
55
  }
55
56
 
@@ -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.1",
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": "a837068f095735043d64f8c4bfa22a0e77dcda7a"
83
83
  }