Skip to content

Commit ef4fc8a

Browse files
Maijenburg, GoopherMaijenburg, Goopher
authored andcommitted
Update gradle properties, added core library
1 parent 5d32797 commit ef4fc8a

File tree

6 files changed

+27
-17
lines changed

6 files changed

+27
-17
lines changed

build.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
buildscript {
22
repositories {
3-
mavenCentral()
3+
jcenter()
4+
google()
45
}
56
dependencies {
6-
classpath 'com.android.tools.build:gradle:1.3.0'
7+
classpath 'com.android.tools.build:gradle:4.1.0'
78
}
89
}
910

1011
allprojects {
1112
repositories {
12-
mavenCentral()
13+
jcenter()
14+
google()
1315
}
1416
}

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ POM_LICENCE_NAME=The MIT License
1010
POM_LICENCE_URL=http://opensource.org/licenses/mit-license.php
1111
POM_LICENCE_DIST=repo
1212
POM_DEVELOPER_ID=hotchemi
13-
POM_DEVELOPER_NAME=Shintaro Katafuchi
13+
POM_DEVELOPER_NAME=Shintaro Katafuchi
14+
android.useAndroidX=true
15+
android.enableJetifier=true
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jan 19 05:44:15 JST 2015
1+
#Sat Oct 17 16:22:47 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-2.6-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

library/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion '23.0.2'
4+
compileSdkVersion 30
5+
buildToolsVersion '29.0.3'
66
defaultConfig {
7-
minSdkVersion 9
8-
targetSdkVersion 23
7+
minSdkVersion 14
8+
targetSdkVersion 30
99
}
1010
}
1111

12-
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
12+
dependencies {
13+
implementation 'com.google.android.play:core:1.8.2'
14+
implementation 'com.google.android.play:core-ktx:1.8.1'
15+
}

library/src/main/java/hotchemi/android/rate/DialogManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import android.content.Intent;
88
import android.view.View;
99

10+
import com.google.android.play.core.review.ReviewManager;
11+
import com.google.android.play.core.review.ReviewManagerFactory;
12+
1013
import static hotchemi.android.rate.IntentHelper.createIntentForAmazonAppstore;
1114
import static hotchemi.android.rate.IntentHelper.createIntentForGooglePlay;
1215
import static hotchemi.android.rate.PreferenceHelper.setAgreeShowDialog;
@@ -34,6 +37,7 @@ static Dialog create(final Context context, final DialogOptions options) {
3437
builder.setPositiveButton(options.getPositiveText(context), new DialogInterface.OnClickListener() {
3538
@Override
3639
public void onClick(DialogInterface dialog, int which) {
40+
// ReviewManager rm = ReviewManagerFactory.create(context);
3741
final Intent intentToAppstore = options.getStoreType() == StoreType.GOOGLEPLAY ?
3842
createIntentForGooglePlay(context) : createIntentForAmazonAppstore(context);
3943
context.startActivity(intentToAppstore);

sample/build.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion '23.0.2'
6-
4+
compileSdkVersion 30
5+
buildToolsVersion '29.0.3'
76
defaultConfig {
8-
minSdkVersion 9
9-
targetSdkVersion 23
7+
minSdkVersion 14
8+
targetSdkVersion 30
109
versionCode 1
1110
versionName "1.0"
1211
}
@@ -23,5 +22,5 @@ repositories {
2322
}
2423

2524
dependencies {
26-
compile project(':library')
25+
implementation project(':library')
2726
}

0 commit comments

Comments
 (0)