Skip to content

Commit 8cc003f

Browse files
committed
Update room version to 2.8.4
In addition bump gradle and AGP version
1 parent 9667118 commit 8cc003f

File tree

15 files changed

+329
-80
lines changed

15 files changed

+329
-80
lines changed

lib/android_build/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ android {
4040
dependencies {
4141
implementation fileTree(dir: 'libs', include: ['*.jar'])
4242
implementation project(':maesdk')
43-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
44-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
43+
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
44+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
4545
}

lib/android_build/app/src/androidTest/java/com/microsoft/applications/events/maesdktest/OfflineRoomUnitTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import static org.hamcrest.Matchers.*;
2121
import static org.junit.Assert.assertEquals;
22+
import static org.junit.Assert.assertNotEquals;
2223
import static org.junit.Assert.assertNotNull;
2324
import static org.junit.Assert.assertThat;
2425

@@ -41,7 +42,8 @@ public void storeOneRecord() {
4142
room.storeRecords(record);
4243
assertEquals(1, room.getRecordCount(StorageRecord.EventLatency_Unspecified));
4344
assertEquals(1, room.getRecordCount(StorageRecord.EventLatency_Normal));
44-
assertThat(room.totalSize(), Matchers.greaterThan(new Long(0)));
45+
assertThat(room.totalSize(), Matchers.greaterThan(0L));
46+
assertNotEquals(room.loadPageSize(), -1L);
4547
assertEquals(1, room.deleteAllRecords());
4648
}
4749
}

lib/android_build/app/src/androidTest/java/com/microsoft/applications/events/maesdktest/SDKUnitNativeTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ public void resumingAlsoEnds() {
254254
@Test
255255
public void runNativeTests() {
256256
System.loadLibrary("native-lib");
257-
System.loadLibrary("maesdk");
258257

259258
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
260259
HttpClient client = new HttpClient(appContext);

lib/android_build/app/src/main/cpp/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ include_directories(
8181

8282
find_library(zlib-path z)
8383

84-
add_library(maesdk SHARED IMPORTED)
85-
set_target_properties(maesdk PROPERTIES
86-
IMPORTED_LOCATION "${SDK_ROOT}/lib/android_build/maesdk/build/intermediates/cmake/debug/obj/${CMAKE_ANDROID_ARCH_ABI}/libmaesdk.so"
87-
IMPORTED_LOCATION_Release "${SDK_ROOT}/lib/android_build/maesdk/build/intermediates/cmake/debug/obj/${CMAKE_ANDROID_ARCH_ABI}/libmaesdk.so")
84+
#Add maesdk as a dependency
85+
add_subdirectory(../../../../maesdk/src/main/cpp maesdk)
8886

8987
# include the other flavor of database: if maesdk builds with Room include sqlite
9088
# if maesdk builds with native sqlite, include Room

lib/android_build/app/src/main/java/com/microsoft/applications/events/maesdktest/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ void log_failure(String filename, int line, String summary) {
2727
// Used to load the 'native-lib' library on application startup.
2828
static {
2929
System.loadLibrary("native-lib");
30-
System.loadLibrary("maesdk");
3130
}
3231

3332
HttpClient m_client;

lib/android_build/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
mavenCentral()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.3.1'
10+
classpath 'com.android.tools.build:gradle:8.2.2'
1111

1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
-15.7 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Wed Feb 01 08:36:33 EET 2023
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

lib/android_build/gradlew

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

lib/android_build/gradlew.bat

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

0 commit comments

Comments
 (0)