Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3c8c211
First commit
jeffrymsft Jan 17, 2025
64eb24b
msal builds with gradle change
jeffrymsft Jan 24, 2025
93c642c
commiting after rollback
jeffrymsft Feb 5, 2025
6a701a2
updating msal piplines to jdk17
jeffrymsft Feb 5, 2025
f23749a
updating msal pipelin
jeffrymsft Feb 7, 2025
2713ba6
printing java version in pipeline
jeffrymsft Feb 7, 2025
6710ad5
removing printing script
jeffrymsft Feb 20, 2025
40545a9
updating buildsystem plugin version to 0.2.4
jeffrymsft Feb 20, 2025
2602f77
fixing the msal publish task
jeffrymsft Feb 22, 2025
095656b
making default java 17
jeffrymsft Feb 24, 2025
9d42411
rolling back some changes to java upgrade
jeffrymsft Feb 25, 2025
d84a346
adding production flavour
jeffrymsft Feb 27, 2025
9998158
adding matchingFallbacks in msal
jeffrymsft Feb 28, 2025
bc23bba
updating gradle
jeffrymsft Mar 26, 2025
73ee1f1
nit
jeffrymsft Mar 28, 2025
9988cd4
nit
jeffrymsft Mar 28, 2025
5afc979
nits
jeffrymsft Mar 28, 2025
e20750e
nits removing commented lines
jeffrymsft Mar 28, 2025
9377eb4
nits
jeffrymsft Mar 31, 2025
b9df2bd
nits
jeffrymsft Apr 2, 2025
501eb9c
updating common
jeffrymsft Apr 3, 2025
73f8ec3
reverting to java 8
jeffrymsft Apr 3, 2025
b199391
reverting plugin upgrade
jeffrymsft Apr 3, 2025
f269cfc
new plugin
jeffrymsft Apr 7, 2025
13398c4
Update pr-msal.yml for Azure Pipelines
jeffrymsft Apr 8, 2025
6a9520f
new plugin version 0.2.5
jeffrymsft Apr 10, 2025
92a06f5
testing if need a thing
jeffrymsft Apr 12, 2025
6137124
reverting to 0.2.4-1
jeffrymsft Apr 15, 2025
c7ed088
java11 across the board
jeffrymsft Apr 16, 2025
05c89b5
back to 8
jeffrymsft Apr 16, 2025
e3e8b73
nits
jeffrymsft Apr 16, 2025
65c85d7
back 0.2.5
jeffrymsft Apr 16, 2025
d5fcbca
updating changelog
jeffrymsft Apr 17, 2025
c8afc0d
removing package
jeffrymsft Apr 17, 2025
88ec2c6
nits
jeffrymsft Apr 18, 2025
67c03be
prs back to dev
jeffrymsft Apr 22, 2025
a5883e2
updated common
somalaya Jun 23, 2025
3fb24f8
updated latest common
somalaya Jun 23, 2025
cc54839
Trigger CLA check
somalaya Jun 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions azure-pipelines/pull-request-validation/pr-msal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: $(date:yyyyMMdd)$(rev:.r)
trigger: none
variables:
- name: BuildParameters.jdkVersion
value: 1.11
value: 1.17
- name: BuildParameters.jdkArchitecture
value: x64
- name: BuildParameters.javaHomeSelection
Expand Down Expand Up @@ -40,9 +40,9 @@ jobs:
persistCredentials: True
- template: azure-pipelines/templates/steps/automation-cert.yml@common
- task: JavaToolInstaller@0
displayName: Use Java 11
displayName: Use Java 17
inputs:
versionSpec: '11'
versionSpec: '17'
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
- task: CodeQL3000Init@0
Expand All @@ -62,7 +62,7 @@ jobs:
inputs:
tasks: msal:testLocalDebugUnitTest -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PmockApiUrl=$(MOCK_API_URL)
javaHomeSelection: $(BuildParameters.javaHomeSelection)
jdkVersion: 1.11
jdkVersion: 1.17
- job: spotbugs
displayName: SpotBugs
cancelTimeoutInMinutes: 1
Expand Down Expand Up @@ -92,6 +92,6 @@ jobs:
inputs:
tasks: clean msal:lintLocalDebug
publishJUnitResults: false
jdkVersion: 1.11
jdkVersion: 1.17

...
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ MSAL Wiki : https://github.com/AzureAD/microsoft-authentication-library-for-andr

vNext
----------
- [MINOR] Update AGP Version to 8.1.0 (#2254)

Version 6.1.1
----------
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ org.gradle.daemon=true

# See https://stackoverflow.com/questions/56075455/expiring-daemon-because-jvm-heap-space-is-exhausted
# we must make sure that the total size is <7G, as that's the RAM size of VM on the build pipeline.
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
# MaxMetaspaceSize replaced MaxPermSize as of java 8+.https://www.oracle.com/java/technologies/javase/8-whats-new.html
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError

# For OneAuth default abiSelection
abiSelection=x86_64
2 changes: 1 addition & 1 deletion gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ext {
buildToolsVersion = "28.0.3"

// Plugins
gradleVersion = '7.4.2'
gradleVersion = '8.1.1'
kotlinVersion = '1.7.21'
spotBugsGradlePluginVersion = '4.7.1'
jupiterApiVersion = '5.6.0'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
19 changes: 10 additions & 9 deletions msal/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'com.microsoft.identity.buildsystem' version '0.2.3'
id 'com.microsoft.identity.buildsystem' version '0.2.5'
id 'com.android.library'
id 'pmd'
id 'checkstyle'
Expand Down Expand Up @@ -44,7 +44,7 @@ android {
// coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$rootProject.ext.coreLibraryDesugaringVersion"
// }
// }

namespace "com.microsoft.identity.msal"
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
Expand All @@ -71,6 +71,9 @@ android {
project.version = android.defaultConfig.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}

buildTypes {
// testCoverageEnabled flag is set to true to get coverage reports for Android Tests
Expand Down Expand Up @@ -163,7 +166,6 @@ task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
configurations.api.setCanBeResolved(true)
classpath += configurations.api
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))

options.memberLevel = JavadocMemberLevel.PUBLIC
options.addStringOption('Xdoclint:none', '-quiet')
Expand All @@ -172,17 +174,16 @@ task javadoc(type: Javadoc) {
exclude '**/R.java'
destinationDir = reporting.file("$project.buildDir/outputs/jar/javadoc/")
}

// Task to generate javadoc.jar
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier 'javadoc'
archiveClassifier.set('javadoc')
destinationDirectory = reporting.file("$project.buildDir/outputs/jar/")
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier 'sources'
archiveClassifier.set('sources')
destinationDirectory = reporting.file("$project.buildDir/outputs/jar/")
}

Expand Down Expand Up @@ -300,8 +301,8 @@ task pmd(type: Pmd) {
source = fileTree('src/main/java')

reports {
xml.enabled = false
html.enabled = true
xml.required = false
html.required = true
}
}

Expand All @@ -322,7 +323,7 @@ afterEvaluate {
publishing {
publications {
msal(MavenPublication) {
from components.distRelease
from components.findByName('distRelease')
groupId 'com.microsoft.identity.client'
artifactId 'msal'
//Edit the 'version' here for VSTS RC build
Expand Down
3 changes: 1 addition & 2 deletions msal/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.identity.msal">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
6 changes: 4 additions & 2 deletions msalautomationapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (project.hasProperty("localFlights")) {
}

android {

namespace "com.microsoft.identity.client.msal.automationapp"
packagingOptions {
pickFirst 'META-INF/common4j.kotlin_module'
}
Expand All @@ -26,7 +26,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig = true
}
final String BROKER_HOST = "BrokerHost"
final String BROKER_MICROSOFT_AUTHENTICATOR = "BrokerMicrosoftAuthenticator"
final String BROKER_COMPANY_PORTAL = "BrokerCompanyPortal"
Expand Down
3 changes: 1 addition & 2 deletions msalautomationapp/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.identity.client.msal.automationapp">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Expand Down
1 change: 1 addition & 0 deletions package-inspector/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'

android {
namespace "com.microsoft.inspector"
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
Expand Down
3 changes: 1 addition & 2 deletions package-inspector/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.microsoft.inspector">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
Expand Down
1 change: 1 addition & 0 deletions pop-benchmarker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'

android {
namespace "com.microsoft.identity.common.internal.platform"
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
Expand Down
3 changes: 1 addition & 2 deletions pop-benchmarker/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.identity.common.internal.platform">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
3 changes: 2 additions & 1 deletion testapps/testapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if(project.hasProperty('otelAriaToken')) {
}

android {

namespace "com.microsoft.identity.client.testapp"
// Bumping up to Java Version 8 due to the addition of YubiKit SDK,
// which uses Version 8. Host apps that use libraries dependent on version 8
// must also integrate version 8.
Expand Down Expand Up @@ -89,6 +89,7 @@ android {
}
buildFeatures {
viewBinding true
buildConfig true
}
lintOptions {
abortOnError false
Expand Down
4 changes: 1 addition & 3 deletions testapps/testapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.microsoft.identity.client.testapp"
xmlns:tools="http://schemas.android.com/tools">

xmlns:tools="http://schemas.android.com/tools">
<!-- Camera permission is required for QR + PIN authorization method w/o broker-->
<uses-feature
android:name="android.hardware.camera"
Expand Down