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
2024-01-10 11:40:14 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8bcf086f6e9b578785bfcf639daebed437a906e
d8bcf086
1 parent
d5c6158f
crash and ui fixes
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveCouponsActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveUnifiedCouponsActivity.java
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
warply_android_sdk/build.gradle
View file @
d8bcf08
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.5.4r
5
'
PUBLISH_VERSION
=
'4.5.5.4r
6
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
d8bcf08
...
...
@@ -1593,17 +1593,26 @@ public enum Warply {
String
urlAnalytics
=
WarplyProperty
.
getBaseUrl
(
mContext
)
+
WarpConstants
.
WARPLY_ASYNC
+
WarpConstants
.
WARPLY_ANALYTICS
+
WarplyProperty
.
getAppUuid
(
mContext
)
+
"/"
;
WarplyJsonArrayRequest
requestAnalytics
=
new
WarplyJsonArrayRequest
(
method
,
urlAnalytics
,
tempAnalytics
,
vt
,
vt
);
requestAnalytics
.
setTag
(
tag
);
if
(
mRequestQueue
==
null
)
mRequestQueue
=
Volley
.
newRequestQueue
(
mContext
);
mRequestQueue
.
add
(
requestAnalytics
);
}
if
(
tempDeviceInfo
!=
null
&&
tempDeviceInfo
.
length
()
>
0
)
{
String
urlDeviceInfo
=
WarplyProperty
.
getBaseUrl
(
mContext
)
+
WarpConstants
.
WARPLY_ASYNC
+
WarpConstants
.
WARPLY_DEVICE_INFO
+
WarplyProperty
.
getAppUuid
(
mContext
)
+
"/"
;
WarplyJsonArrayRequest
requestDeviceInfo
=
new
WarplyJsonArrayRequest
(
method
,
urlDeviceInfo
,
tempDeviceInfo
,
vt
,
vt
);
requestDeviceInfo
.
setTag
(
tag
);
if
(
mRequestQueue
==
null
)
mRequestQueue
=
Volley
.
newRequestQueue
(
mContext
);
mRequestQueue
.
add
(
requestDeviceInfo
);
}
if
(
tempOther
!=
null
&&
tempOther
.
length
()
>
0
)
{
WarplyJsonArrayRequest
request
=
new
WarplyJsonArrayRequest
(
method
,
url
,
tempOther
,
vt
,
vt
);
request
.
setTag
(
tag
);
if
(
mRequestQueue
==
null
)
mRequestQueue
=
Volley
.
newRequestQueue
(
mContext
);
mRequestQueue
.
add
(
request
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveCouponsActivity.java
View file @
d8bcf08
...
...
@@ -124,6 +124,7 @@ public class ActiveCouponsActivity extends Activity implements View.OnClickListe
})
.
subscribe
();
}
else
{
mRecyclerCoupons
.
setVisibility
(
View
.
GONE
);
mTvEmptyCoupons
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/ActiveUnifiedCouponsActivity.java
View file @
d8bcf08
...
...
@@ -121,7 +121,8 @@ public class ActiveUnifiedCouponsActivity extends Activity implements View.OnCli
})
.
subscribe
();
}
else
{
mTvEmptyUnifiedCoupons
.
setVisibility
(
View
.
GONE
);
mRecyclerUnifiedCoupons
.
setVisibility
(
View
.
GONE
);
mTvEmptyUnifiedCoupons
.
setVisibility
(
View
.
VISIBLE
);
}
}
...
...
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
View file @
d8bcf08
...
...
@@ -49,7 +49,7 @@
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<
Linear
Layout
<
Relative
Layout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@android:color/white"
...
...
@@ -59,9 +59,7 @@
android:id=
"@+id/ll_first_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginVertical=
"24dp"
android:background=
"@drawable/ic_background_line"
android:orientation=
"horizontal"
android:paddingVertical=
"24dp"
android:paddingHorizontal=
"16dp"
>
<com.google.android.material.imageview.ShapeableImageView
...
...
@@ -79,7 +77,7 @@
<LinearLayout
android:layout_width=
"0dp"
android:layout_height=
"
0dp
"
android:layout_height=
"
wrap_content
"
android:layout_marginStart=
"8dp"
android:orientation=
"vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
@@ -168,7 +166,7 @@
</LinearLayout>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</
Linear
Layout>
</
Relative
Layout>
<RelativeLayout
android:layout_width=
"match_parent"
...
...
Please
register
or
login
to post a comment