Skip to content

Commit 596b91c

Browse files
committed
Update
1 parent a71f0aa commit 596b91c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+43
-47988
lines changed

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ dependencies {
3636
testImplementation 'junit:junit:4.13.2'
3737
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
3838
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
39-
40-
implementation project(':bangalcodepickerlib')
39+
40+
implementation 'com.github.n3o-d4rk3r:BangalCodePicker:1.0'
4141
}

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
tools:context=".MainActivity">
99

1010
<bd.com.bangal.bangalcodepickerlib.CountryCodePicker
11-
android:id="@+id/ccp_loadFullNumber"
1211
android:layout_width="wrap_content"
1312
android:layout_height="wrap_content"
13+
app:ccp_showFlag="false"
1414
app:ccp_defaultNameCode="BD"
15-
app:ccp_countryPreference="BD,IN,GB,US"/>
15+
app:ccp_countryPreference="BD"/>
1616

1717
</RelativeLayout>

bangalcodepickerlib/build.gradle

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,9 @@ android {
3030
dependencies {
3131

3232
implementation 'androidx.appcompat:appcompat:1.6.0'
33-
implementation 'com.google.android.material:material:1.7.0'
33+
implementation 'com.google.android.material:material:1.8.0'
3434
testImplementation 'junit:junit:4.13.2'
3535
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
3636
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
37-
38-
/* Bangal Phone Lib */
3937
implementation 'com.github.n3o-d4rk3r:BangalPhoneLib:1.0'
40-
}
41-
42-
afterEvaluate {
43-
publishing {
44-
publications {
45-
release(MavenPublication) {
46-
groupId = 'com.github.n3o-d4rk3r'
47-
artifactId = 'bangalcodepickerlib'
48-
version = '1.0'
49-
artifact(bundleReleaseAar)
50-
}
51-
}
52-
}
5338
}

bangalcodepickerlib/src/androidTest/java/bd/com/bangal/bangalcodepickerlib/ExampleInstrumentedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
2121
public void useAppContext() {
2222
// Context of the app under test.
2323
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24-
assertEquals("bd.com.bangal.codepickerlib.test", appContext.getPackageName());
24+
assertEquals("bd.com.bangal.bangalcodepickerlib.test", appContext.getPackageName());
2525
}
2626
}

bangalcodepickerlib/src/main/java/bd/com/bangal/bangalcodepickerlib/CCPCountry.java

Lines changed: 3 additions & 242 deletions
Large diffs are not rendered by default.

bangalcodepickerlib/src/main/java/bd/com/bangal/bangalcodepickerlib/CountryCodeAdapter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package bd.com.bangal.bangalcodepickerlib;
22

3-
import android.annotation.SuppressLint;
43
import android.app.Dialog;
54
import android.content.Context;
65
import android.text.Editable;
@@ -221,7 +220,6 @@ class CountryCodeViewHolder extends RecyclerView.ViewHolder {
221220
LinearLayout linearFlagHolder;
222221
View divider;
223222

224-
@SuppressLint("WrongConstant")
225223
public CountryCodeViewHolder(View itemView) {
226224
super(itemView);
227225
relativeLayout_main = (RelativeLayout) itemView;

bangalcodepickerlib/src/main/java/bd/com/bangal/bangalcodepickerlib/CountryCodeDialog.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package bd.com.bangal.bangalcodepickerlib;
22

3-
import android.annotation.SuppressLint;
43
import android.app.Activity;
54
import android.app.Dialog;
65
import android.content.Context;
@@ -33,7 +32,6 @@
3332
/**
3433
* Created by hbb20 on 11/1/16.
3534
*/
36-
@SuppressLint("SoonBlockedPrivateApi")
3735
class CountryCodeDialog {
3836
private static final Field
3937
sEditorField,
@@ -78,7 +76,6 @@ public static void openCountryCodeDialog(final CountryCodePicker codePicker) {
7876
openCountryCodeDialog(codePicker, null);
7977
}
8078

81-
@SuppressLint("WrongConstant")
8279
public static void
8380
openCountryCodeDialog(final CountryCodePicker codePicker, final String countryNameCode) {
8481
context = codePicker.getContext();

bangalcodepickerlib/src/main/java/bd/com/bangal/bangalcodepickerlib/CountryCodePicker.java

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@
4040
import bd.com.bangal.bangalphone.Phonenumber;
4141

4242

43+
/**
44+
* Created by hbb20 on 11/1/16.
45+
*/
4346
public class CountryCodePicker extends RelativeLayout {
4447

4548
static final int DEFAULT_UNSET = -99;
4649
static String TAG = "CCP";
4750
static String BUNDLE_SELECTED_CODE = "selectedCode";
48-
static int LIB_DEFAULT_COUNTRY_CODE = 880;
51+
static int LIB_DEFAULT_COUNTRY_CODE = 88;
4952
private static int TEXT_GRAVITY_LEFT = -1, TEXT_GRAVITY_RIGHT = 1, TEXT_GRAVITY_CENTER = 0;
5053
private static String ANDROID_NAME_SPACE = "http://schemas.android.com/apk/res/android";
5154
private CCPTalkBackTextProvider talkBackTextProvider = new InternalTalkBackTextProvider();
@@ -2451,42 +2454,8 @@ public enum Language {
24512454
ARABIC("ar"),
24522455
BASQUE("eu"),
24532456
BENGALI("bn"),
2454-
CHINESE_SIMPLIFIED("zh", "CN", "Hans"),
2455-
CHINESE_TRADITIONAL("zh", "TW", "Hant"),
2456-
CZECH("cs"),
2457-
DANISH("da"),
2458-
DUTCH("nl"),
2459-
ENGLISH("en"),
2460-
FARSI("fa"),
2461-
FRENCH("fr"),
2462-
GERMAN("de"),
2463-
GREEK("el"),
2464-
GUJARATI("gu"),
2465-
HEBREW("iw"),
2466-
HINDI("hi"),
2467-
HUNGARIAN("hu"),
2468-
INDONESIA("in"),
2469-
ITALIAN("it"),
2470-
JAPANESE("ja"),
2471-
KAZAKH("kk"),
2472-
KOREAN("ko"),
2473-
MARATHI("mr"),
2474-
POLISH("pl"),
2475-
PORTUGUESE("pt"),
2476-
PUNJABI("pa"),
2477-
RUSSIAN("ru"),
2478-
SERBIAN("sr"),
2479-
SLOVAK("sk"),
2480-
SLOVENIAN("si"),
2481-
SPANISH("es"),
2482-
SWEDISH("sv"),
2483-
TAGALOG("tl"),
2484-
THAI("th"),
2485-
TURKISH("tr"),
2486-
UKRAINIAN("uk"),
2487-
URDU("ur"),
2488-
UZBEK("uz"),
2489-
VIETNAMESE("vi");
2457+
2458+
ENGLISH("en");
24902459

24912460
private String code;
24922461
private String country;

bangalcodepickerlib/src/main/res/layout/layout_code_picker.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
xmlns:app="http://schemas.android.com/apk/res-auto"
55
android:id="@+id/countryCodeHolder"
66
android:layout_width="wrap_content"
7-
android:layout_height="wrap_content"
8-
>
7+
android:layout_height="wrap_content">
98

109
<RelativeLayout
1110
android:id="@+id/rlClickConsumer"
1211
android:layout_width="wrap_content"
1312
android:layout_height="wrap_content"
14-
android:padding="@dimen/ccp_padding"
15-
>
13+
android:padding="@dimen/ccp_padding">
1614

1715
<LinearLayout
1816
android:id="@+id/linear_flag_holder"
@@ -21,15 +19,13 @@
2119
android:layout_centerVertical="true"
2220
android:layout_gravity="center_vertical"
2321
android:layout_marginEnd="@dimen/google_1x"
24-
android:layout_marginRight="@dimen/google_1x"
25-
>
22+
android:layout_marginRight="@dimen/google_1x">
2623

2724
<LinearLayout
2825
android:id="@+id/linear_flag_border"
2926
android:layout_width="wrap_content"
3027
android:layout_height="wrap_content"
31-
android:background="@android:color/transparent"
32-
>
28+
android:background="@android:color/transparent">
3329

3430
<ImageView
3531
android:id="@+id/image_flag"
@@ -53,8 +49,7 @@
5349
android:singleLine="true"
5450
android:text="(BD) +880"
5551
android:textColor="@android:color/black"
56-
android:textSize="18sp"
57-
/>
52+
android:textSize="18sp"/>
5853

5954
<ImageView
6055
android:id="@+id/imageView_arrow"

bangalcodepickerlib/src/main/res/layout/layout_picker_dialog.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
2+
<androidx.cardview.widget.CardView
3+
xmlns:android="http://schemas.android.com/apk/res/android"
34
xmlns:app="http://schemas.android.com/apk/res-auto"
45
android:id="@+id/cardViewRoot"
5-
app:cardCornerRadius="10dp"
6+
app:cardCornerRadius="15dp"
7+
app:cardElevation="6dp"
8+
android:layout_margin="10dp"
69
android:layout_width="match_parent"
710
android:layout_height="wrap_content">
811

@@ -86,7 +89,7 @@
8689
<bd.com.bangal.bangalcodepickerlib.recyclerviewfastscroll.FastScroller
8790
android:id="@+id/fastscroll"
8891
android:layout_width="wrap_content"
89-
android:layout_height="match_parent"
92+
android:layout_height="wrap_content"
9093
android:layout_alignTop="@+id/recycler_countryDialog"
9194
android:layout_alignEnd="@+id/recycler_countryDialog"
9295
android:layout_alignRight="@+id/recycler_countryDialog"

bangalcodepickerlib/src/main/res/layout/layout_recycler_country_tile.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
android:layout_width="wrap_content"
2020
android:layout_height="wrap_content"
2121
android:adjustViewBounds="true"
22-
app:srcCompat="@drawable/flag_bangladesh" />
22+
app:srcCompat="@drawable/flag_india" />
2323
</LinearLayout>
2424

2525
<TextView
@@ -34,7 +34,7 @@
3434
android:layout_marginStart="@dimen/google_1x"
3535
android:layout_marginLeft="@dimen/google_1x"
3636
android:gravity="center_vertical"
37-
android:text="Bangladesh (BD)"
37+
android:text="India (IN)"
3838
android:textColor="@android:color/secondary_text_light" />
3939

4040
<TextView
@@ -51,7 +51,7 @@
5151
android:paddingLeft="10dp"
5252
android:paddingRight="10dp"
5353
android:paddingStart="10dp"
54-
android:text="+880"
54+
android:text="+91"
5555
android:textColor="@android:color/secondary_text_light"
5656
android:textDirection="ltr" />
5757
<View

0 commit comments

Comments
 (0)