Skip to content

Commit 0ceaf87

Browse files
Daniel Sánchez Ceinosadriangl
andauthored
Updated dependencies (#3)
* Updated dependencies * Update lib/build.gradle Co-authored-by: Adrián García <adriangarcia.lopez@gmail.com> * Fix merge * Reorder gitignore * Ignore jarRepositories.xml * Fix deprecated gradle methods Co-authored-by: Adrián García <adriangarcia.lopez@gmail.com>
1 parent 018c441 commit 0ceaf87

File tree

7 files changed

+29
-66
lines changed

7 files changed

+29
-66
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ captures/
4141
.idea/libraries
4242
.idea/caches
4343
.idea/codeStyles
44+
.idea/modules.xml
45+
.idea/misc.xml
46+
.idea/jarRepositories.xml
4447

4548
# Keystore files
4649
*.jks

.idea/misc.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@
1717
// Top-level build file where you can add configuration options common to all sub-projects/modules.
1818

1919
buildscript {
20-
ext.kotlinVersion = '1.3.40'
20+
ext.kotlinVersion = '1.4.10'
2121

2222
repositories {
2323
google()
2424
jcenter()
25-
maven { url "https://plugins.gradle.org/m2/" }
25+
mavenCentral()
26+
maven {url "https://plugins.gradle.org/m2/"}
2627
}
2728
dependencies {
28-
classpath 'com.android.tools.build:gradle:3.4.1'
29+
classpath 'com.android.tools.build:gradle:4.0.1'
2930
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
3031
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
31-
classpath "com.gladed.androidgitversion:gradle-android-git-version:0.4.9"
32-
33-
// NOTE: Do not place your application dependencies here; they belong
34-
// in the individual module build.gradle files
32+
classpath "com.gladed.androidgitversion:gradle-android-git-version:0.4.13"
3533
}
3634
}
3735

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jun 17 11:03:52 CEST 2019
1+
#Thu Sep 24 17:32:09 CEST 2020
22
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-5.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

lib/build.gradle

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: "com.gladed.androidgitversion"
23

3-
apply plugin: 'com.gladed.androidgitversion'
4+
androidGitVersion {
5+
codeFormat "MMNNPP"
6+
format '%tag%'
7+
tagPattern(/^[0-9]+.*/) // Tag names should follow the pattern MM.NN.PP
8+
}
49

510
android {
6-
compileSdkVersion project.ext.compileSdkVersion
11+
compileSdkVersion 30
712

813
defaultConfig {
9-
minSdkVersion project.ext.minSdkVersion
10-
targetSdkVersion project.ext.targetSdkVersion
11-
versionCode 1
14+
minSdkVersion 21
15+
targetSdkVersion 30
1216
versionName androidGitVersion.name()
17+
versionCode androidGitVersion.code()
1318

1419
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1520
}
@@ -25,16 +30,17 @@ android {
2530

2631
dependencies {
2732
implementation fileTree(dir: 'libs', include: ['*.jar'])
28-
api "androidx.annotation:annotation:1.1.0"
29-
api "androidx.appcompat:appcompat:1.0.2"
33+
34+
implementation "androidx.annotation:annotation:1.1.0"
35+
implementation 'androidx.appcompat:appcompat:1.2.0'
3036

3137
// Needed for the in-app updates API
32-
api "com.google.android.play:core:1.6.1"
38+
api "com.google.android.play:core:1.8.0"
3339

34-
testImplementation 'junit:junit:4.12'
40+
testImplementation 'junit:junit:4.13'
3541

36-
androidTestImplementation 'androidx.test:runner:1.2.0'
37-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
42+
androidTestImplementation 'androidx.test:runner:1.3.0'
43+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3844
}
3945

4046
/*
@@ -56,7 +62,7 @@ dependencies {
5662
// Build a jar with source files
5763
task sourcesJar(type: Jar) {
5864
from android.sourceSets.main.java.srcDirs
59-
classifier = 'sources'
65+
archiveClassifier.set("sources")
6066
}
6167

6268
// Build JavaDoc from source files
@@ -69,7 +75,7 @@ task javadoc(type: Javadoc) {
6975

7076
// Build a jar with JavaDoc
7177
task javadocJar(type: Jar, dependsOn: javadoc) {
72-
classifier = 'javadoc'
78+
archiveClassifier.set("javadoc")
7379
from javadoc.destinationDir
7480
}
7581

lib/src/main/java/com/bq/appupdateshelper/FakeAppUpdatesHelper.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,6 @@ public void setUpdateAvailable(int availableVersionCode) {
6363
fakeAppUpdateManager.setUpdateAvailable(availableVersionCode);
6464
}
6565

66-
/**
67-
* Returns which type of update is partially allowed or null if no update is partially allowed.
68-
*/
69-
@Nullable
70-
public Integer getPartiallyAllowedUpdateType() {
71-
return fakeAppUpdateManager.getPartiallyAllowedUpdateType();
72-
}
73-
74-
/**
75-
* In case the update is only partially allowed, which means that not all in-app update types are allowed by policy,
76-
* the type of update which is exclusively allowed can be set here.
77-
* <p>
78-
* Also sets the error code to {@link InstallErrorCode.NO_ERROR_PARTIALLY_ALLOWED} to enable the partial error behaviour.
79-
*
80-
* @param allowedUpdate one of {@link AppUpdateType.FLEXIBLE} or {@link AppUpdateType.IMMEDIATE}, or null
81-
*/
82-
public void setPartiallyAllowedUpdateType(@Nullable @AppUpdateType Integer allowedUpdate) {
83-
fakeAppUpdateManager.setPartiallyAllowedUpdateType(allowedUpdate);
84-
}
85-
8666
/**
8767
* Declares that no updates are available.
8868
*/

0 commit comments

Comments
 (0)