@aws-amplify/rtn-web-browser 1.0.1-api-v6-models.9351bcf.0 → 1.0.1-api-v6-models.58f2536.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.
@@ -1,3 +1,9 @@
1
+ import com.android.Version
2
+
3
+ def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
4
+ def androidManifestPath = agpVersion >= 7 ? 'src/main/AndroidManifest.xml' : 'src/hasPackageName/AndroidManifest.xml'
5
+
6
+
1
7
  buildscript {
2
8
  def kotlin_version = rootProject.ext.has('kotlinVersion')
3
9
  ? rootProject.ext.get('kotlinVersion')
@@ -10,7 +16,7 @@ buildscript {
10
16
 
11
17
  dependencies {
12
18
  if (project == rootProject) {
13
- classpath 'com.android.tools.build:gradle:7.3.1'
19
+ classpath 'com.android.tools.build:gradle:8.0.2'
14
20
  }
15
21
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16
22
  }
@@ -24,6 +30,10 @@ def getExtOrDefault(prop) {
24
30
  }
25
31
 
26
32
  android {
33
+ if (agpVersion >= 7) {
34
+ namespace 'com.amazonaws.amplify'
35
+ }
36
+
27
37
  compileSdkVersion getExtOrDefault('compileSdkVersion')
28
38
 
29
39
  defaultConfig {
@@ -31,6 +41,12 @@ android {
31
41
  targetSdkVersion getExtOrDefault('targetSdkVersion')
32
42
  }
33
43
 
44
+ sourceSets {
45
+ main {
46
+ manifest.srcFile androidManifestPath
47
+ }
48
+ }
49
+
34
50
  compileOptions {
35
51
  sourceCompatibility JavaVersion.VERSION_1_8
36
52
  targetCompatibility JavaVersion.VERSION_1_8
@@ -1,5 +1,5 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
@@ -18,6 +18,6 @@ android.useAndroidX=true
18
18
  android.enableJetifier=true
19
19
 
20
20
  default_kotlinVersion=1.7.20
21
- default_compileSdkVersion=32
21
+ default_compileSdkVersion=33
22
22
  default_minSdkVersion=24
23
23
  default_targetSdkVersion=30
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.amazonaws.amplify.rtnwebbrowser">
4
+ <queries>
5
+ <intent>
6
+ <action android:name="android.support.customtabs.action.CustomTabsService" />
7
+ </intent>
8
+ </queries>
9
+ </manifest>
@@ -1,7 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.amazonaws.amplify.rtnwebbrowser">
4
-
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
5
3
  <queries>
6
4
  <intent>
7
5
  <action android:name="android.support.customtabs.action.CustomTabsService" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/rtn-web-browser",
3
- "version": "1.0.1-api-v6-models.9351bcf.0+9351bcf",
3
+ "version": "1.0.1-api-v6-models.58f2536.0+58f2536",
4
4
  "description": "React Native module for aws-amplify web browser",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -49,5 +49,5 @@
49
49
  "lib-esm",
50
50
  "src"
51
51
  ],
52
- "gitHead": "9351bcfbeb9ec15f67fc6404ca192689a398d260"
52
+ "gitHead": "58f25367e844c71f102e0a33a4a1c5c6da554886"
53
53
  }