Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 1933f50

Browse files
committed
updates
1 parent fd72a3c commit 1933f50

File tree

4 files changed

+12
-38
lines changed

4 files changed

+12
-38
lines changed

app/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies {
5151
implementation 'com.google.android.material:material:1.0.0'
5252

5353
//play store core
54-
implementation 'com.google.android.play:core:1.6.3'
54+
implementation 'com.google.android.play:core:1.6.4'
5555

5656
//navigation
5757
implementation 'androidx.navigation:navigation-fragment:2.1.0'
@@ -66,8 +66,8 @@ dependencies {
6666
implementation "io.noties.markwon:image-glide:4.1.0"
6767

6868
//Firebase
69-
implementation 'com.google.firebase:firebase-config:19.0.2'
70-
implementation 'com.google.firebase:firebase-core:17.2.0'
69+
implementation 'com.google.firebase:firebase-config:19.0.3'
70+
implementation 'com.google.firebase:firebase-core:17.2.1'
7171
implementation 'com.google.firebase:firebase-messaging:20.0.0'
7272
implementation 'com.google.firebase:firebase-invites:17.0.0'
7373
implementation 'com.google.firebase:firebase-appindexing:19.0.0'
@@ -85,9 +85,9 @@ dependencies {
8585
// implementation 'com.sun.mail:javax.mail:1.6.2'
8686

8787
// Room components
88-
implementation 'androidx.room:room-runtime:2.1.0'
89-
annotationProcessor 'androidx.room:room-compiler:2.1.0'
90-
androidTestImplementation 'androidx.room:room-testing:2.1.0'
88+
implementation 'androidx.room:room-runtime:2.2.0'
89+
annotationProcessor 'androidx.room:room-compiler:2.2.0'
90+
androidTestImplementation 'androidx.room:room-testing:2.2.0'
9191

9292
// Lifecycle components
9393
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'

app/src/main/java/com/grobo/notifications/setting/AboutAppFragment.java

+5-30
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,24 @@
1717
import com.grobo.notifications.R;
1818
import com.grobo.notifications.utils.utils;
1919

20-
21-
/**
22-
* A simple {@link Fragment} subclass.
23-
*/
2420
public class AboutAppFragment extends Fragment {
2521

26-
2722
private ImageView image1;
2823
private ImageView image2;
2924
private ImageView image3;
3025
private TextView version;
3126

3227
public AboutAppFragment() {
33-
// Required empty public constructor
3428
}
3529

3630
@Override
3731
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
38-
3932
super.onViewCreated( view, savedInstanceState );
4033
getActivity().setTitle( "About App" );
4134
}
4235

4336
@Override
44-
public View onCreateView(LayoutInflater inflater, ViewGroup container,
45-
Bundle savedInstanceState) {
46-
// Inflate the layout for this fragment
37+
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
4738
View view= inflater.inflate( R.layout.fragment_about_app, container, false );
4839
image1=view.findViewById( R.id.layout1 );
4940
image2=view.findViewById( R.id.layout2 );
@@ -52,26 +43,10 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
5243
Glide.with( getContext() ).load( "https://firebasestorage.googleapis.com/v0/b/timetable-grobo.appspot.com/o/developers%2Fimg_aman.jpg?alt=media&token=b9fb030e-ec72-4c5d-9596-08f96e423c62" ).into( image2 );
5344
Glide.with( getContext() ).load("https://scontent-bom1-1.xx.fbcdn.net/v/t1.0-9/13465932_575022276008402_3643238272861381971_n.jpg?_nc_cat=107&_nc_oc=AQl6h5Kelo5Yhj3FvLsD_7DokoGGJfQfV2lS8KQ51YnH5YoMDfBB7T7T6XOO4JFVeZo&_nc_ht=scontent-bom1-1.xx&oh=53d8be896066fb79aa4dc062754507e0&oe=5DE44B87" ).into( image3 );
5445
version=view.findViewById( R.id.version );
55-
version.setText( "Version:- "+ utils.getAppVersion(getContext()) );
56-
image1.setOnClickListener( new View.OnClickListener() {
57-
@Override
58-
public void onClick(View view) {
59-
browserIntent( "https://www.facebook.com/anmol.chaddha.125" );
60-
61-
}
62-
} );
63-
image2.setOnClickListener( new View.OnClickListener() {
64-
@Override
65-
public void onClick(View view) {
66-
browserIntent( "https://www.facebook.com/amangrobo" );
67-
}
68-
} );
69-
image3.setOnClickListener( new View.OnClickListener() {
70-
@Override
71-
public void onClick(View view) {
72-
browserIntent( "https://www.facebook.com/ashwani.yadav9499" );
73-
}
74-
} );
46+
version.setText(String.format("Version: %s", utils.getAppVersion(getContext())));
47+
image1.setOnClickListener(view13 -> browserIntent( "https://www.facebook.com/anmol.chaddha.125" ));
48+
image2.setOnClickListener(view1 -> browserIntent( "https://www.facebook.com/amangrobo" ));
49+
image3.setOnClickListener(view12 -> browserIntent( "https://www.facebook.com/ashwani.yadav9499" ));
7550

7651

7752
return view;

app/src/main/res/values/strings.xml

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
<string name="app_google_play_store_link">"https://play.google.com/store/apps/details?id="</string>
1717
<string name="app_market_link">"market://details?id="</string>
1818

19-
<string name="FCM_authorization">key=AAAAHlsC9sw:APA91bEeRILLYmitqLt0DOYGKj6o0Xy9FW_nenzEwkBn4QIi5uMZt3LQqOLA4TsYT2WVcd_Ufn7eyFbeSSw5GPUXWHAjRg3IWYRPAYDn6jVoCKuiIZUlan5F-2SEX2YkMBNdsIBFSDQI</string>
2019
<string name="default_notification_channel_id">notifications</string>
2120
<string name="default_notification_channel_description">All the notifications are sent through this channel.</string>
2221

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.5.0'
10+
classpath 'com.android.tools.build:gradle:3.5.2'
1111
classpath 'com.google.gms:google-services:4.2.0'
1212

1313
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)