Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Android/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Demo 初始化参数

app/src/main/java/cn/leancloud/leanstoragegettingstarted/GettingStartedApp.java

```java
LeanCloud.initialize(this,"OLoj899IwHYi787ClrImlr3k-gzGzoHsz", "gkz35mRTqTE2aqwp7dEr5uEE","https://oloj899i.lc-cn-n1-shared.com");
```
5 changes: 3 additions & 2 deletions Android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
compileSdk 28
defaultConfig {
applicationId "cn.leancloud.leanstoragegettingstarted"
minSdkVersion 14
Expand All @@ -19,14 +19,15 @@ android {
sourceCompatibility 1.8
targetCompatibility 1.8
}
namespace 'cn.leancloud.leanstoragegettingstarted'

}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.3.0'

implementation 'cn.leancloud:storage-android:8.0.1'
implementation 'cn.leancloud:storage-android:8.2.23'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'

implementation 'androidx.recyclerview:recyclerview:1.2.1'
Expand Down
3 changes: 1 addition & 2 deletions Android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cn.leancloud.leanstoragegettingstarted">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
Expand Down
2 changes: 1 addition & 1 deletion Android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
classpath 'com.android.tools.build:gradle:8.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 2 additions & 0 deletions Android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
2 changes: 1 addition & 1 deletion Android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
4 changes: 2 additions & 2 deletions iOS/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
platform :ios, '12.0'

target 'StorageStarted' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'LeanCloudObjc'
pod 'LeanCloudObjc', '~> 14.0'
pod 'SDWebImage'

target 'StorageStartedTests' do
Expand Down
22 changes: 11 additions & 11 deletions iOS/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- LeanCloudObjc (13.0.0):
- LeanCloudObjc/Realtime (= 13.0.0)
- LeanCloudObjc/Foundation (13.0.0)
- "LeanCloudObjc/Protobuf+Protocol (13.0.0)"
- LeanCloudObjc/Realtime (13.0.0):
- LeanCloudObjc/Foundation (= 13.0.0)
- "LeanCloudObjc/Protobuf+Protocol (= 13.0.0)"
- LeanCloudObjc (14.0.0):
- LeanCloudObjc/Realtime (= 14.0.0)
- LeanCloudObjc/Foundation (14.0.0)
- "LeanCloudObjc/Protobuf+Protocol (14.0.0)"
- LeanCloudObjc/Realtime (14.0.0):
- LeanCloudObjc/Foundation (= 14.0.0)
- "LeanCloudObjc/Protobuf+Protocol (= 14.0.0)"
- SDWebImage (5.11.1):
- SDWebImage/Core (= 5.11.1)
- SDWebImage/Core (5.11.1)

DEPENDENCIES:
- LeanCloudObjc
- LeanCloudObjc (~> 14.0)
- SDWebImage

SPEC REPOS:
Expand All @@ -20,9 +20,9 @@ SPEC REPOS:
- SDWebImage

SPEC CHECKSUMS:
LeanCloudObjc: a896a7521061948c6b636567c466691e9c7abd05
LeanCloudObjc: 2b7543b3976e9f105ba5bf3e99de3ea58458bf23
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d

PODFILE CHECKSUM: 176bb1ae50f6c972679c2a5ab037fedd157041b3
PODFILE CHECKSUM: 30fb402911e9442ab0c106ff27982b9b63e545d1

COCOAPODS: 1.10.1
COCOAPODS: 1.15.2
9 changes: 9 additions & 0 deletions iOS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Demo 初始化参数

StorageStarted/AppDelegate.m

```objective-c
#define APP_ID @"OLoj899IwHYi787ClrImlr3k-gzGzoHsz"
#define APP_KEY @"gkz35mRTqTE2aqwp7dEr5uEE"
#define SERVER_URL @"https://oloj899i.lc-cn-n1-shared.com"
```