Skip to content

Commit 4821846

Browse files
committed
Downgrade minSdkApi to 14
1 parent f2d58de commit 4821846

8 files changed

Lines changed: 14 additions & 16 deletions

File tree

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
compileSdkVersion rootProject.ext.sdkVersion
1111

1212
defaultConfig {
13-
minSdkVersion 16
13+
minSdkVersion 14
1414
targetSdkVersion rootProject.ext.sdkVersion
1515
versionCode 1
1616
versionName "1.0"

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/BaseIntentBuilder.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ open class BaseIntentBuilder<out S, T>(private val classT: Class<T>) {
449449
* prefix, for example the app com.android.contacts would use names
450450
* like "com.android.contacts.ShowAll".
451451
*
452-
* @param extras The Bundle of extras to add to this createdIntent.
452+
* @param value The Bundle of extras to add to this createdIntent.
453453
*/
454454
fun putExtras(value: Bundle): S {
455455
extras.putAll(value)
@@ -459,7 +459,7 @@ open class BaseIntentBuilder<out S, T>(private val classT: Class<T>) {
459459
/**
460460
* Copy all extras in 'src' in to this createdIntent.
461461
*
462-
* @param src Contains the extras to copy.
462+
* @param value Contains the extras to copy.
463463
*/
464464
fun putExtras(value: Intent): S {
465465
extras.putAll(value.extras)
@@ -470,7 +470,7 @@ open class BaseIntentBuilder<out S, T>(private val classT: Class<T>) {
470470
* Completely replace the extras in the Intent with the extras in the
471471
* given Intent.
472472
*
473-
* @param src The exact extras contained in this Intent are copied
473+
* @param value The exact extras contained in this Intent are copied
474474
* into the target createdIntent, replacing any that were previously there.
475475
*/
476476
fun replaceExtras(value: Intent): S {
@@ -491,7 +491,7 @@ open class BaseIntentBuilder<out S, T>(private val classT: Class<T>) {
491491
* Completely replace the extras in the Intent with the given Bundle of
492492
* extras.
493493
*
494-
* @param extras The new set of extras in the Intent, or null to erase
494+
* @param value The new set of extras in the Intent, or null to erase
495495
* all extras.
496496
* @return Returns the same BaseIntentBuilder<T> object, for chaining multiple calls
497497
* into a single statement.

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/SettingsIntentBuilder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ class SettingsIntentBuilder : BaseActivityBuilder() {
364364
* Activity Action: Show NFC settings.
365365
* @return This SettingsIntentBuilder for method chaining
366366
*/
367+
@RequiresApi(Build.VERSION_CODES.JELLY_BEAN)
367368
fun nfc(): SettingsIntentBuilder {
368369
action = Settings.ACTION_NFC_SETTINGS
369370
return this

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/SpeechToTextBuilder.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class SpeechToTextBuilder() : BaseActivityBuilder() {
136136
* @param secure Boolean
137137
* @return This SpeechToTextBuilder for method chaining
138138
*/
139+
@RequiresApi(Build.VERSION_CODES.JELLY_BEAN)
139140
fun secure(secure: Boolean): SpeechToTextBuilder {
140141
this.secure = secure
141142
return this
@@ -188,7 +189,9 @@ class SpeechToTextBuilder() : BaseActivityBuilder() {
188189
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
189190
intent.putExtra(RecognizerIntent.EXTRA_PREFER_OFFLINE, preferOffline)
190191
}
191-
intent.putExtra(RecognizerIntent.EXTRA_SECURE, secure)
192+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
193+
intent.putExtra(RecognizerIntent.EXTRA_SECURE, secure)
194+
}
192195
intent.putExtra(RecognizerIntent.EXTRA_PARTIAL_RESULTS, partialResults)
193196
onlyReturnLanguagePreference?.let { intent.putExtra(RecognizerIntent.EXTRA_ONLY_RETURN_LANGUAGE_PREFERENCE, it) }
194197

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/pick/AudioPickBuilder.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
*/
1111
package com.omega_r.libs.omegaintentbuilder.builders.pick
1212

13-
import android.content.Context
1413
import com.omega_r.libs.omegaintentbuilder.types.AudioTypes
1514

1615
class AudioPickBuilder: BasePickBuilder() {
1716

1817
init {
19-
super.mimeType = AudioTypes.AUDIO.mimeType
18+
super.mimeType = AudioTypes.AUDIO.mimeType
2019
}
2120

2221

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/pick/BasePickBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import com.omega_r.libs.omegaintentbuilder.types.MimeTypes
2020
/**
2121
* BasePickBuilder is a helper for creating pick file intent
2222
*/
23-
open class BasePickBuilder() : BaseActivityBuilder() {
23+
open class BasePickBuilder : BaseActivityBuilder() {
2424

2525
private var allowMultiply = false
2626
protected var mimeType: String = MimeTypes.ANY

core/src/main/java/com/omega_r/libs/omegaintentbuilder/builders/pick/PickBuilder.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,26 @@ object PickBuilder {
55
/**
66
* @return FilePickerBuilder for creating intent to pick files
77
*/
8-
@JvmStatic
98
fun file() = FilePickerBuilder()
109

1110
/**
1211
* @return ImagePickBuilder for creating intent to pick photo from gallery
1312
*/
14-
@JvmStatic
1513
fun image() = ImagePickBuilder()
1614

1715
/**
1816
* @return AudioPickBuilder for creating intent to pick audio
1917
*/
20-
@JvmStatic
2118
fun audio() = AudioPickBuilder()
2219

2320
/**
2421
* @return VideoPickBuilder for creating intent to pick video
2522
*/
26-
@JvmStatic
2723
fun video() = VideoPickBuilder()
2824

2925
/**
3026
* @return ContactPickBuilder for creating intent to pick contact (doesn't support multiplay)
3127
*/
32-
@JvmStatic
3328
fun contact() = ContactPickBuilder()
3429

3530
}

processor/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.gradle.internal.jvm.Jvm
22

3-
apply plugin: 'com.github.dcendents.android-maven'
4-
group = 'com.github.Omega-R.OmegaIntentBuilder'
3+
//apply plugin: 'com.github.dcendents.android-maven'
4+
//group = 'com.github.Omega-R.OmegaIntentBuilder'
55

66
apply plugin: 'java-library'
77

0 commit comments

Comments
 (0)