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
2022-09-12 17:00:39 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1075cbbe23e158788099d554a0a3ca9b70ce1ceb
1075cbbe
1 parent
fb61c83c
fixes
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
59 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/TelcoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/services/WarplyHealthService.java
warply_android_sdk/src/main/res/drawable/shape_cos_gradient6_shahow.xml
warply_android_sdk/src/main/res/drawable/shape_cos_loyalty_no_border.xml
warply_android_sdk/src/main/res/layout/activity_gifts_for_you.xml
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
warply_android_sdk/src/main/res/layout/activity_more_for_you.xml
warply_android_sdk/src/main/res/values/colors.xml
warply_android_sdk/src/main/res/values/strings.xml
warply_android_sdk/build.gradle
View file @
1075cbb
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta
59
'
PUBLISH_VERSION
=
'4.5.4-cosbeta
60
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponInfoActivity.java
View file @
1075cbb
...
...
@@ -221,9 +221,16 @@ public class CouponInfoActivity extends Activity implements View.OnClickListener
mLlTerms
.
setOnClickListener
(
this
);
String
tempCoupon
=
mCoupon
.
getCoupon
();
int
result
=
0
;
for
(
int
i
=
0
;
i
<
(
12
-
mCoupon
.
getCoupon
().
length
());
i
++)
{
tempCoupon
+=
"0"
;
}
for
(
int
i
=
mCoupon
.
getCoupon
().
length
()
-
1
;
i
>=
0
;
i
--)
{
result
=
result
+
Integer
.
parseInt
(
String
.
valueOf
((
mCoupon
.
getCoupon
()).
charAt
(
i
)))
*
(
1
+
(
2
*
(
i
%
2
)));
}
tempCoupon
=
tempCoupon
+
(
10
-
(
result
%
10
))
%
10
;
createBarcodeBitmap
(
tempCoupon
);
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/TelcoActivity.java
View file @
1075cbb
...
...
@@ -161,6 +161,8 @@ public class TelcoActivity extends Activity implements View.OnClickListener {
private
void
showActivationDialog
()
{
final
BottomSheetDialog
bottomSheetDialog
=
new
BottomSheetDialog
(
this
);
bottomSheetDialog
.
setContentView
(
R
.
layout
.
dl_share
);
TextView
tvHeader
=
bottomSheetDialog
.
findViewById
(
R
.
id
.
tv_sender_value
);
tvHeader
.
setText
(
R
.
string
.
cos_coupon_share_telco
);
LinearLayout
parent
=
bottomSheetDialog
.
findViewById
(
R
.
id
.
ll_share_dialog_view_inner
);
ImageView
dialogClose
=
(
ImageView
)
bottomSheetDialog
.
findViewById
(
R
.
id
.
iv_sender_list_close
);
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/services/WarplyHealthService.java
View file @
1075cbb
...
...
@@ -60,7 +60,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
private
final
int
ACCEL_RING_SIZE
=
50
;
private
final
int
VEL_RING_SIZE
=
10
;
// change this threshold according to your sensitivity preferences
private
final
float
STEP_THRESHOLD
=
20
f
;
private
final
float
STEP_THRESHOLD
=
10
f
;
// default 40, cosmote default 20
private
final
int
STEP_DELAY_NS
=
250000000
;
private
int
accelRingCounter
=
0
;
private
float
[]
accelRingX
=
new
float
[
ACCEL_RING_SIZE
];
...
...
@@ -101,7 +101,7 @@ public class WarplyHealthService extends Service implements SensorEventListener
b
.
setDefaults
(
Notification
.
DEFAULT_VIBRATE
|
Notification
.
DEFAULT_LIGHTS
);
b
.
setChannelId
(
STEPS_CHANNEL_ID
);
b
.
setContentTitle
(
getString
(
R
.
string
.
cos_steps_for_good_notification_title
));
b
.
setContentText
(
"Subtitle"
);
b
.
setContentText
(
getString
(
R
.
string
.
cos_steps_for_good_notification_subtitle
)
);
b
.
setContentIntent
(
pbIntent
);
b
.
setAutoCancel
(
true
);
b
.
setOngoing
(
true
);
...
...
warply_android_sdk/src/main/res/drawable/shape_cos_gradient6_shahow.xml
0 → 100644
View file @
1075cbb
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<shape
android:shape=
"rectangle"
>
<solid
android:color=
"@color/cos_grey10"
/>
<corners
android:radius=
"7dp"
/>
</shape>
</item>
<item
android:bottom=
"2dp"
android:left=
"0dp"
android:right=
"0dp"
android:top=
"0dp"
>
<shape
android:shape=
"rectangle"
>
<gradient
android:endColor=
"@color/cos_skyblue"
android:startColor=
"@color/cos_green9"
android:type=
"linear"
/>
<corners
android:radius=
"7dp"
/>
</shape>
</item>
</layer-list>
\ No newline at end of file
warply_android_sdk/src/main/res/drawable/shape_cos_loyalty_no_border.xml
0 → 100644
View file @
1075cbb
<?xml version="1.0" encoding="utf-8"?>
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:topLeftRadius=
"30dp"
/>
<solid
android:color=
"@color/cos_grey5"
/>
</shape>
</item>
</layer-list>
\ No newline at end of file
warply_android_sdk/src/main/res/layout/activity_gifts_for_you.xml
View file @
1075cbb
...
...
@@ -43,7 +43,7 @@
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@drawable/shape_cos_loyalty"
android:background=
"@drawable/shape_cos_loyalty
_no_border
"
android:orientation=
"vertical"
>
<LinearLayout
...
...
warply_android_sdk/src/main/res/layout/activity_loyalty_wallet.xml
View file @
1075cbb
...
...
@@ -3,7 +3,7 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@
android:color/white
"
>
android:background=
"@
color/cos_grey5
"
>
<androidx.constraintlayout.widget.ConstraintLayout
android:id=
"@+id/cl_loyalty_wallet_header"
...
...
@@ -34,61 +34,11 @@
app:layout_constraintTop_toTopOf=
"parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
<!-- <ScrollView-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="match_parent"-->
<!-- android:layout_below="@+id/cl_header"-->
<!-- android:fillViewport="true">-->
<!-- <RelativeLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:background="@drawable/shape_cos_loyalty"-->
<!-- android:orientation="vertical"-->
<!-- android:paddingBottom="24dp">-->
<!-- <ImageView-->
<!-- android:id="@+id/iv_deals_logo_new"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@id/cl_deals_win"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_marginTop="48dp"-->
<!-- android:src="@drawable/ic_deals_logo_new" />-->
<!-- <TextView-->
<!-- android:id="@+id/tv_mygifts_title"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_below="@+id/cl_loyalty_deals"-->
<!-- android:layout_marginStart="12dp"-->
<!-- android:layout_marginTop="48dp"-->
<!-- android:text="@string/cos_mygifts"-->
<!-- android:textColor="@android:color/white"-->
<!-- android:textFontWeight="600"-->
<!-- android:textSize="18sp" />-->
<!-- </RelativeLayout>-->
<!-- </ScrollView>-->
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/cl_loyalty_wallet_header"
android:background=
"@color/cos_grey5"
android:fillViewport=
"true"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<LinearLayout
android:id=
"@+id/ll_first_view"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/cl_loyalty_wallet_header"
android:background=
"@drawable/ic_background_circle"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
...
...
@@ -155,11 +105,26 @@
</LinearLayout>
</LinearLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/ll_first_view"
android:background=
"@color/cos_grey5"
>
<ScrollView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/cos_grey5"
android:fillViewport=
"true"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<LinearLayout
android:id=
"@+id/ll_second_view"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/ll_first_view"
android:gravity=
"center_horizontal"
android:orientation=
"vertical"
>
...
...
@@ -332,7 +297,6 @@
android:id=
"@+id/cl_mygifts"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_mygifts_title"
android:layout_marginHorizontal=
"8dp"
android:layout_marginTop=
"12dp"
android:background=
"@drawable/shape_cos_white2"
...
...
@@ -437,4 +401,5 @@
</LinearLayout>
</RelativeLayout>
</ScrollView>
</RelativeLayout>
</RelativeLayout>
...
...
warply_android_sdk/src/main/res/layout/activity_more_for_you.xml
View file @
1075cbb
...
...
@@ -43,7 +43,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/cl_more_header"
android:background=
"@drawable/shape_cos_loyalty"
android:background=
"@drawable/shape_cos_loyalty
_no_border
"
android:orientation=
"vertical"
>
<ScrollView
...
...
warply_android_sdk/src/main/res/values/colors.xml
View file @
1075cbb
...
...
@@ -61,4 +61,5 @@
<color
name=
"cos_green10"
>
#73CA34
</color>
<color
name=
"cos_blue5"
>
#0D81B8
</color>
<color
name=
"cos_grey9"
>
#757575
</color>
<color
name=
"cos_grey10"
>
#53626E
</color>
</resources>
\ No newline at end of file
...
...
warply_android_sdk/src/main/res/values/strings.xml
View file @
1075cbb
...
...
@@ -133,6 +133,8 @@
<string
name=
"cos_empty_expired_coupons"
>
Δεν έχεις εξαργυρώσει ακόμη κουπόνια
</string>
<string
name=
"cos_dlg_pacing_goal"
>
Πέτυχες το στόχο του μήνα! Διάλεξε το δώρο που επιθυμείς να ενεργοποιήσεις!
</string>
<string
name=
"cos_mfy_other"
>
ΆΛΛΕΣ
</string>
<string
name=
"cos_coupon_share_telco"
>
Επιλογή σύνδεσης
</string>
<string
name=
"cos_steps_for_good_notification_subtitle"
>
Περπάτησε κάθε μέρα περισσότερο για να ολοκληρώσεις το στόχο του μήνα και να ξεκλειδώσεις μοναδικές προσφορές!
</string>
<string-array
name=
"coupons_array"
>
<item>
Κουπόνια
</item>
...
...
Please
register
or
login
to post a comment