Skip to content

Commit 9b4f256

Browse files
Brian Melton-GraceshahzaibjAdamBJohnsonxshoatman
authored
ADAL Release 3.1.2 (#1569)
* Add release signing config for adal test app * Closes #1073 - Explicitly Disables Content Provider Access to WebViews (#1541) * AuthenticationActivity: disallow content access * Minor cleanup to remove repeated getter calls * Disable content access * Removing repeated getter calls * Run formatter * Cleaning up formatting * Removing impossible if condition. More cleanup * Update adal/src/main/java/com/microsoft/aad/adal/AuthenticationDialog.java Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Disabling unreliable test -- unrelated to these changes * Removing the entire broken test Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Closes #1354 (#1544) * Post merge feedback update (#1545) * Update submodule * Set WebSettings#setAllowFileAccess(false) (#1542) * AuthenticationActivity: disallow content access * Minor cleanup to remove repeated getter calls * Disable content access * Removing repeated getter calls * Run formatter * Cleaning up formatting * Removing impossible if condition. More cleanup * Update adal/src/main/java/com/microsoft/aad/adal/AuthenticationDialog.java Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Disallow universal file access from file URLs * Disallow file access Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Upgrade ADAL dependency to 3.1.0. * Remove unused variable, fixing my local PMD build. * Clear the MSAL cache replica is the ADAL cache is cleared (#1552) * Update submodule to latest * Organize imports * Cleaning up javadoc * Fix javadoc * Add nullability annots * Add line spacing for conditionals * Wiring up wrapped cache * Fixing nullability annots * New unit test for cache clearing * Removing test that no longer applies * Removing test that was invalidated by improvements to doze mode when active network connection is available * Disabling unreliable tests * Make primitives final * Synchronize the wrapped cache * Don't recompile patterns unneccesarily. * Update submodule to latest (#1558) * Merge master-to-dev post 3.1.1 deployment (#1559) * Release/3.1.1 (#1556) * Closes #1073 - Explicitly Disables Content Provider Access to WebViews (#1541) * AuthenticationActivity: disallow content access * Minor cleanup to remove repeated getter calls * Disable content access * Removing repeated getter calls * Run formatter * Cleaning up formatting * Removing impossible if condition. More cleanup * Update adal/src/main/java/com/microsoft/aad/adal/AuthenticationDialog.java Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Disabling unreliable test -- unrelated to these changes * Removing the entire broken test Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Closes #1354 (#1544) * Post merge feedback update (#1545) * Update submodule * Set WebSettings#setAllowFileAccess(false) (#1542) * AuthenticationActivity: disallow content access * Minor cleanup to remove repeated getter calls * Disable content access * Removing repeated getter calls * Run formatter * Cleaning up formatting * Removing impossible if condition. More cleanup * Update adal/src/main/java/com/microsoft/aad/adal/AuthenticationDialog.java Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Disallow universal file access from file URLs * Disallow file access Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> * Upgrade ADAL dependency to 3.1.0. * Remove unused variable, fixing my local PMD build. * Clear the MSAL cache replica is the ADAL cache is cleared (#1552) * Update submodule to latest * Organize imports * Cleaning up javadoc * Fix javadoc * Add nullability annots * Add line spacing for conditionals * Wiring up wrapped cache * Fixing nullability annots * New unit test for cache clearing * Removing test that no longer applies * Removing test that was invalidated by improvements to doze mode when active network connection is available * Disabling unreliable tests * Make primitives final * Synchronize the wrapped cache * Don't recompile patterns unneccesarily. * Bump to 3.1.1-RC1 * Update changelog for 3.1.1 * Point common to 2.1.1-RC1 * Update submodule * Point common to 2.1.1-RC2 * Update version to 3.1.1-RC2 * Update submodule pointer to master * Update deps to common@2.1.1 * Update readme for latest version * Update version to 3.1.1 (remove RC) Co-authored-by: Brian Melton-Grace <brianmel@microsoft.com> Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> Co-authored-by: Adam Johnson <adjoh@microsoft.com> * Update submodule to common@dev(HEAD) Co-authored-by: Shahzaib <37125644+shahzaibj@users.noreply.github.com> Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> Co-authored-by: Adam Johnson <adjoh@microsoft.com> * Updated gradle to latest plugin and gradle versions * Removed all references to findbugs * Add changelog enforcement. * Test changelog. * Remove test changelog entry * Update submodule dependency to release/3.0.6 * Update submodule to common@master (3.0.6 release) * Update changelog * Update readme version string * Update version number for 3.1.2-RC1 * Update dependency to common@3.0.6 * Update changelog.txt * Increase gradle version for manifest merger error * Update to RC2 after tooling change * Update to final version 3.1.2 for deployment Co-authored-by: shahzaibj <shahzaib.jameel@microsoft.com> Co-authored-by: AdamBJohnsonx <63813613+AdamBJohnsonx@users.noreply.github.com> Co-authored-by: Shahzaib <37125644+shahzaibj@users.noreply.github.com> Co-authored-by: Adam Johnson <adjoh@microsoft.com> Co-authored-by: Shane Oatman <shoatman@microsoft.com>
1 parent 9a000bc commit 9b4f256

File tree

8 files changed

+47
-41
lines changed

8 files changed

+47
-41
lines changed

.github/workflows/pull-request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is a workflow to run the deploy snapshot pipeline in Azure DevOps
2+
name: pr_validation
3+
4+
# Controls when the action will run. Triggers the workflow on push or pull request
5+
# events but only for the dev branch
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
9+
branches: [ dev ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# Make sure we have a changelog entry
14+
changelog:
15+
runs-on: ubuntu-latest
16+
17+
# Steps represent a sequence of tasks that will be executed as part of the job
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: dangoslen/changelog-enforcer@v1.4.0
21+
with:
22+
changeLogPath: 'changelog.txt'
23+
skipLabel: 'No-Changelog'
24+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Note: A corpnet account is required to view the VSTS build.
3838

3939
## Versions
4040

41-
Current version - 3.1.1
41+
Current version - 3.1.2
4242

4343
Minimum recommended version - 1.16.3-hf1
4444

adal/build.gradle

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'findbugs'
32
apply plugin: 'pmd'
43
apply plugin: 'checkstyle'
54
apply plugin: 'maven-publish'
@@ -42,7 +41,6 @@ buildscript {
4241

4342
android {
4443
compileSdkVersion rootProject.ext.compileSdkVersion
45-
buildToolsVersion rootProject.ext.buildToolsVersion
4644

4745
defaultConfig {
4846
minSdkVersion rootProject.ext.minSdkVersion
@@ -118,13 +116,6 @@ android {
118116
}
119117

120118
dependencies {
121-
// Dependencies required only at compile time
122-
compileOnly 'com.google.code.findbugs:annotations:3.0.1', {
123-
// Need to exclude these, or build is broken by:
124-
// com.android.dex.DexException: Multiple dex files define Ljavax/annotation/CheckForNull
125-
exclude module: 'jsr305'
126-
exclude module: 'jcip-annotations'
127-
}
128119

129120
// Dependencies
130121
implementation "androidx.appcompat:appcompat:$rootProject.ext.appCompatVersion"
@@ -139,10 +130,10 @@ dependencies {
139130
transitive = false
140131
}
141132

142-
snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '2.1.1', changing: true)
133+
snapshotApi(group: 'com.microsoft.identity', name: 'common', version: '3.0.6', changing: true)
143134

144135
// 'dist' flavor dependencies
145-
distApi("com.microsoft.identity:common:2.1.1") {
136+
distApi("com.microsoft.identity:common:3.0.6") {
146137
transitive = false
147138
}
148139

@@ -298,29 +289,6 @@ artifacts {
298289
archives sourcesJar
299290
}
300291

301-
findbugs {
302-
ignoreFailures = false
303-
reportsDir = file("$project.buildDir/outputs/")
304-
reportLevel = "medium"
305-
effort = "max"
306-
}
307-
308-
task findbugs(type: FindBugs) {
309-
description 'Run findbugs'
310-
group 'verification'
311-
312-
classes = fileTree("$project.buildDir/intermediates/classes/local/debug/")
313-
source = fileTree('src/main/java')
314-
classpath = files()
315-
effort = 'max'
316-
excludeFilter = file("../config/findbugs/exclude.xml")
317-
318-
reports {
319-
xml.enabled = false
320-
html.enabled = true
321-
}
322-
}
323-
324292
pmd {
325293
ignoreFailures = false
326294
reportsDir = file("$project.buildDir/outputs/")
@@ -361,7 +329,6 @@ task checkstyle(type: Checkstyle) {
361329
tasks.whenTaskAdded { task ->
362330
if (task.name == 'assembleDebug' || task.name == 'assembleRelease') {
363331
task.dependsOn 'checkstyle', 'pmd', 'lint'
364-
task.finalizedBy 'findbugs'
365332
}
366333
}
367334

adal/versioning/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#Wed Aug 01 15:24:11 PDT 2018
2-
versionName=3.1.1
2+
versionName=3.1.2
33
versionCode=1

changelog.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 3.1.2
2+
-------------
3+
- Android changes for SDK30, see [the android developers notice](https://android-developers.googleblog.com/2020/07/preparing-your-build-for-package-visibility-in-android-11.html).
4+
- Updates common dependency to 3.0.6
5+
* Provides Android 11 support fixes; see common@3.0.6 changelog for details.
6+
17
Version 3.1.1
28
-------------
39
- Fix ADAL/1073 - Explicitly disable Content Provider access from WebViews
@@ -364,4 +370,3 @@ Version 1.0.3
364370
Release Date: 10-3-2014
365371
* Dismiss spinner to resolve some UI issues
366372
* Use broker signature and authenticator type for checks. Get broker package from authenticator.
367-

common

Submodule common updated 199 files

gradle/versions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ext {
88
buildToolsVersion = "28.0.3"
99

1010
// Plugins
11-
gradleVersion = '3.3.1'
11+
gradleVersion = '3.3.3'
1212
androidMavenGradlePluginVersion = "1.4.1"
1313

1414
// Libraries

userappwithbroker/build.gradle

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ allprojects {
1818

1919
android {
2020
compileSdkVersion rootProject.ext.compileSdkVersion
21-
buildToolsVersion rootProject.ext.buildToolsVersion
2221

2322
defaultConfig {
2423
applicationId "com.microsoft.aad.adal.userappwithbroker"
@@ -36,6 +35,16 @@ android {
3635
keyPassword "android"
3736
}
3837
}
38+
39+
release {
40+
def debugKeyFile = rootProject.file("gradle/debug.keystore")
41+
if(debugKeyFile.exists()){
42+
storeFile rootProject.file("gradle/debug.keystore")
43+
storePassword "android"
44+
keyAlias "androiddebugkey"
45+
keyPassword "android"
46+
}
47+
}
3948
}
4049

4150
flavorDimensions 'main'
@@ -54,6 +63,7 @@ android {
5463
buildConfigField("String", "REGULAR_REDIDRECT_URI", "\"msauth://com.microsoft.aad.adal.userappwithbroker/1wIqXSqBj7w%2Bh11ZifsnqwgyKrY%3D\"")
5564
}
5665
release {
66+
signingConfig signingConfigs.release
5767
minifyEnabled false
5868
proguardFiles getDefaultProguardFile('proguard-android.txt')
5969
buildConfigField("String", "REGULAR_REDIDRECT_URI", "\"msauth://com.microsoft.aad.adal.userappwithbroker/1wIqXSqBj7w%2Bh11ZifsnqwgyKrY%3D\"")

0 commit comments

Comments
 (0)