Skip to content

Commit 5e65538

Browse files
authored
Merge pull request #845 from mixpanel/zihe-revert-minSDK
Set minSdk to 21, targetSdk to 34, Gradle upgraded to 8.1.4 and add a demo app!
2 parents 68c1cf1 + cb6c94a commit 5e65538

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1523
-142
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
44
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
55
<classpathentry kind="output" path="bin/default"/>
66
</classpath>

.github/workflows/android.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,38 @@ name: Mixpanel Android Pull Request and master branch CI
22

33
on:
44
push:
5-
branches: [ master, 6.0.0.beta ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ master, 6.0.0.beta ]
7+
branches: [ master ]
88

99
jobs:
1010
build:
11-
runs-on: macos-11
11+
runs-on: macos-13
1212
steps:
1313
- name: Checkout the code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4.1.7
1515
- name: Run Unit test
16-
uses: reactivecircus/android-emulator-runner@v2.20.0
16+
uses: reactivecircus/android-emulator-runner@v2.32.0
1717
with:
18-
api-level: 30
19-
profile: Nexus 6
18+
api-level: 34
19+
profile: Nexus 5X
2020
arch: x86_64
2121
script: ./gradlew createDebugCoverageReport
2222
- name: Lint
2323
run: ./gradlew lint
2424
- name: Upload test report
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v4
2626
if: always()
2727
with:
2828
name: Unit Test Report
2929
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/androidTests/connected
3030
- name: Upload test coverage report
31-
uses: actions/upload-artifact@v2
31+
uses: actions/upload-artifact@v4
3232
with:
3333
name: Test Coverage Report
3434
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/coverage/debug/
3535
- name: Upload lint report
36-
uses: actions/upload-artifact@v2
36+
uses: actions/upload-artifact@v4
3737
with:
3838
name: Lint Report
3939
path: /Users/runner/work/mixpanel-android/mixpanel-android/build/reports/lint-results.html

.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
</natures>
2323
<filteredResources>
2424
<filter>
25-
<id>1633027344058</id>
25+
<id>1724996348260</id>
2626
<name></name>
2727
<type>30</type>
2828
<matcher>
2929
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30-
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
30+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
3131
</matcher>
3232
</filter>
3333
</filteredResources>

.settings/org.eclipse.buildship.core.prefs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
arguments=
1+
arguments=--init-script /var/folders/g5/x7ydv84x5znc08rnwr1w7_l40000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/g5/x7ydv84x5znc08rnwr1w7_l40000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
22
auto.sync=false
33
build.scans.enabled=false
44
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
55
connection.project.dir=
66
eclipse.preferences.version=1
77
gradle.user.home=
8-
java.home=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
8+
java.home=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
99
jvm.arguments=
1010
offline.mode=false
1111
override.workspace.settings=true

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "interactive"
3+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#
22

3+
## [v7.5.3](https://github.com/mixpanel/mixpanel-android/tree/v7.5.3) (2024-09-06)
4+
5+
### Enhancements
6+
7+
- upgrade to gradle 8+ and add a demo app [\#840](https://github.com/mixpanel/mixpanel-android/pull/840)
8+
- Add SessionReplayBroadcastReceiver [\#838](https://github.com/mixpanel/mixpanel-android/pull/838)
9+
10+
#
11+
312
## [v7.5.2](https://github.com/mixpanel/mixpanel-android/tree/v7.5.2) (2024-04-16)
413

514
### Enhancements
@@ -1621,6 +1630,8 @@ events being sent.
16211630
16221631
16231632
1633+
1634+
16241635
16251636
16261637

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Latest Version
66

7-
##### _April 15, 2024_ - [v7.5.2](https://github.com/mixpanel/mixpanel-android/releases/tag/v7.5.2)
7+
##### _September 06, 2024_ - [v7.5.3](https://github.com/mixpanel/mixpanel-android/releases/tag/v7.5.3)
88

99
# Table of Contents
1010

build.gradle

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,37 @@ buildscript {
44
google()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:4.1.1'
7+
classpath 'com.android.tools.build:gradle:8.1.4'
8+
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0'
89
}
910
}
1011

1112
apply plugin: 'com.android.library'
12-
apply plugin: 'maven'
13+
apply plugin: 'maven-publish'
1314
apply plugin: 'signing'
1415

1516

1617
group = GROUP
1718
version = VERSION_NAME
1819

1920
android {
20-
compileSdkVersion 33
21-
21+
namespace "com.mixpanel.android"
22+
compileSdk 34
23+
buildToolsVersion = "34.0.0"
2224
compileOptions {
23-
sourceCompatibility JavaVersion.VERSION_1_7
24-
targetCompatibility JavaVersion.VERSION_1_7
25+
sourceCompatibility JavaVersion.VERSION_17
26+
targetCompatibility JavaVersion.VERSION_17
2527
}
2628

2729
lintOptions {
2830
abortOnError false
2931
}
3032

3133
defaultConfig {
32-
minSdkVersion 14
33-
targetSdkVersion 33
34+
minSdk 21
35+
targetSdk 34
3436
multiDexEnabled true
37+
android.buildFeatures.buildConfig true
3538
testApplicationId "com.mixpanel.android.mpmetrics"
3639
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3740
consumerProguardFiles 'proguard.txt'
@@ -49,8 +52,6 @@ android {
4952
testOptions {
5053
execution 'ANDROIDX_TEST_ORCHESTRATOR'
5154
}
52-
53-
5455
}
5556
buildTypes {
5657
debug{
@@ -76,22 +77,27 @@ allprojects {
7677
}
7778
}
7879

79-
// Note- *all* dependencies are marked as optional in our final
80-
// pom! If you need a transitive dependency in the library, you'll
81-
// have to change the bit in uploadArchives that marks all dependencies as optional.
80+
configurations.all {
81+
resolutionStrategy {
82+
force "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22"
83+
force "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22"
84+
}
85+
}
86+
8287
dependencies {
83-
implementation "androidx.annotation:annotation:1.1.0"
84-
88+
implementation "androidx.annotation:annotation:1.8.2"
89+
implementation 'androidx.core:core:1.13.1'
8590
// AndroidJUnitRunner and JUnit Rules
86-
testImplementation 'junit:junit:4.12'
87-
androidTestImplementation 'androidx.test:core:1.4.0'
88-
androidTestImplementation 'androidx.test:runner:1.4.0'
89-
androidTestImplementation 'androidx.test:rules:1.4.0'
90-
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
91-
androidTestImplementation 'androidx.test.ext:truth:1.4.0'
91+
testImplementation 'junit:junit:4.13.2'
92+
androidTestImplementation 'androidx.test:core:1.6.1'
93+
androidTestImplementation 'androidx.test:runner:1.6.2'
94+
androidTestImplementation 'androidx.test:rules:1.6.1'
95+
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
96+
androidTestImplementation 'androidx.test.ext:truth:1.6.0'
9297
androidTestImplementation "org.mockito:mockito-android:2.25.1"
93-
androidTestUtil 'androidx.test:orchestrator:1.4.0'
98+
androidTestUtil 'androidx.test:orchestrator:1.5.0'
9499
testImplementation "org.mockito:mockito-core:2.25.1"
100+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
95101
}
96102

97103
apply from: rootProject.file('maven.gradle')

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=7.5.4
1+
VERSION_NAME=8.0.0-SNAPSHOT
22

33
POM_PACKAGING=aar
44
GROUP=com.mixpanel.android

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip

0 commit comments

Comments
 (0)