-
Notifications
You must be signed in to change notification settings - Fork 7
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 #78 from microsoftgraph/feature/v3
- aligns beta sdk with v3 work
- Loading branch information
Showing
31,861 changed files
with
1,286,793 additions
and
2,120,219 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Checks the SDK only using APIs from the targeted API level" | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
branches: | ||
- dev | ||
- feature/v3 | ||
|
||
jobs: | ||
lint-api-level: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 15 | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v2 | ||
- name: Add execution right to the script | ||
run: chmod +x gradlew | ||
working-directory: ./android | ||
- name: Build SDK with Android project configuration | ||
id: lint | ||
run: ./gradlew --no-daemon build | ||
working-directory: ./android | ||
- name: Upload linting results | ||
if: failure() && steps.lint.outcome == 'failure' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: lint-report | ||
path: ./android/build/reports |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.gradle | ||
build |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?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.graph" | ||
android:installLocation="auto" | ||
tools:ignore="UnusedAttribute"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
|
||
<supports-screens | ||
android:anyDensity="true" | ||
android:largeScreens="true" | ||
android:normalScreens="true" | ||
android:smallScreens="true" | ||
android:xlargeScreens="true" /> | ||
|
||
<application | ||
android:hardwareAccelerated="true" | ||
android:fullBackupContent="true" | ||
android:allowBackup="true" | ||
android:supportsRtl="true" | ||
tools:ignore="GoogleAppIndexingWarning"></application> | ||
</manifest> |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
gradlePluginPortal() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
|
||
dependencies { | ||
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.5" | ||
classpath "com.android.tools.build:gradle:4.0.1" | ||
classpath "com.github.ben-manes:gradle-versions-plugin:0.36.0" | ||
} | ||
} | ||
|
||
repositories { | ||
google() | ||
gradlePluginPortal() | ||
} | ||
|
||
apply plugin: "com.android.library" | ||
apply plugin: "com.github.ben-manes.versions" | ||
|
||
android { | ||
compileSdkVersion 30 | ||
|
||
defaultConfig { | ||
versionCode 1 | ||
versionName "1.0" | ||
minSdkVersion 26 | ||
targetSdkVersion 30 | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
lintOptions { | ||
textOutput "stdout" | ||
checkAllWarnings true | ||
warningsAsErrors true | ||
disable "UnusedResources" // Unused will be removed on release | ||
disable "IconExpectedSize" // Using the material icons provided from Google | ||
disable "GoogleAppIndexingApiWarning" // We might want to index our app later | ||
disable "InvalidPackage" // Butterknife, Okio and Realm | ||
disable "ResourceType" // Annotation binding | ||
disable "GradleDependency" | ||
disable "NewerVersionAvailable" | ||
disable "PropertyPrefixes" // getting false positives because of odata actions & functions (getOrder setOrder) | ||
} | ||
sourceSets { | ||
main { | ||
java.srcDirs = ['../src/main/java'] | ||
res.srcDirs = ['../src/main/java'] | ||
manifest.srcFile 'AndroidManifest.xml' | ||
} | ||
androidTest { | ||
setRoot '../src/test' | ||
} | ||
} | ||
} | ||
|
||
apply from: "../gradle/dependencies.gradle" |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Project-wide Gradle settings. | ||
|
||
# IDE users: | ||
# Settings specified in this file will override any Gradle settings | ||
# configured through the IDE. | ||
|
||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
|
||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
|
||
# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors | ||
## linux requires 10G, OSX requires 11G | ||
org.gradle.jvmargs=-XX:MaxPermSize=512m -Xmx2g | ||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
|
||
mavenGroupId = com.microsoft.graph | ||
mavenArtifactId = microsoft-graph | ||
mavenMajorVersion = 2 | ||
mavenMinorVersion = 3 | ||
mavenPatchVersion = 1 | ||
mavenArtifactSuffix = | ||
|
||
#These values are used to run functional tests | ||
#If you wish to run the functional tests, edit the gradle.properties | ||
#file in your user directory instead of adding them here. | ||
#ex: C:\Users\username\.gradle\gradle.properties | ||
ClientId="CLIENT_ID" | ||
Username="USERNAME" | ||
Password="PASSWORD" | ||
|
||
#enable mavenCentralPublishingEnabled to publish to maven central | ||
mavenCentralSnapshotArtifactSuffix = -SNAPSHOT | ||
mavenCentralPublishingEnabled=false |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.