Migrate legacy apache dependency to the GodotPayment plugin
This is the only location in the codebase where it's being used, so no need to make the main lib have a dependency on it.
(cherry picked from commit c591cb8fda
)
This commit is contained in:
parent
88e1264893
commit
373db27788
6 changed files with 8 additions and 7 deletions
|
@ -12,7 +12,6 @@ def pathToRootDir = "../../../../"
|
|||
android {
|
||||
compileSdkVersion versions.compileSdk
|
||||
buildToolsVersion versions.buildTools
|
||||
useLibrary 'org.apache.http.legacy'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion versions.minSdk
|
||||
|
|
|
@ -3,6 +3,7 @@ apply plugin: 'com.android.library'
|
|||
android {
|
||||
compileSdkVersion versions.compileSdk
|
||||
buildToolsVersion versions.buildTools
|
||||
useLibrary 'org.apache.http.legacy'
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion versions.minSdk
|
||||
|
|
|
@ -34,8 +34,8 @@ import android.app.Activity;
|
|||
import android.app.ProgressDialog;
|
||||
import android.os.AsyncTask;
|
||||
import java.lang.ref.WeakReference;
|
||||
import org.godotengine.godot.utils.HttpRequester;
|
||||
import org.godotengine.godot.utils.RequestParams;
|
||||
import org.godotengine.godot.plugin.payment.utils.HttpRequester;
|
||||
import org.godotengine.godot.plugin.payment.utils.RequestParams;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
package org.godotengine.godot.utils;
|
||||
package org.godotengine.godot.plugin.payment.utils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
import java.net.UnknownHostException;
|
|
@ -28,7 +28,7 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
package org.godotengine.godot.utils;
|
||||
package org.godotengine.godot.plugin.payment.utils;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
|
@ -61,6 +61,7 @@ import org.apache.http.params.HttpParams;
|
|||
import org.apache.http.params.HttpProtocolParams;
|
||||
import org.apache.http.protocol.HTTP;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
import org.godotengine.godot.utils.Crypt;
|
||||
|
||||
/**
|
||||
*
|
|
@ -28,10 +28,9 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
|
||||
package org.godotengine.godot.utils;
|
||||
package org.godotengine.godot.plugin.payment.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import org.apache.http.NameValuePair;
|
Loading…
Reference in a new issue