Skip to content

Commit 37910f8

Browse files
committed
Update version to ensure that the minSDK is set to 19 in the jitpack build.
2 parents 1a583fc + 7d5775f commit 37910f8

File tree

2 files changed

+13
-64
lines changed

2 files changed

+13
-64
lines changed

DeviceIdentifiersWrapper/build.gradle

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
defaultConfig {
1313
minSdkVersion 19
1414
targetSdkVersion 32
15-
versionCode 5
16-
versionName "0.5"
15+
versionCode 6
16+
versionName "0.6"
1717

1818
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1919

@@ -40,54 +40,3 @@ dependencies {
4040
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
4141
compileOnly 'com.symbol:emdk:+'
4242
}
43-
44-
/*
45-
Generate release files for publication and Zip them
46-
https://medium.com/@daniellevass/how-to-publish-your-android-studio-library-to-jcenter-5384172c4739
47-
https://raw.githubusercontent.com/blundell/release-android-library/master/android-release-aar.gradle
48-
*/
49-
50-
// ./gradlew clean build generateRelease
51-
apply plugin: 'maven'
52-
53-
def version = project.PUBLISH_VERSION
54-
55-
def localReleaseDest = "${buildDir}/release/${version}"
56-
57-
task androidJavadocs(type: Javadoc) {
58-
failOnError = false
59-
source = android.sourceSets.main.java.srcDirs
60-
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
61-
classpath += files(ext.androidJar)
62-
}
63-
64-
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
65-
archiveClassifier = 'javadoc'
66-
from androidJavadocs.destinationDir
67-
}
68-
69-
task androidSourcesJar(type: Jar) {
70-
archiveClassifier = 'sources'
71-
from android.sourceSets.main.java.srcDirs
72-
}
73-
74-
task zipRelease(type: Zip) {
75-
from localReleaseDest
76-
destinationDir buildDir
77-
archiveBaseName = "release-${version}"
78-
}
79-
80-
task generateRelease {
81-
doLast {
82-
println "Release ${version} can be found at ${localReleaseDest}/"
83-
println "Release ${version} zipped can be found ${buildDir}/release-${version}.zip"
84-
}
85-
}
86-
87-
generateRelease.dependsOn(zipRelease)
88-
89-
90-
artifacts {
91-
archives androidSourcesJar
92-
archives androidJavadocsJar
93-
}

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
## Sample Repository
1212
https://github.com/ltrudu/DeviceIdentifiersWrapper-Sample
1313

14-
## V0.4 : Basic cache mechanism
14+
## V0.4 : Basic cache mechanism & Wait for EMDK availability
1515
```text
1616
Added basic cache mechanism.
17-
The IMei and the Serial number will be cached once they get retrieved.
18-
The cache can be reset with the method:
19-
DIHelper.resetCachedValues()
20-
Added a mechanism to wait for the EMDK if it is not available (when responding to the BOOT_COMPLETED event for ex.
21-
To be tested... feel free to report any issue regarding this feature.
17+
The IMei and the Serial number will be cached once they get retrieved.
18+
The cache can be reset with the method:
19+
DIHelper.resetCachedValues()
20+
Added a mechanism to wait for the EMDK if it is not available (when responding to the BOOT_COMPLETED event for ex.)
21+
To be tested... feel free to report any issue regarding this feature.
2222
```
2323
## V0.3 : Update for A11
2424
```text
@@ -34,11 +34,11 @@ https://github.com/ltrudu/DeviceIdentifiersWrapper-Sample
3434
## Important !!
3535
```text
3636
Due to usage of the EMDK and the need to register the application, it is strongly advised to call the methods in your application class
37-
Check https://github.com/ltrudu/DeviceIdentifiersWrapper-Sample implementation.
38-
It's a basic implementation using static members.
39-
Feel free to remove statics and replace them with a better code in terms of architecture.
40-
The goal was to pass the idea that theses number should be retrieved only once, and the best place for it is the Application class.
41-
Note that a mechanism has been added in V0.4 to wait for the EMDK in case it would not be available (the classic use case is when your app respond to the BOOT_COMPLETED event that occurs way before the EMDK finishes its initialization)
37+
Check https://github.com/ltrudu/DeviceIdentifiersWrapper-Sample implementation.
38+
It's a basic implementation using static members.
39+
Feel free to remove statics and replace them with a better code in terms of architecture.
40+
The goal was to pass the idea that theses number should be retrieved only once, and the best place for it is the Application class.
41+
Note that a mechanism has been added in V0.4 to wait for the EMDK in case it would not be available (the classic use case is when your app respond to the BOOT_COMPLETED event that occurs way before the EMDK finishes its initialization)
4242
```
4343

4444
## Description

0 commit comments

Comments
 (0)