Skip to content

Commit 51700ea

Browse files
Merge pull request #3 from BranchMetrics/SDK-109/update_release_scripts
SDK-109 -- Update scripts to support release
2 parents a173ab9 + a61bf0a commit 51700ea

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Reference
2+
<INSERT LINKS TO OTHER PR(S)/REFERENCES HERE (IF NONE REMOVE THIS SECTION)>
3+
4+
## Description
5+
<INSERT HIGH LEVEL DESCRIPTION OF CHANGES AND WHY THEY WERE MADE>
6+
7+
## Testing Instructions
8+
<INSERT TESTING INSTRUCTIONS HERE>
9+
10+
## Risk Assessment [`HIGH | MEDIUM | LOW`]
11+
<PICK ONE. WHAT IS THE POTENTIAL NEGATIVE IMPACT FOR CUSTOMERS AND US? SELECT ONE OF THE LEVELS. IF HIGH/MEDIUM EXPLAIN.>
12+
13+
- [ ] I, the PR creator, have tested — integration, unit, or otherwise — this code.
14+
15+
## Reviewer Checklist (To be checked off by the reviewer only)
16+
17+
**You can only merge once all of these are checked off!**
18+
19+
- [ ] JIRA Ticket is referenced in MR title
20+
- Correctness & Style
21+
- [ ] Conforms to [Style Guides](https://source.android.com/setup/contribute/code-style)
22+
- [ ] Mission critical pieces are documented in code and out of code as needed
23+
- [ ] Unit Tests reviewed and test issue sufficiently
24+
- [ ] Functionality was reviewed in QA independently by another engineer on the team (clone for each required reviewer)

AdobeBranchExtension/build.gradle

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ android {
2424

2525
}
2626

27+
configurations {
28+
javadocDeps
29+
}
30+
2731
dependencies {
2832
implementation fileTree(dir: 'libs', include: ['*.jar'])
2933

@@ -34,9 +38,43 @@ dependencies {
3438

3539
// Branch
3640
api 'io.branch.sdk.android:library:3.0.3'
41+
javadocDeps 'io.branch.sdk.android:library:3.0.3'
3742

3843
// Adobe
39-
implementation 'com.adobe.marketing.mobile:userprofile:1.+'
40-
implementation 'com.adobe.marketing.mobile:sdk-core:1.+'
44+
implementation 'com.adobe.marketing.mobile:userprofile:1.0.1'
45+
implementation 'com.adobe.marketing.mobile:sdk-core:1.0.5'
46+
}
47+
48+
//------------- Javadocs ---------------//
49+
tasks.withType(Javadoc) {
50+
options.addStringOption('Xdoclint:none', '-quiet')
51+
options.addStringOption('encoding', 'UTF-8')
52+
options.addStringOption('charSet', 'UTF-8')
53+
}
54+
55+
task docs(type: Javadoc) {
56+
source = android.sourceSets.main.java.srcDirs
57+
classpath = files(((Object) android.bootClasspath.join(File.pathSeparator)))
58+
}
4159

60+
task javadocs(type: Javadoc) {
61+
source = android.sourceSets.main.java.srcDirs
62+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
63+
classpath += configurations.javadocDeps
64+
65+
exclude '**/R.html', '**/R.*.html', '**/index.html'
66+
67+
options {
68+
links "http://docs.oracle.com/javase/8/docs/api/"
69+
linksOffline "http://d.android.com/reference","${android.sdkDirectory}/docs/reference"
70+
71+
tags = [ "apiNote", "implSpec", "implNote" ]
72+
}
4273
}
74+
75+
task javadocJar(type: Jar, dependsOn: javadocs) {
76+
classifier = 'javadoc'
77+
from javadocs.destinationDir
78+
}
79+
80+
apply from: 'https://raw.githubusercontent.com/BranchMetrics/GradleToMavenOptionalDependencies/master/gradle-maven-push.gradle'

0 commit comments

Comments
 (0)