Skip to content

Commit 2b942a2

Browse files
committed
[android] compile code push cource code
1 parent 84a373b commit 2b942a2

32 files changed

Lines changed: 3345 additions & 27 deletions

android/build.gradle

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,23 @@ buildscript {
2020
}
2121

2222
apply plugin: 'com.android.library'
23-
23+
24+
def DEFAULT_COMPILE_SDK_VERSION = 30
25+
def DEFAULT_BUILD_TOOLS_VERSION = "30.0.3"
26+
def DEFAULT_TARGET_SDK_VERSION = 30
27+
def DEFAULT_MIN_SDK_VERSION = 16
28+
2429
android {
25-
compileSdkVersion 30
26-
30+
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
31+
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
32+
2733
defaultConfig {
28-
minSdkVersion 16
29-
targetSdkVersion 30
34+
minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
35+
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
3036
versionCode 1
3137
versionName "1.0"
3238
}
39+
3340
lintOptions {
3441
warning 'InvalidPackage', 'MissingPermission'
3542
}
57.5 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

android/gradlew

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

android/gradlew.bat

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
apply plugin: "com.android.library"
2+
3+
def DEFAULT_COMPILE_SDK_VERSION = 30
4+
def DEFAULT_BUILD_TOOLS_VERSION = "30.0.3"
5+
def DEFAULT_TARGET_SDK_VERSION = 30
6+
def DEFAULT_MIN_SDK_VERSION = 16
7+
8+
android {
9+
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10+
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
11+
12+
defaultConfig {
13+
minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.minSdkVersion : DEFAULT_MIN_SDK_VERSION
14+
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
15+
versionCode 1
16+
versionName "1.0"
17+
}
18+
19+
lintOptions {
20+
abortOnError false
21+
}
22+
23+
defaultConfig {
24+
consumerProguardFiles 'proguard-rules.pro'
25+
}
26+
}
27+
28+
repositories {
29+
google()
30+
jcenter()
31+
maven { url 'https://jitpack.io' }
32+
}
33+
34+
dependencies {
35+
implementation 'com.github.beatjs:react-android:0.63.4.+'
36+
implementation 'com.nimbusds:nimbus-jose-jwt:5.1'
37+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Invoked via reflection, when setting js bundle.
20+
-keepclassmembers class com.facebook.react.ReactInstanceManager {
21+
private final ** mBundleLoader;
22+
}
23+
24+
# Can't find referenced class org.bouncycastle.**
25+
-dontwarn com.nimbusds.jose.**

0 commit comments

Comments
 (0)