Subversion Repository Public Repository

EventoApp

Diff Revisions 19 vs 20 for /aplicativo/EBI2019/android/app/build.gradle

Diff revisions: vs.
  @@ -2,75 +2,6 @@
2 2
3 3 import com.android.build.OutputFile
4 4
5 - /**
6 - * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 - * and bundleReleaseJsAndAssets).
8 - * These basically call `react-native bundle` with the correct arguments during the Android build
9 - * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 - * bundle directly from the development server. Below you can see all the possible configurations
11 - * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 - * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 - *
14 - * project.ext.react = [
15 - * // the name of the generated asset file containing your JS bundle
16 - * bundleAssetName: "index.android.bundle",
17 - *
18 - * // the entry file for bundle generation
19 - * entryFile: "index.android.js",
20 - *
21 - * // whether to bundle JS and assets in debug mode
22 - * bundleInDebug: false,
23 - *
24 - * // whether to bundle JS and assets in release mode
25 - * bundleInRelease: true,
26 - *
27 - * // whether to bundle JS and assets in another build variant (if configured).
28 - * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 - * // The configuration property can be in the following formats
30 - * // 'bundleIn${productFlavor}${buildType}'
31 - * // 'bundleIn${buildType}'
32 - * // bundleInFreeDebug: true,
33 - * // bundleInPaidRelease: true,
34 - * // bundleInBeta: true,
35 - *
36 - * // whether to disable dev mode in custom build variants (by default only disabled in release)
37 - * // for example: to disable dev mode in the staging build type (if configured)
38 - * devDisabledInStaging: true,
39 - * // The configuration property can be in the following formats
40 - * // 'devDisabledIn${productFlavor}${buildType}'
41 - * // 'devDisabledIn${buildType}'
42 - *
43 - * // the root of your project, i.e. where "package.json" lives
44 - * root: "../../",
45 - *
46 - * // where to put the JS bundle asset in debug mode
47 - * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
48 - *
49 - * // where to put the JS bundle asset in release mode
50 - * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
51 - *
52 - * // where to put drawable resources / React Native assets, e.g. the ones you use via
53 - * // require('./image.png')), in debug mode
54 - * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
55 - *
56 - * // where to put drawable resources / React Native assets, e.g. the ones you use via
57 - * // require('./image.png')), in release mode
58 - * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
59 - *
60 - * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
61 - * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
62 - * // date; if you have any other folders that you want to ignore for performance reasons (gradle
63 - * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
64 - * // for example, you might want to remove it from here.
65 - * inputExcludes: ["android/**", "ios/**"],
66 - *
67 - * // override which node gets called and with what additional arguments
68 - * nodeExecutableAndArgs: ["node"],
69 - *
70 - * // supply additional arguments to the packager
71 - * extraPackagerArgs: []
72 - * ]
73 - */
74 5
75 6 project.ext.react = [
76 7 entryFile: "index.js"
  @@ -78,31 +9,21 @@
78 9
79 10 apply from: "../../node_modules/react-native/react.gradle"
80 11
81 - /**
82 - * Set this to true to create two separate APKs instead of one:
83 - * - An APK that only works on ARM devices
84 - * - An APK that only works on x86 devices
85 - * The advantage is the size of the APK is reduced by about 4MB.
86 - * Upload all the APKs to the Play Store and people will download
87 - * the correct one based on the CPU architecture of their device.
88 - */
89 12 def enableSeparateBuildPerCPUArchitecture = false
90 13
91 - /**
92 - * Run Proguard to shrink the Java bytecode in release builds.
93 - */
94 14 def enableProguardInReleaseBuilds = false
95 15
96 16 android {
97 - compileSdkVersion 23
98 - //targetSdkVersion 27
17 + compileSdkVersion rootProject.ext.compileSdkVersion
18 + buildToolsVersion rootProject.ext.buildToolsVersion
19 +
99 20 defaultConfig {
100 21 vectorDrawables.useSupportLibrary = true
101 22 applicationId "com.ebi2019"
102 - minSdkVersion 16
103 - targetSdkVersion 27
104 - versionCode 8
105 - versionName "1.0"
23 + minSdkVersion rootProject.ext.minSdkVersion
24 + targetSdkVersion rootProject.ext.targetSdkVersion
25 + versionCode 9
26 + versionName "0.0.9"
106 27 ndk {
107 28 abiFilters "armeabi-v7a", "x86"
108 29 }
  @@ -117,10 +38,10 @@
117 38 keyPassword MYAPP_RELEASE_KEY_PASSWORD
118 39
119 40 }
120 - keyAlias 'EBI'
41 + /*keyAlias 'EBI'
121 42 keyPassword 'dofus1a2b'
122 43 storeFile file('C:/Users/BPM_LAB_05/Desktop/aplicativo/EBI2019/android/my-release-key.keystore')
123 - storePassword 'dofus1a2b'
44 + storePassword 'dofus1a2b'*/
124 45
125 46 }
126 47 }
  @@ -138,10 +59,7 @@
138 59 proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
139 60 signingConfig signingConfigs.release
140 61 }
141 - debug {
142 - debuggable false
143 - minifyEnabled false
144 - }
62 +
145 63 }
146 64 // applicationVariants are e.g. debug, release
147 65 applicationVariants.all { variant ->
  @@ -156,22 +74,12 @@
156 74 }
157 75 }
158 76 }
159 - buildToolsVersion '28.0.3'
160 - dexOptions {
161 - }
162 - compileOptions {
163 - sourceCompatibility JavaVersion.VERSION_1_7
164 - targetCompatibility JavaVersion.VERSION_1_8
165 - }
166 - productFlavors {
167 - }
168 77 }
169 78
170 79 dependencies {
171 - implementation fileTree(include: ['*.jar'], dir: 'libs')
172 - implementation 'com.android.support:appcompat-v7:23.4.0'
173 - implementation 'com.facebook.react:react-native:+'
174 - // From node_modules
80 + implementation fileTree(dir: "libs", include: ["*.jar"])
81 + implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
82 + implementation "com.facebook.react:react-native:+" // From node_modules
175 83 }
176 84
177 85 // Run this once to be able to run the application with BUCK