Skip to content

Commit

Permalink
fix(rtn-pn): corret the namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Oct 20, 2023
1 parent 6bef5b8 commit 7a4ef01
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.android.Version

def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
def androidManifestPath = agpVersion >= 7 ? 'src/main/AndroidManifest.xml' : 'src/hasNamespace/AndroidManifest.xml'
def androidManifestPath = agpVersion >= 7 ? 'src/main/AndroidManifest.xml' : 'src/hasPackageName/AndroidManifest.xml'

buildscript {
repositories {
Expand Down
4 changes: 2 additions & 2 deletions packages/rtn-push-notification/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.android.Version

def agpVersion = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
def androidManifestPath = agpVersion >= 7 ? 'src/main/AndroidManifest.xml' : 'src/hasNamespace/AndroidManifest.xml'
def androidManifestPath = agpVersion >= 7 ? 'src/main/AndroidManifest.xml' : 'src/hasPackageName/AndroidManifest.xml'

buildscript {
def kotlin_version = rootProject.ext.has('kotlinVersion')
Expand Down Expand Up @@ -32,7 +32,7 @@ def getExtOrDefault(prop) {

android {
if (agpVersion >= 7) {
namespace 'com.amazonaws.amplify.rtnpushnotification'
namespace 'com.amazonaws.amplify'
}

compileSdkVersion getExtOrDefault('compileSdkVersion')
Expand Down

0 comments on commit 7a4ef01

Please sign in to comment.