Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2025-01-21 15:40:01 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dd53076f95b03966b00870c7ed61cf82ee8c49a6
dd53076f
1 parent
66e1adfb
sm pass sdk reverts
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
70 deletions
app/src/main/java/warp/ly/android_sdk/WarplyAndroidSDKApplication.java
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
warply_android_sdk/build.gradle
warply_android_sdk/src/main/AndroidManifest.xml
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/WarplyReadyCallback.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyInitializer.java
app/src/main/java/warp/ly/android_sdk/WarplyAndroidSDKApplication.java
View file @
dd53076
...
...
@@ -5,7 +5,7 @@ import android.content.res.Configuration;
import
ly.warp.sdk.receivers.WarplyBeaconsApplication
;
public
class
WarplyAndroidSDKApplication
extends
/*WarplyBeaconsApplication*/
Application
{
public
class
WarplyAndroidSDKApplication
extends
WarplyBeacons
Application
{
// ===========================================================
// Constants
...
...
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
dd53076
...
...
@@ -33,7 +33,7 @@ public class SplashActivity extends BaseActivity {
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_splash
);
mWarplyInitializer
=
Warply
.
get
Warply
Initializer
(
this
,
new
WarplyReadyCallback
()
{
mWarplyInitializer
=
Warply
.
getInitializer
(
this
,
new
WarplyReadyCallback
()
{
@Override
public
void
onWarplyReady
()
{
if
(
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
...
...
@@ -58,7 +58,7 @@ public class SplashActivity extends BaseActivity {
@Override
protected
void
onResume
()
{
super
.
onResume
();
//
mWarplyInitializer.initWithPermissions(this);
mWarplyInitializer
.
initWithPermissions
(
this
);
}
private
void
checkForAppUpdate
()
{
...
...
warply_android_sdk/build.gradle
View file @
dd53076
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.5.4r4
0
'
PUBLISH_VERSION
=
'4.5.5.4r4
1
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/AndroidManifest.xml
View file @
dd53076
...
...
@@ -237,13 +237,13 @@
<!-- </intent-filter>-->
<!-- </receiver>-->
<!-- <receiver-->
<!-- android:name=".receivers.BluetoothStateChangeReceiver"-->
<!-- android:exported="false">--
>
<!-- <intent-filter>--
>
<!-- <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />--
>
<!-- </intent-filter>--
>
<!-- </receiver>--
>
<receiver
android:name=
".receivers.BluetoothStateChangeReceiver"
android:exported=
"false"
>
<intent-filter
>
<action
android:name=
"android.bluetooth.adapter.action.STATE_CHANGED"
/
>
</intent-filter
>
</receiver
>
<receiver
android:name=
".receivers.WarplyInAppNotificationReceiver"
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
dd53076
...
...
@@ -137,19 +137,6 @@ public enum Warply {
});
}
public
static
WarplyInitializer
getWarplyInitializer
(
Context
context
,
WarplyReadyCallback
callback
)
{
return
new
WarplyInitializer
(
context
,
true
,
callback
,
new
WarplyInitializer
.
WarplyInitCallback
()
{
@Override
public
void
onInit
(
Context
context
)
{
if
(
context
!=
null
)
{
INSTANCE
.
mContext
=
context
.
getApplicationContext
();
}
initInternal
(
context
);
}
});
}
private
static
void
initInternal
(
Context
context
)
{
if
(
/*isInitialized()*/
context
==
null
)
{
INSTANCE
.
check
();
...
...
@@ -1993,7 +1980,7 @@ public enum Warply {
@Override
public
void
onServerPreferencesReceived
()
{
// changeLocationSettings(true);
//
initBeaconsApplicationIfNeed();
initBeaconsApplicationIfNeed
();
WarplyUserManager
.
rewriteTags
();
}
};
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/WarplyReadyCallback.java
View file @
dd53076
...
...
@@ -7,6 +7,4 @@ public interface WarplyReadyCallback {
void
onWarplyInitTimeOut
();
void
onWarplyPermissionsDenied
();
default
void
onWarplyInitialized
()
{};
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyInitializer.java
View file @
dd53076
...
...
@@ -66,24 +66,6 @@ public class WarplyInitializer extends Thread /*implements ActivityCompat.OnRequ
stopThreadLock
.
set
(
true
);
}
public
WarplyInitializer
(
Context
context
,
boolean
isInternal
,
WarplyReadyCallback
readyCallback
,
WarplyInitCallback
initCallback
)
{
// this.mPermissionsResultRequested = false;
this
.
mContext
=
context
;
this
.
mReadyCallback
=
readyCallback
;
this
.
mInitCallback
=
initCallback
;
if
(
mMainThreadHandler
==
null
)
{
mMainThreadHandler
=
new
Handler
(
Looper
.
getMainLooper
());
}
if
(
stopThreadLock
==
null
)
{
stopThreadLock
=
new
AtomicBoolean
(
true
);
}
stopThreadLock
.
set
(
true
);
init
();
}
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
...
...
@@ -179,18 +161,6 @@ public class WarplyInitializer extends Thread /*implements ActivityCompat.OnRequ
public
synchronized
void
init
()
{
stopThreadLock
.
set
(
true
);
/* New code */
if
(
Warply
.
INSTANCE
.
mContext
!=
null
)
{
if
(
mReadyCallback
!=
null
)
{
mMainThreadHandler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
mReadyCallback
.
onWarplyInitialized
();
}
});
}
}
else
{
mInitCallback
.
onInit
(
mContext
);
try
{
super
.
start
();
// call run()
...
...
@@ -200,19 +170,6 @@ public class WarplyInitializer extends Thread /*implements ActivityCompat.OnRequ
}
}
}
/* New code */
/* Old code */
// mInitCallback.onInit(mContext);
// try {
// super.start(); // call run()
// } catch (IllegalThreadStateException e) {
// if (WarpConstants.DEBUG) {
// e.printStackTrace();
// }
// }
/* Old code */
}
public
synchronized
void
initWithPermissions
(
Activity
activity
)
{
mContext
=
activity
;
...
...
Please
register
or
login
to post a comment