Showing
3 changed files
with
2 additions
and
52 deletions
| ... | @@ -52,14 +52,12 @@ dependencies { | ... | @@ -52,14 +52,12 @@ dependencies { |
| 52 | //------------------------------ Support -----------------------------// | 52 | //------------------------------ Support -----------------------------// |
| 53 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' | 53 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' |
| 54 | implementation 'androidx.appcompat:appcompat:1.4.1' | 54 | implementation 'androidx.appcompat:appcompat:1.4.1' |
| 55 | - implementation 'androidx.cardview:cardview:1.0.0' | ||
| 56 | api "androidx.security:security-crypto:1.1.0-alpha03" | 55 | api "androidx.security:security-crypto:1.1.0-alpha03" |
| 57 | // For minSDK 23 use 1.0.0, for minSDK 21 use 1.1.0 that is currently in alpha | 56 | // For minSDK 23 use 1.0.0, for minSDK 21 use 1.1.0 that is currently in alpha |
| 58 | api 'org.altbeacon:android-beacon-library:2.19.3' | 57 | api 'org.altbeacon:android-beacon-library:2.19.3' |
| 59 | - api group: 'io.reactivex.rxjava2', name: 'rxjava', version: '2.2.21' | 58 | + api 'io.reactivex.rxjava3:rxjava:3.1.8' |
| 59 | + api 'io.reactivex.rxjava3:rxandroid:3.0.2' | ||
| 60 | implementation 'com.google.android.material:material:1.5.0' | 60 | implementation 'com.google.android.material:material:1.5.0' |
| 61 | - api group: 'com.google.zxing', name: 'core', version: '3.4.1' | ||
| 62 | - api group: 'com.google.zxing', name: 'javase', version: '3.4.1' | ||
| 63 | implementation 'org.greenrobot:eventbus:3.3.1' | 61 | implementation 'org.greenrobot:eventbus:3.3.1' |
| 64 | api 'com.google.guava:guava:30.1-android' | 62 | api 'com.google.guava:guava:30.1-android' |
| 65 | 63 | ||
| ... | @@ -72,7 +70,6 @@ dependencies { | ... | @@ -72,7 +70,6 @@ dependencies { |
| 72 | //------------------------------ GMS -----------------------------// | 70 | //------------------------------ GMS -----------------------------// |
| 73 | api 'com.google.android.gms:play-services-base:18.1.0' | 71 | api 'com.google.android.gms:play-services-base:18.1.0' |
| 74 | implementation 'com.google.android.gms:play-services-location:19.0.1' | 72 | implementation 'com.google.android.gms:play-services-location:19.0.1' |
| 75 | - implementation 'com.google.android.gms:play-services-maps:18.0.2' | ||
| 76 | 73 | ||
| 77 | //------------------------------ Work Manager -----------------------------// | 74 | //------------------------------ Work Manager -----------------------------// |
| 78 | api 'androidx.work:work-runtime:2.7.1' | 75 | api 'androidx.work:work-runtime:2.7.1' |
| ... | @@ -86,8 +83,6 @@ dependencies { | ... | @@ -86,8 +83,6 @@ dependencies { |
| 86 | implementation 'com.huawei.hms:base:6.6.0.300' | 83 | implementation 'com.huawei.hms:base:6.6.0.300' |
| 87 | implementation 'com.huawei.hms:push:6.7.0.300' | 84 | implementation 'com.huawei.hms:push:6.7.0.300' |
| 88 | implementation 'com.huawei.hms:ads-identifier:3.4.56.300' | 85 | implementation 'com.huawei.hms:ads-identifier:3.4.56.300' |
| 89 | - implementation 'com.huawei.hms:maps:6.9.0.300' | ||
| 90 | - implementation 'com.huawei.hms:maps-basic:6.9.0.300' | ||
| 91 | 86 | ||
| 92 | //------------------------------ SQLCipher -----------------------------// | 87 | //------------------------------ SQLCipher -----------------------------// |
| 93 | api "net.zetetic:android-database-sqlcipher:4.5.2" | 88 | api "net.zetetic:android-database-sqlcipher:4.5.2" |
| ... | @@ -110,27 +105,6 @@ task deleteJarLibrary(type: Delete) { | ... | @@ -110,27 +105,6 @@ task deleteJarLibrary(type: Delete) { |
| 110 | delete 'jar/warply_android_sdk_v4.5.0.jar' | 105 | delete 'jar/warply_android_sdk_v4.5.0.jar' |
| 111 | } | 106 | } |
| 112 | 107 | ||
| 113 | -//from('build/intermediates/compile_library_classes/release/') | ||
| 114 | - | ||
| 115 | -//Old version | ||
| 116 | -// Gradle Tasks -> warply_android_sdk -> Tasks -> other -> createJarLibrary | ||
| 117 | -//task createJarLibrary(type: Copy) { | ||
| 118 | -// from fileTree('build/intermediates/bundles/release/') | ||
| 119 | -// into('jar/') | ||
| 120 | -// include('classes.jar') | ||
| 121 | -// rename('classes.jar', 'warply_android_sdk_v4.4.2.jar') | ||
| 122 | -//} | ||
| 123 | - | ||
| 124 | -// New version | ||
| 125 | -// Gradle -> warplyDemo -> libraries -> warply_android_sdk -> Run Configurations -> assembleRelease | ||
| 126 | -// When finished it copies the .jar into | ||
| 127 | -// warply_android_sdk -> build -> intermediates -> full_jar -> release/debug -> full.jar | ||
| 128 | - | ||
| 129 | -// 24 - Jan - 2022 | ||
| 130 | -// Gradle -> warplyDemo -> libraries -> warply_android_sdk -> Tasks -> build -> build | ||
| 131 | -// When finished it copies the .aar into | ||
| 132 | -// warply_android_sdk -> build -> outputs -> aar -> warply_android_sdk-release.aar | ||
| 133 | - | ||
| 134 | task createJarLibrary(type: Jar, dependsOn: 'assembleRelease') { | 108 | task createJarLibrary(type: Jar, dependsOn: 'assembleRelease') { |
| 135 | from fileTree('build/intermediates/bundles/release/') | 109 | from fileTree('build/intermediates/bundles/release/') |
| 136 | } | 110 | } | ... | ... |
| ... | @@ -28,8 +28,6 @@ package ly.warp.sdk.io.models; | ... | @@ -28,8 +28,6 @@ package ly.warp.sdk.io.models; |
| 28 | import android.os.Parcel; | 28 | import android.os.Parcel; |
| 29 | import android.os.Parcelable; | 29 | import android.os.Parcelable; |
| 30 | 30 | ||
| 31 | -import com.google.android.gms.maps.model.LatLng; | ||
| 32 | - | ||
| 33 | import org.json.JSONArray; | 31 | import org.json.JSONArray; |
| 34 | import org.json.JSONException; | 32 | import org.json.JSONException; |
| 35 | import org.json.JSONObject; | 33 | import org.json.JSONObject; |
| ... | @@ -133,7 +131,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -133,7 +131,6 @@ public class Merchant implements Parcelable, Serializable { |
| 133 | private JSONObject working_hours = new JSONObject(); | 131 | private JSONObject working_hours = new JSONObject(); |
| 134 | private JSONArray tags = new JSONArray(); | 132 | private JSONArray tags = new JSONArray(); |
| 135 | private JSONObject product = new JSONObject(); | 133 | private JSONObject product = new JSONObject(); |
| 136 | - private LatLng coordinates; | ||
| 137 | 134 | ||
| 138 | public Merchant() { | 135 | public Merchant() { |
| 139 | this.address = ""; | 136 | this.address = ""; |
| ... | @@ -176,7 +173,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -176,7 +173,6 @@ public class Merchant implements Parcelable, Serializable { |
| 176 | this.working_hours = new JSONObject(); | 173 | this.working_hours = new JSONObject(); |
| 177 | this.tags = new JSONArray(); | 174 | this.tags = new JSONArray(); |
| 178 | this.product = new JSONObject(); | 175 | this.product = new JSONObject(); |
| 179 | - coordinates = new LatLng(this.latitude, this.longitude); | ||
| 180 | } | 176 | } |
| 181 | 177 | ||
| 182 | public Merchant(boolean isUniversal) { | 178 | public Merchant(boolean isUniversal) { |
| ... | @@ -253,7 +249,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -253,7 +249,6 @@ public class Merchant implements Parcelable, Serializable { |
| 253 | this.working_hours = json.optJSONObject(WORKING_HOURS); | 249 | this.working_hours = json.optJSONObject(WORKING_HOURS); |
| 254 | this.tags = json.optJSONArray(TAGS); | 250 | this.tags = json.optJSONArray(TAGS); |
| 255 | this.product = json.optJSONObject(PRODUCT); | 251 | this.product = json.optJSONObject(PRODUCT); |
| 256 | - coordinates = new LatLng(this.latitude, this.longitude); | ||
| 257 | } | 252 | } |
| 258 | } | 253 | } |
| 259 | 254 | ||
| ... | @@ -342,7 +337,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -342,7 +337,6 @@ public class Merchant implements Parcelable, Serializable { |
| 342 | this.distance = source.readInt(); | 337 | this.distance = source.readInt(); |
| 343 | this.default_shown = source.readByte() != 0; | 338 | this.default_shown = source.readByte() != 0; |
| 344 | this.hidden = source.readByte() != 0; | 339 | this.hidden = source.readByte() != 0; |
| 345 | - this.coordinates = new LatLng(this.latitude, this.longitude); | ||
| 346 | } | 340 | } |
| 347 | 341 | ||
| 348 | @Override | 342 | @Override |
| ... | @@ -381,7 +375,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -381,7 +375,6 @@ public class Merchant implements Parcelable, Serializable { |
| 381 | dest.writeInt(this.distance); | 375 | dest.writeInt(this.distance); |
| 382 | dest.writeByte((byte) (this.default_shown ? 1 : 0)); | 376 | dest.writeByte((byte) (this.default_shown ? 1 : 0)); |
| 383 | dest.writeByte((byte) (this.hidden ? 1 : 0)); | 377 | dest.writeByte((byte) (this.hidden ? 1 : 0)); |
| 384 | - dest.writeParcelable(coordinates, flags); | ||
| 385 | } | 378 | } |
| 386 | 379 | ||
| 387 | /** | 380 | /** |
| ... | @@ -790,10 +783,6 @@ public class Merchant implements Parcelable, Serializable { | ... | @@ -790,10 +783,6 @@ public class Merchant implements Parcelable, Serializable { |
| 790 | this.product = product; | 783 | this.product = product; |
| 791 | } | 784 | } |
| 792 | 785 | ||
| 793 | - public void setCoordinates(LatLng coordinates) { | ||
| 794 | - this.coordinates = coordinates; | ||
| 795 | - } | ||
| 796 | - | ||
| 797 | @Override | 786 | @Override |
| 798 | public int describeContents() { | 787 | public int describeContents() { |
| 799 | return 0; | 788 | return 0; | ... | ... |
| ... | @@ -25,9 +25,6 @@ | ... | @@ -25,9 +25,6 @@ |
| 25 | 25 | ||
| 26 | package ly.warp.sdk.utils.constants; | 26 | package ly.warp.sdk.utils.constants; |
| 27 | 27 | ||
| 28 | -import com.google.android.gms.maps.model.LatLng; | ||
| 29 | -import com.google.android.gms.maps.model.LatLngBounds; | ||
| 30 | - | ||
| 31 | public class WarpConstants { | 28 | public class WarpConstants { |
| 32 | 29 | ||
| 33 | /** | 30 | /** |
| ... | @@ -66,16 +63,6 @@ public class WarpConstants { | ... | @@ -66,16 +63,6 @@ public class WarpConstants { |
| 66 | public static final int RANDOM_MIN = 20; | 63 | public static final int RANDOM_MIN = 20; |
| 67 | public static final int RANDOM_MAX = 60; | 64 | public static final int RANDOM_MAX = 60; |
| 68 | 65 | ||
| 69 | - public static final LatLngBounds GREECE_BOUNDS = new LatLngBounds( | ||
| 70 | - new LatLng(34.75261, 19.33079), | ||
| 71 | - new LatLng(41.97761, 28.62522) | ||
| 72 | - ); | ||
| 73 | - | ||
| 74 | - public static final com.huawei.hms.maps.model.LatLngBounds GREECE_BOUNDS_HUAWEI = new com.huawei.hms.maps.model.LatLngBounds( | ||
| 75 | - new com.huawei.hms.maps.model.LatLng(34.75261, 19.33079), | ||
| 76 | - new com.huawei.hms.maps.model.LatLng(41.97761, 28.62522) | ||
| 77 | - ); | ||
| 78 | - | ||
| 79 | /* Result codes */ | 66 | /* Result codes */ |
| 80 | 67 | ||
| 81 | public static final int RESULT_CODE_SUCCESS = 1; | 68 | public static final int RESULT_CODE_SUCCESS = 1; | ... | ... |
-
Please register or login to post a comment