Skip to content

Commit 44ead25

Browse files
committed
- adds android project structure
1 parent deafc0f commit 44ead25

File tree

9 files changed

+430
-0
lines changed

9 files changed

+430
-0
lines changed

android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.gradle
2+
build

android/AndroidManifest.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.microsoft.graph"
5+
android:installLocation="auto"
6+
tools:ignore="UnusedAttribute">
7+
8+
<uses-permission android:name="android.permission.INTERNET" />
9+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
10+
11+
<supports-screens
12+
android:anyDensity="true"
13+
android:largeScreens="true"
14+
android:normalScreens="true"
15+
android:smallScreens="true"
16+
android:xlargeScreens="true" />
17+
18+
<application
19+
android:hardwareAccelerated="true"
20+
android:fullBackupContent="true"
21+
android:allowBackup="true"
22+
android:supportsRtl="true"
23+
tools:ignore="GoogleAppIndexingWarning"></application>
24+
</manifest>

android/build.gradle

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
gradlePluginPortal()
5+
maven {
6+
url "https://plugins.gradle.org/m2/"
7+
}
8+
}
9+
10+
dependencies {
11+
classpath "com.gradle:gradle-enterprise-gradle-plugin:3.5"
12+
classpath "com.android.tools.build:gradle:4.0.1"
13+
classpath "com.github.ben-manes:gradle-versions-plugin:0.36.0"
14+
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
15+
}
16+
}
17+
18+
repositories {
19+
google()
20+
gradlePluginPortal()
21+
}
22+
23+
apply plugin: "com.android.library"
24+
apply plugin: "com.github.ben-manes.versions"
25+
26+
android {
27+
compileSdkVersion 29
28+
29+
defaultConfig {
30+
versionCode 1
31+
versionName "1.0"
32+
minSdkVersion 21
33+
targetSdkVersion 29
34+
}
35+
36+
buildTypes {
37+
release {
38+
minifyEnabled false
39+
}
40+
}
41+
42+
compileOptions {
43+
sourceCompatibility JavaVersion.VERSION_1_8
44+
targetCompatibility JavaVersion.VERSION_1_8
45+
}
46+
47+
lintOptions {
48+
textOutput "stdout"
49+
checkAllWarnings true
50+
warningsAsErrors true
51+
disable "UnusedResources" // Unused will be removed on release
52+
disable "IconExpectedSize" // Using the material icons provided from Google
53+
disable "GoogleAppIndexingApiWarning" // We might want to index our app later
54+
disable "InvalidPackage" // Butterknife, Okio and Realm
55+
disable "ResourceType" // Annotation binding
56+
disable "GradleDependency"
57+
disable "NewerVersionAvailable"
58+
}
59+
sourceSets {
60+
main {
61+
java.srcDirs = ['../src/main/java']
62+
res.srcDirs = ['../src/main/java']
63+
manifest.srcFile 'AndroidManifest.xml'
64+
}
65+
androidTest {
66+
setRoot '../src/test'
67+
}
68+
}
69+
}
70+
71+
apply from: "../gradle/dependencies.gradle"

android/gradle.properties

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE users:
4+
# Settings specified in this file will override any Gradle settings
5+
# configured through the IDE.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13+
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14+
15+
# When configured, Gradle will run in incubating parallel mode.
16+
# This option should only be used with decoupled projects. More details, visit
17+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18+
# org.gradle.parallel=true
19+
20+
# The size of the library demands a large amount of RAM to build. Increase as necessary if you get GC errors
21+
## linux requires 10G, OSX requires 11G
22+
org.gradle.jvmargs=-XX:MaxPermSize=512m -Xmx2g
23+
org.gradle.parallel=true
24+
org.gradle.caching=true
25+
26+
mavenGroupId = com.microsoft.graph
27+
mavenArtifactId = microsoft-graph-core
28+
mavenMajorVersion = 2
29+
mavenMinorVersion = 3
30+
mavenPatchVersion = 1
31+
mavenArtifactSuffix =
32+
nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven
33+
34+
#These values are used to run functional tests
35+
#If you wish to run the functional tests, edit the gradle.properties
36+
#file in your user directory instead of adding them here.
37+
#ex: C:\Users\username\.gradle\gradle.properties
38+
ClientId="CLIENT_ID"
39+
Username="USERNAME"
40+
Password="PASSWORD"
41+
42+
#enable mavenCentralPublishingEnabled to publish to maven central
43+
mavenCentralSnapshotArtifactSuffix = -SNAPSHOT
44+
mavenCentralPublishingEnabled=false
57.8 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 185 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)