Skip to content

Commit fa6ee71

Browse files
authored
[BKNDLSS-26295] We need to update the guide for login with google plus sdk (#508)
* [BKNDLSS-26295] We need to update the guide for login with google plus sdk * Updated BackendlessCollectionUsage example * Updated DataService example * Fixed code formatting for BackendlessCollectionUsage example * Removed EndlessMatchMaker * Updated filedemo example * Code reorganization for ToDoDemo example * Updated RolesDemo example * Updated UserService example * Fixed code organization
1 parent 01dda45 commit fa6ee71

File tree

274 files changed

+2147
-7633
lines changed

Some content is hidden

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

274 files changed

+2147
-7633
lines changed

samples/BackendlessCollectionUsage/app/build.gradle

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 28
5-
buildToolsVersion "29.0.2"
4+
compileSdkVersion 30
5+
buildToolsVersion "30.0.2"
66
defaultConfig {
7-
applicationId "com.example.backendlesscollectionusage"
8-
minSdkVersion 21
9-
targetSdkVersion 28
7+
applicationId "com.examples.backendless.backendlesscollectionusage"
8+
minSdkVersion 30
9+
targetSdkVersion 30
1010
versionCode 1
1111
versionName "1.0"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -28,14 +28,17 @@ android {
2828

2929

3030
dependencies {
31-
implementation 'com.android.support:support-compat:28.0.0'
32-
implementation 'com.android.support:appcompat-v7:28.0.0'
31+
// please, set the current version of backendless sdk for Android here.
32+
implementation 'com.backendless:backendless:6.3.1'
33+
implementation 'androidx.core:core:1.6.0'
34+
implementation 'androidx.appcompat:appcompat:1.3.1'
3335

3436
implementation fileTree(dir: 'libs', include: ['*.jar'])
35-
implementation 'androidx.appcompat:appcompat:1.1.0'
36-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
37+
implementation 'androidx.appcompat:appcompat:1.3.1'
38+
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
3739
testImplementation 'junit:junit:4.12'
38-
androidTestImplementation 'androidx.test:runner:1.2.0'
39-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
40-
implementation 'androidx.recyclerview:recyclerview:1.0.0'
40+
androidTestImplementation 'androidx.test:runner:1.4.0'
41+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
42+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
43+
implementation 'androidx.recyclerview:recyclerview:1.2.1'
4144
}
-1.11 MB
Binary file not shown.
-10.3 KB
Binary file not shown.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.backendlesscollectionusage;
1+
package com.examples.backendless.backendlesscollectionusage;
22

33
import android.content.Context;
44

@@ -15,13 +15,13 @@
1515
*
1616
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
1717
*/
18-
@RunWith(AndroidJUnit4.class)
18+
@RunWith( AndroidJUnit4.class)
1919
public class ExampleInstrumentedTest {
2020
@Test
2121
public void useAppContext() {
2222
// Context of the app under test.
2323
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
2424

25-
assertEquals("com.example.backendlesscollectionusage", appContext.getPackageName());
25+
assertEquals("com.examples.backendless.backendlesscollectionusage", appContext.getPackageName());
2626
}
2727
}

samples/BackendlessCollectionUsage/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.backendlesscollectionusage">
3+
package="com.examples.backendless.backendlesscollectionusage">
44

55
<uses-permission android:name="android.permission.INTERNET" />
66

@@ -11,7 +11,7 @@
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme">
14-
<activity android:name=".MainActivity">
14+
<activity android:name="com.examples.backendless.backendlesscollectionusage.MainActivity">
1515
<intent-filter>
1616
<action android:name="android.intent.action.MAIN" />
1717

samples/BackendlessCollectionUsage/app/src/main/java/com/example/backendlesscollectionusage/CustomRecyclerViewAdapter.java

Lines changed: 0 additions & 129 deletions
This file was deleted.

samples/BackendlessCollectionUsage/app/src/main/java/com/example/backendlesscollectionusage/MainActivity.java

Lines changed: 0 additions & 35 deletions
This file was deleted.

samples/BackendlessCollectionUsage/app/src/main/java/com/example/backendlesscollectionusage/Car.java renamed to samples/BackendlessCollectionUsage/app/src/main/java/com/examples/backendless/backendlesscollectionusage/Car.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
package com.example.backendlesscollectionusage;
2+
package com.examples.backendless.backendlesscollectionusage;
33

44
import com.backendless.Backendless;
55
import com.backendless.async.callback.AsyncCallback;
@@ -9,7 +9,6 @@
99
import java.util.Date;
1010
import java.util.List;
1111

12-
1312
public class Car implements BackendlessDataCollection.Identifiable<Car>
1413
{
1514
private String model;
@@ -20,7 +19,8 @@ public class Car implements BackendlessDataCollection.Identifiable<Car>
2019
private Date created;
2120

2221
@Override
23-
public void setObjectId(String s) {
22+
public void setObjectId( String s )
23+
{
2424
this.objectId = objectId;
2525
}
2626

@@ -64,7 +64,6 @@ public Date getCreated()
6464
return created;
6565
}
6666

67-
6867
public Car save()
6968
{
7069
return Backendless.Data.of( Car.class ).save( this );

0 commit comments

Comments
 (0)