Skip to content

Commit 4e5191b

Browse files
authored
Fix snapshot (#4)
Add clean and build steps the release.yml and snapshot.yml files.
1 parent 5df2c1a commit 4e5191b

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
restore-keys: |
3737
${{ runner.os }}-gradle-core-
3838
- name: Publush release to sonatype
39-
run: ./gradlew publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository
39+
run: ./gradlew clean build publishToSonatype -Prelease closeAndReleaseSonatypeStagingRepository
4040
env:
4141
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
4242
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
@@ -53,4 +53,4 @@ jobs:
5353
-d '{"tag_name": "${{ env.RELEASE_VERSION }}", "name": "${{ env.RELEASE_VERSION }}", "body": "Release of version ${{ env.RELEASE_VERSION }}", "draft": false, "prerelease": false, "generate_release_notes": true}'
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
56+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}

.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 lib:bundleReleaseAar publishToSonatype
25+
run: ./gradlew clean build 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)