Skip to content

Commit 5fd1623

Browse files
authored
Added a Template module to test CI. (Azure#1054)
1 parent a3d21e8 commit 5fd1623

File tree

9 files changed

+88
-1
lines changed

9 files changed

+88
-1
lines changed

Diff for: sdk/template/azure-sdk-template/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

Diff for: sdk/template/azure-sdk-template/build.gradle

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ext.publishName = "Microsoft Azure Android Template Library"
2+
description = "This package is a template placeholder for the Azure SDK for Android clients."
3+
ext.versionCode = 1
4+
5+
android {
6+
defaultConfig {
7+
versionCode project.versionCode
8+
versionName project.version
9+
}
10+
}
11+
12+
dependencies {
13+
testImplementation 'junit:junit:4.13.2'
14+
}

Diff for: sdk/template/azure-sdk-template/gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=1.0.0-beta.1

Diff for: sdk/template/azure-sdk-template/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.azure.android.template">
3+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
package com.azure.android.template;
5+
6+
/**
7+
* Dummy placeholder class
8+
*/
9+
public final class Dummy {
10+
/**
11+
* Creates a new {@link Dummy} object.
12+
*/
13+
public Dummy() {
14+
}
15+
16+
/**
17+
* Does nothing.
18+
*/
19+
public static void doNothing() {
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
/** Package containing the classes for AzureTemplate.*/
5+
package com.azure.android.template;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
package com.azure.android.template;
5+
6+
import org.junit.Test;
7+
8+
public class DummyTest {
9+
10+
@Test
11+
public void constructor() {
12+
final Dummy dummy = new Dummy();
13+
}
14+
15+
@Test
16+
public void doNothing() {
17+
final Dummy dummy = new Dummy();
18+
dummy.doNothing();
19+
}
20+
}

Diff for: settings.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ include ":sdk:core:azure-core-http-httpurlconnection"
1010
include ":sdk:core:azure-core-rest"
1111
include ":sdk:core:azure-core-test"
1212
include ":eng:code-quality-reports"
13-
include ':samples:sample-chat-app'
13+
include ":sdk:template:azure-sdk-template"
14+
include ":samples:sample-chat-app"

0 commit comments

Comments
 (0)