Skip to content

Commit ff259a3

Browse files
committed
Remove package property in manifest and replace with namespace property in android closure of build.gradle.kts files.
1 parent eb9b29b commit ff259a3

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
restore-keys: |
2323
${{ runner.os }}-gradle-core-
2424
- name: Publush snapshot to sonatype
25-
run: ./gradlew publishToSonatype -x lib:withJavaDoc
25+
run: ./gradlew publishToSonatype
2626
env:
2727
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
2828
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}

lib/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ android {
1212
compileSdk = 33
1313
buildToolsVersion = "33.0.0"
1414

15+
namespace = "com.segment.analytics.kotlin.destinations.consent"
16+
1517
defaultConfig {
1618
multiDexEnabled = true
1719
minSdk = 24

lib/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.segment.analytics.kotlin.destinations.consent">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
</manifest>

lib/src/main/java/com/segment/analytics/kotlin/destinations/consent/Constants.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package com.segment.analytics.kotlin.destinations.consent
2-
32
object Constants {
43
const val EVENT_SEGMENT_CONSENT_PREFERENCE = "Segment Consent Preference"
54
const val CONSENT_SETTINGS_KEY = "consentSettings"

testapp/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
android {
77
compileSdk = 33
88

9+
namespace = "com.segment.analytics.destinations.mydestination.testapp"
10+
911
defaultConfig {
1012
applicationId = "com.segment.analytics.destinations.mydestination.testapp"
1113
minSdk = 24

testapp/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.segment.analytics.destinations.mydestination.testapp">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<application
65
android:allowBackup="true"

0 commit comments

Comments
 (0)