Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgraded gradle and android SDK version for lib, example-client and t… #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/build
/captures
test-server/build
.idea/
20 changes: 0 additions & 20 deletions .idea/gradle.xml

This file was deleted.

44 changes: 0 additions & 44 deletions .idea/misc.xml

This file was deleted.

11 changes: 6 additions & 5 deletions example-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:7.3.1'
}
}

Expand All @@ -20,18 +20,18 @@ repositories {
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
compileSdkVersion 33
//buildToolsVersion '28.0.3'

defaultConfig {
applicationId "ua.naiksoftware.stompclientexample"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
buildTypes {
release {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
Expand All @@ -41,14 +41,15 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'ua.naiksoftware.stompclientexample'
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
// implementation 'org.java-websocket:Java-WebSocket:1.3.6'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
// RxJava
implementation 'io.reactivex.rxjava2:rxjava:2.2.5'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
Expand Down
8 changes: 3 additions & 5 deletions example-client/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="ua.naiksoftware.stompclientexample">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand All @@ -12,10 +10,10 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
<activity android:name="ua.naiksoftware.stompclientexample.MainActivity">
<activity android:name="ua.naiksoftware.stompclientexample.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# org.gradle.parallel=true
android.enableJetifier=true
android.useAndroidX=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
15 changes: 5 additions & 10 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'org.codehaus.groovy:groovy-android-gradle-plugin:2.0.0'
classpath 'com.android.tools.build:gradle:7.3.1'
}
}

Expand All @@ -19,19 +17,15 @@ repositories {
}

apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'groovyx.android'

group='com.github.NaikSoftware'

android {
compileSdkVersion 28
compileSdkVersion 33

defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
targetSdkVersion 33
}

compileOptions {
Expand All @@ -49,6 +43,7 @@ android {
testOptions {
unitTests.returnDefaultValues = true
}
namespace 'ua.naiksoftware.stomp'
}


Expand All @@ -57,7 +52,7 @@ dependencies {
// Supported transports
api 'org.java-websocket:Java-WebSocket:1.3.6'
api 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'androidx.annotation:annotation:1.0.0'
testImplementation 'com.andrewreitz:spock-android:2.0.0'
testImplementation 'org.testcontainers:testcontainers:1.10.5'
testImplementation 'org.spockframework:spock-core:1.1-groovy-2.4'
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest package="ua.naiksoftware.stomp">
<manifest>

<application />

Expand Down
3 changes: 2 additions & 1 deletion lib/src/main/java/ua/naiksoftware/stomp/HeartBeatTask.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package ua.naiksoftware.stomp;

import android.support.annotation.Nullable;
import android.util.Log;

import androidx.annotation.Nullable;

import java.util.concurrent.TimeUnit;

import io.reactivex.Scheduler;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/main/java/ua/naiksoftware/stomp/Stomp.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ua.naiksoftware.stomp;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.Map;

Expand Down
5 changes: 3 additions & 2 deletions lib/src/main/java/ua/naiksoftware/stomp/StompClient.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package ua.naiksoftware.stomp;

import android.annotation.SuppressLint;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/main/java/ua/naiksoftware/stomp/dto/StompMessage.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ua.naiksoftware.stomp.dto;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.io.StringReader;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ua.naiksoftware.stomp.provider;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.concurrent.TimeUnit;

import io.reactivex.Completable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ua.naiksoftware.stomp.provider;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ua.naiksoftware.stomp.provider;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.Log;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import org.java_websocket.WebSocket;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.drafts.Draft_6455;
Expand Down
Loading