-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from adjust/v200
Version 2.0.0
- Loading branch information
Showing
17 changed files
with
616 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
apply plugin: 'com.android.library' | ||
apply from: 'publish.gradle' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
android { | ||
compileSdkVersion 32 | ||
buildToolsVersion '32.0.0' | ||
namespace 'com.adjust.adobeextension' | ||
compileSdk 34 | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 32 | ||
minSdkVersion 19 | ||
targetSdkVersion 34 | ||
|
||
consumerProguardFiles "consumer-rules.pro" | ||
} | ||
|
@@ -21,7 +22,100 @@ android { | |
} | ||
|
||
dependencies { | ||
implementation 'androidx.test.ext:junit:1.1.3' | ||
implementation 'com.adjust.sdk:adjust-android:4.30.1' | ||
implementation 'com.adobe.marketing.mobile:sdk-core:1.8.0' | ||
} | ||
implementation 'androidx.test.ext:junit:1.1.5' | ||
implementation 'com.adjust.sdk:adjust-android:4.38.1' | ||
implementation 'com.adobe.marketing.mobile:core:2.6.1' | ||
} | ||
|
||
// init | ||
def libGroupId = 'com.adjust.adobeextension' | ||
def libArtifactId = 'adobeextension' | ||
def libVersion = '2.0.0' | ||
def libName = 'Adjust Extension for Adobe Experience SDK' | ||
def libDesc = 'This is the Android Adobe Mobile Extension of Adjust.' | ||
def libUrl = 'https://github.com/adjust/android_adobe_extension' | ||
|
||
// read local properties | ||
File localPropsFile = project.rootProject.file('local.properties') | ||
if (localPropsFile.exists()) { | ||
Properties p = new Properties() | ||
new FileInputStream(localPropsFile).withCloseable { is -> | ||
p.load(is) | ||
} | ||
p.each { name, value -> | ||
ext[name] = value | ||
} | ||
} | ||
|
||
// Generate Source Jar | ||
task sourceJar(type: Jar) { | ||
setArchiveClassifier('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
// Create the publication with the pom configuration | ||
def pomConfig = { | ||
organization { | ||
name 'adjust GmbH' | ||
url 'http://www.adjust.com' | ||
} | ||
licenses { | ||
license { | ||
name 'MIT License' | ||
url 'http://www.opensource.org/licenses/mit-license.php' | ||
} | ||
} | ||
scm { | ||
url '[email protected]:adjust/android_adobe_extension.git' | ||
connection 'scm:git:[email protected]:adjust/android_adobe_extension.git' | ||
developerConnection 'scm:git:[email protected]:adjust/android_adobe_extension.git' | ||
} | ||
developers { | ||
developer { | ||
name 'Pedro Silva' | ||
email '[email protected]' | ||
} | ||
developer { | ||
name 'Shashank Suhane' | ||
email '[email protected]' | ||
} | ||
developer { | ||
name 'Ugljesa Erceg' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
AdobeExtensionAar(MavenPublication) { | ||
groupId libGroupId | ||
artifactId libArtifactId | ||
version libVersion | ||
artifact(sourceJar) | ||
artifact("$buildDir/outputs/aar/$libArtifactId-release.aar") | ||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode('description', libDesc) | ||
root.appendNode('name', libName) | ||
root.appendNode('url', libUrl) | ||
root.children().last() + pomConfig | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "mavencentral" | ||
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
credentials { | ||
username sonatypeUsername | ||
password sonatypePassword | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign publishing.publications | ||
} |
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
AdjustAdobeExtension/adobeextension/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
...adobeextension/src/main/java/com/adjust/adobeextension/AdjustAdobeExtensionConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.