diff --git a/Android/README.md b/Android/README.md new file mode 100644 index 0000000..78f8aca --- /dev/null +++ b/Android/README.md @@ -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"); +``` \ No newline at end of file diff --git a/Android/app/build.gradle b/Android/app/build.gradle index 9c41a57..c888e05 100644 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 28 + compileSdk 28 defaultConfig { applicationId "cn.leancloud.leanstoragegettingstarted" minSdkVersion 14 @@ -19,6 +19,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'cn.leancloud.leanstoragegettingstarted' } dependencies { @@ -26,7 +27,7 @@ dependencies { 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' diff --git a/Android/app/src/main/AndroidManifest.xml b/Android/app/src/main/AndroidManifest.xml index 2f1ef3e..e0785a2 100644 --- a/Android/app/src/main/AndroidManifest.xml +++ b/Android/app/src/main/AndroidManifest.xml @@ -1,6 +1,5 @@ - + diff --git a/Android/build.gradle b/Android/build.gradle index fa5e4b6..a02c98f 100644 --- a/Android/build.gradle +++ b/Android/build.gradle @@ -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 diff --git a/Android/gradle.properties b/Android/gradle.properties index 5465fec..918826a 100644 --- a/Android/gradle.properties +++ b/Android/gradle.properties @@ -1,2 +1,4 @@ android.enableJetifier=true +android.nonFinalResIds=false +android.nonTransitiveRClass=false android.useAndroidX=true \ No newline at end of file diff --git a/Android/gradle/wrapper/gradle-wrapper.properties b/Android/gradle/wrapper/gradle-wrapper.properties index e6a276a..5abdf1d 100644 --- a/Android/gradle/wrapper/gradle-wrapper.properties +++ b/Android/gradle/wrapper/gradle-wrapper.properties @@ -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 diff --git a/iOS/Podfile b/iOS/Podfile index d807a11..c372a7e 100644 --- a/iOS/Podfile +++ b/iOS/Podfile @@ -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 diff --git a/iOS/Podfile.lock b/iOS/Podfile.lock index 12a8a03..ab3623f 100644 --- a/iOS/Podfile.lock +++ b/iOS/Podfile.lock @@ -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: @@ -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 diff --git a/iOS/README.md b/iOS/README.md new file mode 100644 index 0000000..e2e9012 --- /dev/null +++ b/iOS/README.md @@ -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" +``` \ No newline at end of file