Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
46825fc
enable android build
timtay-microsoft Jan 12, 2026
5a55acf
?
timtay-microsoft Jan 13, 2026
37309ba
install java 8
timtay-microsoft Jan 13, 2026
5649509
?
timtay-microsoft Jan 14, 2026
65ca661
1
timtay-microsoft Jan 14, 2026
705ea58
17
timtay-microsoft Jan 14, 2026
70f2df6
lombok version
timtay-microsoft Jan 14, 2026
5391435
logs
timtay-microsoft Jan 15, 2026
a192503
stacktrace
timtay-microsoft Jan 15, 2026
ca8df82
7.3.3
timtay-microsoft Jan 15, 2026
02c6adf
dummy project
timtay-microsoft Jan 15, 2026
808ad25
2
timtay-microsoft Jan 15, 2026
ff0b94e
don't deploy cloud resources
timtay-microsoft Jan 15, 2026
9dd4124
gradle properties
timtay-microsoft Jan 15, 2026
ffd9497
more
timtay-microsoft Jan 15, 2026
16aae9d
2
timtay-microsoft Jan 15, 2026
48c283d
manifest
timtay-microsoft Jan 15, 2026
77d5cc2
yep
timtay-microsoft Jan 15, 2026
060d652
asdf
timtay-microsoft Jan 15, 2026
3916099
asdf
timtay-microsoft Jan 15, 2026
708664f
2
timtay-microsoft Jan 15, 2026
f8490c3
?
timtay-microsoft Jan 15, 2026
db256fc
?
timtay-microsoft Jan 15, 2026
f7de16a
timeout
timtay-microsoft Jan 16, 2026
fc6e58b
path?
timtay-microsoft Jan 16, 2026
b91667b
asdf
timtay-microsoft Jan 16, 2026
51e31ab
asdf
timtay-microsoft Jan 16, 2026
f8a4d0b
asdf
timtay-microsoft Jan 16, 2026
1ba9c71
60
timtay-microsoft Jan 16, 2026
c1b76fd
Update ExampleTest.java
timtay-microsoft Jan 16, 2026
32b223b
asdf
timtay-microsoft Jan 16, 2026
f0688bc
diff script?
timtay-microsoft Jan 16, 2026
6bbea43
groups
timtay-microsoft Jan 16, 2026
0ca60e3
default apis
timtay-microsoft Jan 16, 2026
7bc6b0b
12 parallel
timtay-microsoft Jan 16, 2026
c4b997f
AndroidJUnit4
timtay-microsoft Jan 16, 2026
02192e6
instrumentation?
timtay-microsoft Jan 16, 2026
35ed90f
15
timtay-microsoft Jan 16, 2026
00779f1
dep
timtay-microsoft Jan 17, 2026
35e1be8
list available instrumentations
timtay-microsoft Jan 17, 2026
81e9044
nevermind
timtay-microsoft Jan 17, 2026
3bf161e
maybe?
timtay-microsoft Jan 17, 2026
61f973d
one real test
timtay-microsoft Jan 17, 2026
67f26cc
tear down
timtay-microsoft Jan 17, 2026
387632d
vars
timtay-microsoft Jan 17, 2026
010390c
string?
timtay-microsoft Jan 17, 2026
28bfdcf
always tear down
timtay-microsoft Jan 17, 2026
e73cd3c
depend
timtay-microsoft Jan 17, 2026
d969879
derp
timtay-microsoft Jan 17, 2026
adebfc9
?
timtay-microsoft Jan 17, 2026
9b3ff2b
android.buildFeatures.buildConfig = true
timtay-microsoft Jan 17, 2026
57d6406
google
timtay-microsoft Jan 17, 2026
c471eff
asdf
timtay-microsoft Jan 17, 2026
ea77a8f
28
timtay-microsoft Jan 17, 2026
4f3c785
min 26
timtay-microsoft Jan 17, 2026
fef5bf7
asdf
timtay-microsoft Jan 19, 2026
af62463
Revert "asdf"
timtay-microsoft Jan 19, 2026
9cd8681
dup?
timtay-microsoft Jan 19, 2026
194a336
asdf
timtay-microsoft Jan 19, 2026
f9e30e9
dup?
timtay-microsoft Jan 19, 2026
ba3c38e
missing
timtay-microsoft Jan 19, 2026
eb9cd4f
bob
timtay-microsoft Jan 19, 2026
a8e3777
?
timtay-microsoft Jan 19, 2026
d01820d
?
timtay-microsoft Jan 19, 2026
8359d6c
no bob
timtay-microsoft Jan 19, 2026
016e213
deps list
timtay-microsoft Jan 20, 2026
b1e2e2f
?
timtay-microsoft Jan 20, 2026
a62b379
latest?
timtay-microsoft Jan 20, 2026
4c64ec7
latest in android proj too
timtay-microsoft Jan 20, 2026
59efb44
andr
timtay-microsoft Jan 20, 2026
d4ec174
?
timtay-microsoft Jan 20, 2026
f9f449b
?
timtay-microsoft Jan 20, 2026
ace5f34
back to 6.8.3
timtay-microsoft Jan 20, 2026
29021b4
back to 9.2.1
timtay-microsoft Jan 20, 2026
3c463c1
Revert "back to 9.2.1"
timtay-microsoft Jan 20, 2026
8fccb1a
Revert "back to 6.8.3"
timtay-microsoft Jan 20, 2026
112dd1a
Revert "?"
timtay-microsoft Jan 20, 2026
a162e39
Revert "?"
timtay-microsoft Jan 20, 2026
25d406e
Revert "andr"
timtay-microsoft Jan 20, 2026
d75369e
Revert "latest in android proj too"
timtay-microsoft Jan 20, 2026
9908455
Revert "latest?"
timtay-microsoft Jan 20, 2026
7e4e997
Revert "?"
timtay-microsoft Jan 20, 2026
9156777
Revert "deps list"
timtay-microsoft Jan 20, 2026
1806aab
Revert "no bob"
timtay-microsoft Jan 20, 2026
f8ceb79
proxy lib
timtay-microsoft Jan 20, 2026
9791553
test proxy with auth
timtay-microsoft Jan 20, 2026
8264d79
old groups
timtay-microsoft Jan 21, 2026
4a58154
digital twin tests
timtay-microsoft Jan 21, 2026
a6fe5f8
timeout
timtay-microsoft Jan 21, 2026
51d9ab3
manifest
timtay-microsoft Jan 21, 2026
6d25533
manifest error?
timtay-microsoft Jan 21, 2026
18fb3e6
?
timtay-microsoft Jan 21, 2026
973cc7e
not needed
timtay-microsoft Jan 21, 2026
ee3ab65
asdf
timtay-microsoft Jan 21, 2026
616a744
fix?
timtay-microsoft Jan 21, 2026
e507afe
delete old android path
timtay-microsoft Jan 21, 2026
307139c
latest azure core fixes it?
timtay-microsoft Jan 21, 2026
6631604
re-enable linux + win
timtay-microsoft Jan 21, 2026
45d9afb
android2 to android
timtay-microsoft Jan 21, 2026
8c99b7a
bah
timtay-microsoft Jan 21, 2026
a36b411
proxy auth vs no auth
timtay-microsoft Jan 21, 2026
1d06a69
4
timtay-microsoft Jan 21, 2026
3da9edb
asdf
timtay-microsoft Jan 21, 2026
af48f54
Revert "android2 to android"
timtay-microsoft Jan 21, 2026
643db67
super
timtay-microsoft Jan 21, 2026
98e4f69
android2 to android
timtay-microsoft Jan 21, 2026
737eba4
todo
timtay-microsoft Jan 21, 2026
d396de5
gradle properties file
timtay-microsoft Jan 21, 2026
11d5944
unused
timtay-microsoft Jan 21, 2026
880d8c7
Merge branch 'main' into timtay/android
timtay-microsoft Jan 21, 2026
5ff00dc
re-add
timtay-microsoft Jan 22, 2026
ed22603
Merge branch 'timtay/android' of https://github.com/Azure/azure-iot-s…
timtay-microsoft Jan 22, 2026
1c9b280
cr comments
timtay-microsoft Jan 23, 2026
ad096d9
re-enable skipping tests when relevant
timtay-microsoft Jan 23, 2026
4a8f8f1
small fix
timtay-microsoft Jan 23, 2026
c4096c0
This broke some tests, oddly
timtay-microsoft Jan 24, 2026
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
15 changes: 15 additions & 0 deletions iot-e2e-tests/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
34 changes: 0 additions & 34 deletions iot-e2e-tests/android/AndroidDeviceSelect.py

This file was deleted.

1 change: 1 addition & 0 deletions iot-e2e-tests/android/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
86 changes: 35 additions & 51 deletions iot-e2e-tests/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.android.application'
plugins {
alias(libs.plugins.android.application)
}

//***********************************************************************************************//
def IOTHUB_CONNECTION_STRING_ENV_VAR_NAME = project.hasProperty('IOTHUB_CONNECTION_STRING') ? '"'+project.property('IOTHUB_CONNECTION_STRING')+'"' : '""'
Expand All @@ -13,68 +15,45 @@ def RECYCLE_TEST_IDENTITIES = project.hasProperty('RECYCLE_TEST_IDENTITIES') ? '
def STRING='String'
//***********************************************************************************************//

android {
compileSdkVersion 28
android.buildFeatures.buildConfig = true

android {
namespace 'com.microsoft.azure.sdk.iot.androidtest'
compileSdk {
version = release(36)
}

defaultConfig {
javaCompileOptions.annotationProcessorOptions.includeCompileClasspath true
applicationId "com.iothub.azure.microsoft.com.androide2e"
minSdkVersion 24
targetSdkVersion 28
applicationId "com.microsoft.azure.sdk.iot.androidtest"
minSdkVersion 26
targetSdk 28
multiDexEnabled true
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
//********** We can define variables here **********
each {
//buildTypes.mBuildConfigFields 'DATATYPE','VARIABLE',|"GRADLE VARIABLE|"'
buildConfigField STRING, 'IOTHUB_CONNECTION_STRING', IOTHUB_CONNECTION_STRING_ENV_VAR_NAME
buildConfigField STRING, 'IOT_DPS_CONNECTION_STRING', IOT_DPS_CONNECTION_STRING
buildConfigField STRING, 'DPS_GLOBALDEVICEENDPOINT_INVALIDCERT', INVALID_DEVICE_PROVISIONING_SERVICE_GLOBAL_ENDPOINT
buildConfigField STRING, 'PROVISIONING_CONNECTION_STRING_INVALIDCERT', INVALID_DEVICE_PROVISIONING_SERVICE_CONNECTION_STRING
buildConfigField STRING, 'IOT_DPS_ID_SCOPE', DEVICE_PROVISIONING_SERVICE_ID_SCOPE
buildConfigField STRING, 'IS_BASIC_TIER_HUB', IS_BASIC_TIER_HUB
buildConfigField STRING, 'IS_PULL_REQUEST', IS_PULL_REQUEST
buildConfigField STRING, 'RECYCLE_TEST_IDENTITIES', RECYCLE_TEST_IDENTITIES
}
buildConfigField STRING, 'IOTHUB_CONNECTION_STRING', IOTHUB_CONNECTION_STRING_ENV_VAR_NAME
buildConfigField STRING, 'IOT_DPS_CONNECTION_STRING', IOT_DPS_CONNECTION_STRING
//buildConfigField STRING, 'DPS_GLOBALDEVICEENDPOINT_INVALIDCERT', INVALID_DEVICE_PROVISIONING_SERVICE_GLOBAL_ENDPOINT
//buildConfigField STRING, 'PROVISIONING_CONNECTION_STRING_INVALIDCERT', INVALID_DEVICE_PROVISIONING_SERVICE_CONNECTION_STRING
buildConfigField STRING, 'IOT_DPS_ID_SCOPE', DEVICE_PROVISIONING_SERVICE_ID_SCOPE
buildConfigField STRING, 'IS_BASIC_TIER_HUB', IS_BASIC_TIER_HUB
buildConfigField STRING, 'IS_PULL_REQUEST', IS_PULL_REQUEST
buildConfigField STRING, 'RECYCLE_TEST_IDENTITIES', RECYCLE_TEST_IDENTITIES
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

packagingOptions {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'thirdpartynotice.txt'
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

lintOptions{
ignore 'InvalidPackage'
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:multidex:1.0.3'

// This jar contains the test code that will be run on android. This jar isn't in the m2 folder, but rather it is in this cloned repo after mvn install is run
implementation files('../../common/target/iot-e2e-common-1.0.0-tests.jar')
Expand All @@ -84,13 +63,18 @@ dependencies {

implementation ('org.apache.commons:commons-lang3:3.6')
implementation ('javax.xml.stream:stax-api:1.0-2')

androidTestImplementation 'com.android.support:support-annotations:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'junit:junit:4.12'

androidTestImplementation libs.runner
implementation libs.appcompat
implementation libs.material
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
}

repositories {
mavenLocal()
google()
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
28 changes: 9 additions & 19 deletions iot-e2e-tests/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\v-askhur.REDMOND\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# JSON parser classes don't mix well with minification because JSON parser classes use reflection
# based on the name of the field to create the JSON, and minification changes those names. As a result
# all the message payload serializing and deserializing breaks. These lines explicitly exclude
# the packages where we keep our JSON parsing classes from minification to avoid this issue
-keep class com.microsoft.azure.sdk.iot.provisioning.device.internal.parser.* { *; }
-keep class com.microsoft.azure.sdk.iot.deps.serializer.* { *; }
-keep class com.microsoft.azure.sdk.iot.provisioning.service.configs.* { *; }
-keep class com.microsoft.azure.sdk.iot.deps.twin.* { *; }
-keep class com.microsoft.azure.sdk.iot.service.registry.ImportMode { *; }
-keep class com.microsoft.azure.sdk.iot.service.AuthenticationMechanism { *; }
-keep class com.microsoft.azure.sdk.iot.device.edge.MethodRequest { *; }
-keep class com.microsoft.azure.sdk.iot.device.hsm.parser.ErrorResponse { *; }
-keep class com.microsoft.azure.sdk.iot.device.hsm.parser.SignRequest { *; }
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub;
package com.microsoft.azure.sdk.iot.androidtest.iothub;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup10;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub;
package com.microsoft.azure.sdk.iot.androidtest.iothub;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup6;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import org.junit.Ignore;
import org.junit.runner.RunWith;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub;
package com.microsoft.azure.sdk.iot.androidtest.iothub;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup12;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;

import tests.integration.com.microsoft.azure.sdk.iot.iothub.TokenRenewalTests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.microsoft.azure.sdk.iot.android.iothub.connection;
package com.microsoft.azure.sdk.iot.androidtest.iothub.connection;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup11;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType;
import org.junit.runner.RunWith;
Expand All @@ -12,8 +12,8 @@
@RunWith(Parameterized.class)
public class ConnectionTestsAndroidRunner extends ConnectionTests
{
public ConnectionTestsAndroidRunner(IotHubClientProtocol protocol, AuthenticationType authenticationType, ClientType clientType, boolean withProxy) throws Exception
public ConnectionTestsAndroidRunner(IotHubClientProtocol protocol, AuthenticationType authenticationType, ClientType clientType, boolean withProxy, boolean withProxyAuth) throws Exception
{
super(protocol, authenticationType, clientType, withProxy);
super(protocol, authenticationType, clientType, withProxy, withProxyAuth);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.digitaltwin;
package com.microsoft.azure.sdk.iot.androidtest.iothub.digitaltwin;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup10;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;

import tests.integration.com.microsoft.azure.sdk.iot.digitaltwin.DigitalTwinClientTests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.digitaltwin;
package com.microsoft.azure.sdk.iot.androidtest.iothub.digitaltwin;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup10;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;

import tests.integration.com.microsoft.azure.sdk.iot.digitaltwin.DigitalTwinClientComponentTests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub.errorinjection;
package com.microsoft.azure.sdk.iot.androidtest.iothub.errorinjection;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup5;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub.errorinjection;
package com.microsoft.azure.sdk.iot.androidtest.iothub.errorinjection;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup3;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/

package com.microsoft.azure.sdk.iot.android.iothub.errorinjection;
package com.microsoft.azure.sdk.iot.androidtest.iothub.errorinjection;

import com.microsoft.azure.sdk.iot.android.helper.TestGroup4;
import com.microsoft.azure.sdk.iot.androidtest.testgroup.*;
import com.microsoft.azure.sdk.iot.device.IotHubClientProtocol;
import com.microsoft.azure.sdk.iot.service.auth.AuthenticationType;

Expand Down
Loading
Loading