This repository was archived by the owner on Oct 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
main/groovy/com/onesignal/androidsdk
test/groovy/com/onesignal/androidsdk Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
- buildscript {
2
- repositories {
3
- maven { url ' https://maven.google.com' }
4
- }
5
- dependencies {
6
- classpath ' com.android.tools.build:gradle:3.1.0'
7
- }
8
- }
9
-
10
1
plugins {
11
2
id ' com.gradle.plugin-publish' version ' 0.9.10'
12
3
id ' java-gradle-plugin'
@@ -19,12 +10,14 @@ repositories {
19
10
20
11
apply plugin : ' groovy'
21
12
apply plugin : ' java-gradle-plugin'
13
+ apply plugin : ' java-library'
22
14
23
15
dependencies {
24
16
compile gradleApi()
25
17
compile localGroovy()
26
18
27
- compile ' com.android.tools.build:gradle:3.1.0'
19
+ compileOnly ' com.android.tools.build:gradle:3.1.0'
20
+ testCompileOnly ' com.android.tools.build:gradle:3.1.0'
28
21
29
22
testCompile gradleTestKit()
30
23
testCompile ' junit:junit:4.12'
Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ class GradleProjectPlugin implements Plugin<Project> {
122
122
123
123
static boolean didUpdateOneSignalVersion
124
124
125
- // TODO: MUSTS BEFORE next release 0.8.3+
126
- // TODO: 1. Compat for VersionRangeSelector.intersect for Gradle 2.14.1 to 4.2
127
- // TODO: 2. Ensure VersionRangeSelector.accept works
128
125
@Override
129
126
void apply (Project inProject ) {
130
127
project = inProject
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ class MainTest extends Specification {
254
254
def " Upgrade to compatible OneSignal SDK when targetSdkVersion is 26" () {
255
255
when :
256
256
def results = runGradleProject([
257
- compileSdkVersion : 26 , // Unexpected crash if this is 27...
257
+ compileSdkVersion : 27 , // Unexpected crash if this is 27 and com.onesignal:OneSignal:3.5.+
258
258
compileLines : " compile 'com.onesignal:OneSignal:3.5.+'" ,
259
259
skipGradleVersion : ' 2.14.1' // This check requires AGP 3.0.1+ which requires Gradle 4.1+
260
260
])
You can’t perform that action at this time.
0 commit comments