├── android ├── app │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ ├── values │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── layout │ │ │ │ │ ├── image_layout.xml │ │ │ │ │ ├── welcome_layout.xml │ │ │ │ │ └── images_activity.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── google │ │ │ │ └── samples │ │ │ │ └── cronet_sample │ │ │ │ ├── data │ │ │ │ └── ImageRepository.java │ │ │ │ ├── WelcomeActivity.java │ │ │ │ ├── ViewAdapter.java │ │ │ │ ├── ReadToMemoryCronetCallback.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── CronetApplication.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── google │ │ │ └── samples │ │ │ └── cronet_sample │ │ │ ├── MainActivityTest.java │ │ │ └── WelcomeActivityTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── README.md ├── CONTRIBUTING.md └── LICENSE /android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | .idea 5 | .idea_modules 6 | .DS_Store 7 | /build 8 | /captures 9 | app/app-release.apk 10 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleChromeLabs/cronet-sample/master/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jul 06 13:42:22 UTC 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip 4 | distributionPath=wrapper/dists 5 | zipStorePath=wrapper/dists 6 | zipStoreBase=GRADLE_USER_HOME 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | mavenCentral() 6 | google() 7 | // jcenter() // eol 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:4.2.0' 11 | // NOTE: Do not place your application dependencies here; they belong 12 | // in the individual module build.gradle files 13 | } 14 | } 15 | 16 | allprojects { 17 | repositories { 18 | mavenCentral() 19 | google() 20 | // jcenter() // eol 21 | 22 | } 23 | } 24 | 25 | task clean(type: Delete) { 26 | delete rootProject.buildDir 27 | } 28 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/cchiappini/Library/Android/sdk/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 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | android.enableJetifier=true 20 | android.useAndroidX=true -------------------------------------------------------------------------------- /android/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 4dp 18 | 144dp 19 | 16dp 20 | 8dp 21 | 32dp 22 | 72dp 23 | 24 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/image_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 24 | 25 | 29 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | #3F51B5 19 | #303F9F 20 | #FF4081 21 | 22 | #00bad2 23 | #00a3b8 24 | #424242 25 | #3F51B5 26 | 27 | @android:color/white 28 | #616161 29 | #f5f5f5 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/google/samples/cronet_sample/data/ImageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.samples.cronet_sample.data; 17 | 18 | public class ImageRepository { 19 | 20 | private static String[] imageUrls= { 21 | "https://storage.googleapis.com/cronet/sun.jpg", 22 | "https://storage.googleapis.com/cronet/flower.jpg", 23 | "https://storage.googleapis.com/cronet/chair.jpg", 24 | "https://storage.googleapis.com/cronet/white.jpg", 25 | "https://storage.googleapis.com/cronet/moka.jpg", 26 | "https://storage.googleapis.com/cronet/walnut.jpg" 27 | }; 28 | 29 | public static int numberOfImages() { 30 | return imageUrls.length; 31 | } 32 | 33 | public static String getImage(int position) { 34 | return imageUrls[position]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | Cronet-sample 20 | 21 | Permission to access storage was denied 22 | LOAD 23 | stream 24 | Loading Images 25 | Cronet Demo Sample 26 | Welcome to the Cronet Demo Sample. Use this demo to find out how long it takes loading images with Cronet. 27 | Load Images with Cronet 28 | Loading Images 29 | Images loaded with Cronet in %1$d nanoseconds 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 30 5 | buildToolsVersion "30.0.2" 6 | 7 | // Cronet jars contain Java 8 bytecode. 8 | compileOptions { 9 | sourceCompatibility 1.8 10 | targetCompatibility 1.8 11 | } 12 | 13 | defaultConfig { 14 | applicationId "com.google.samples.cronet_sample" 15 | // Cronet itself supports devices down to JellyBean, but the test app makes use of 16 | // language constructs such as streams that aren't supported in lower versions. 17 | minSdkVersion 24 18 | targetSdkVersion 30 19 | versionCode 1 20 | versionName "1.0" 21 | testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' 22 | } 23 | buildTypes { 24 | release { 25 | minifyEnabled false 26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 27 | } 28 | } 29 | } 30 | 31 | ext { 32 | supportLibVersion = "27.1.1" 33 | androidTestVersion = "1.0.2" 34 | } 35 | 36 | dependencies { 37 | implementation "com.google.android.gms:play-services-cronet:17.0.1" 38 | implementation 'androidx.appcompat:appcompat:1.3.0' 39 | implementation 'androidx.recyclerview:recyclerview:1.2.1' 40 | implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' 41 | testImplementation "junit:junit:4.13.2" 42 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' 43 | androidTestImplementation 'androidx.test:rules:1.4.0' 44 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 45 | 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/androidTest/java/com/google/samples/cronet_sample/MainActivityTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.samples.cronet_sample; 18 | 19 | import static androidx.test.espresso.Espresso.onView; 20 | import static androidx.test.espresso.assertion.ViewAssertions.matches; 21 | import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 22 | import static androidx.test.espresso.matcher.ViewMatchers.withId; 23 | 24 | import androidx.test.ext.junit.rules.ActivityScenarioRule; 25 | import androidx.test.ext.junit.runners.AndroidJUnit4; 26 | import org.junit.Rule; 27 | import org.junit.Test; 28 | import org.junit.runner.RunWith; 29 | 30 | @RunWith(AndroidJUnit4.class) 31 | public class MainActivityTest { 32 | 33 | @Rule 34 | public ActivityScenarioRule menuActivityTestRule = 35 | new ActivityScenarioRule<>(MainActivity.class); 36 | 37 | @Test 38 | public void imagesView_isDisplayed() { 39 | onView(withId(R.id.images_activity_layout)).check(matches(isDisplayed())); 40 | } 41 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Cronet Sample 2 | =================================== 3 | 4 | [Cronet](https://chromium.googlesource.com/chromium/src/+/master/components/cronet?autodive=0%2F%2F) 5 | is Chromium's Networking stack packaged as a library. This sample app shows how to use the library. 6 | 7 | ### Getting Started 8 | --------------- 9 | 1. Clone or download this repository. 10 | 2. Import the project in Android Studio (File → New → 11 | Import Project) by selecting the top level build.gradle file inside the 12 | "android" directory. 13 | 3. Connect a physical Android device or start an emulator. 14 | 4. Run the app from Android Studio by pressing the "run" (green triangle) 15 | button. Alternatively, 16 | run "gradlew :app:installDebug" from the command line inside the "android" 17 | directory. 18 | 19 | 20 | ### License 21 | --------------- 22 | 23 | ``` 24 | Copyright 2018 Google, Inc. 25 | 26 | Licensed to the Apache Software Foundation (ASF) under one or more contributor 27 | license agreements. See the NOTICE file distributed with this work for 28 | additional information regarding copyright ownership. The ASF licenses this 29 | file to you under the Apache License, Version 2.0 (the "License"); you may not 30 | use this file except in compliance with the License. You may obtain a copy of 31 | the License at 32 | 33 | http://www.apache.org/licenses/LICENSE-2.0 34 | 35 | Unless required by applicable law or agreed to in writing, software 36 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 37 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 38 | License for the specific language governing permissions and limitations under 39 | the License. 40 | ``` 41 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to become a contributor and submit your own code 2 | 3 | ## Contributor License Agreements 4 | 5 | We'd love to accept your sample apps and patches! Before we can take them, we 6 | have to jump a couple of legal hurdles. 7 | 8 | Please fill out either the individual or corporate Contributor License Agreement (CLA). 9 | 10 | * If you are an individual writing original source code and you're sure you 11 | own the intellectual property, then you'll need to sign an [individual CLA] 12 | (https://developers.google.com/open-source/cla/individual). 13 | * If you work for a company that wants to allow you to contribute your work, 14 | then you'll need to sign a [corporate CLA] 15 | (https://developers.google.com/open-source/cla/corporate). 16 | 17 | Follow either of the two links above to access the appropriate CLA and 18 | instructions for how to sign and return it. Once we receive it, we'll be able to 19 | accept your pull requests. 20 | 21 | ## Contributing A Patch 22 | 23 | 1. Submit an issue describing your proposed change to the repo in question. 24 | 1. The repo owner will respond to your issue promptly. 25 | 1. If your proposed change is accepted, and you haven't already done so, sign a 26 | Contributor License Agreement (see details above). 27 | 1. Fork the desired repo, develop and test your code changes. 28 | 1. Ensure that your code adheres to the existing style in the sample to which 29 | you are contributing. Refer to the 30 | [Android Code Style Guide] 31 | (https://source.android.com/source/code-style.html) for the 32 | recommended coding standards for this organization. 33 | 1. Ensure that your code has an appropriate set of unit tests which all pass. 34 | 1. Submit a pull request. 35 | -------------------------------------------------------------------------------- /android/app/src/androidTest/java/com/google/samples/cronet_sample/WelcomeActivityTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | package com.google.samples.cronet_sample; 18 | 19 | import static androidx.test.espresso.Espresso.onView; 20 | import static androidx.test.espresso.assertion.ViewAssertions.matches; 21 | import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed; 22 | import static androidx.test.espresso.matcher.ViewMatchers.withId; 23 | 24 | import androidx.test.ext.junit.rules.ActivityScenarioRule; 25 | import androidx.test.ext.junit.runners.AndroidJUnit4; 26 | import org.junit.Rule; 27 | import org.junit.Test; 28 | import org.junit.runner.RunWith; 29 | 30 | @RunWith(AndroidJUnit4.class) 31 | public class WelcomeActivityTest { 32 | 33 | @Rule 34 | public ActivityScenarioRule menuActivityTestRule = 35 | new ActivityScenarioRule<>(WelcomeActivity.class); 36 | 37 | @Test 38 | public void welcomeMessage_isDisplayed() throws InterruptedException { 39 | onView(withId(R.id.welcome_introduction)).check(matches(isDisplayed())); 40 | } 41 | } -------------------------------------------------------------------------------- /android/app/src/main/java/com/google/samples/cronet_sample/WelcomeActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.google.samples.cronet_sample; 17 | 18 | import android.content.Intent; 19 | import android.os.Bundle; 20 | import android.view.View; 21 | import android.widget.TextView; 22 | import androidx.appcompat.app.AppCompatActivity; 23 | import androidx.appcompat.widget.Toolbar; 24 | 25 | public class WelcomeActivity extends AppCompatActivity{ 26 | 27 | protected void onCreate(Bundle icicle) { 28 | super.onCreate(icicle); 29 | 30 | setContentView(R.layout.welcome_layout); 31 | setUpToolbar(); 32 | 33 | ((TextView) findViewById(R.id.welcome_introduction)) 34 | .setText(R.string.welcome_introduction_text); 35 | ((TextView) findViewById(R.id.cronet_load_images)) 36 | .setText(R.string.cronet_load_images_text); 37 | } 38 | 39 | public void openImages(View view) { 40 | Intent mpdIntent = new Intent(this, MainActivity.class); 41 | startActivity(mpdIntent); 42 | } 43 | 44 | private void setUpToolbar() { 45 | Toolbar toolbar = findViewById(R.id.welcome_toolbar); 46 | setSupportActionBar(toolbar); 47 | getSupportActionBar().setDisplayShowTitleEnabled(false); 48 | ((TextView) toolbar.findViewById(R.id.welcome_title)).setText(R.string.welcome_activity); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 16 | 17 | 18 | 33 | 34 | 37 | 40 | 41 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/app/src/main/res/layout/welcome_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 17 | 21 | 22 | 30 | 31 | 37 | 38 | 39 | 40 | 44 | 45 | 53 | 54 | 58 | 59 | 66 | 67 |