diff --git a/android/.gitignore b/android/.gitignore deleted file mode 100644 index 2b75303..0000000 --- a/android/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/caches -/.idea/libraries -/.idea/modules.xml -/.idea/workspace.xml -/.idea/navEditor.xml -/.idea/assetWizardSettings.xml -.DS_Store -/build -/captures -.externalNativeBuild diff --git a/android/README.md b/android/README.md deleted file mode 100644 index 454ffbf..0000000 --- a/android/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Creative Kit Android Sample App - -To ensure that this test app works, make sure that in the Snap Kit Portal: - - 1. you set your app's DEVELOPMENT Android Package ID to com.snapchat.kit.creativesample - 2. your Snapchat username is in the list of demo users - -Then you should paste your DEVELOPMENT OAuth2 Client ID [here](creative-sample-app/src/main/AndroidManifest.xml#L25). - -Build and test away! :ship: diff --git a/android/build.gradle b/android/build.gradle deleted file mode 100644 index 11a985a..0000000 --- a/android/build.gradle +++ /dev/null @@ -1,27 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -buildscript { - repositories { - google() - jcenter() - - } - dependencies { - classpath 'com.android.tools.build:gradle:3.2.0' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files - } -} -allprojects { - repositories { - google() - jcenter() - - maven { - url "https://storage.googleapis.com/snap-kit-build/maven" - } - } -} -task clean(type: Delete) { - delete rootProject.buildDir -} diff --git a/android/creative-sample-app/.gitignore b/android/creative-sample-app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/android/creative-sample-app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/android/creative-sample-app/build.gradle b/android/creative-sample-app/build.gradle deleted file mode 100644 index 7823af3..0000000 --- a/android/creative-sample-app/build.gradle +++ /dev/null @@ -1,38 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 28 - aaptOptions { - noCompress 'png' - } - defaultConfig { - applicationId "com.snapchat.kit.creativesample" - minSdkVersion 19 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } -} - -// Adding MavenLocal to sync creative-kit library before releasing it -repositories { - mavenLocal() -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' - implementation 'com.snapchat.kit.sdk:creative:1.4.0' - - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' -} diff --git a/android/creative-sample-app/proguard-rules.pro b/android/creative-sample-app/proguard-rules.pro deleted file mode 100644 index f1b4245..0000000 --- a/android/creative-sample-app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile diff --git a/android/creative-sample-app/src/main/AndroidManifest.xml b/android/creative-sample-app/src/main/AndroidManifest.xml deleted file mode 100644 index d06440f..0000000 --- a/android/creative-sample-app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/assets/sticker.png b/android/creative-sample-app/src/main/assets/sticker.png deleted file mode 100644 index 125bfda..0000000 Binary files a/android/creative-sample-app/src/main/assets/sticker.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java b/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java deleted file mode 100644 index 4705c65..0000000 --- a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/MainActivity.java +++ /dev/null @@ -1,284 +0,0 @@ -package com.snapchat.kit.creativesample; - -import com.snapchat.kit.sdk.SnapCreative; -import com.snapchat.kit.sdk.creative.api.SnapCreativeKitApi; -import com.snapchat.kit.sdk.creative.exceptions.SnapMediaSizeException; -import com.snapchat.kit.sdk.creative.exceptions.SnapStickerSizeException; -import com.snapchat.kit.sdk.creative.exceptions.SnapVideoLengthException; -import com.snapchat.kit.sdk.creative.media.SnapMediaFactory; -import com.snapchat.kit.sdk.creative.media.SnapSticker; -import com.snapchat.kit.sdk.creative.models.SnapContent; -import com.snapchat.kit.sdk.creative.models.SnapLiveCameraContent; -import com.snapchat.kit.sdk.creative.models.SnapPhotoContent; -import com.snapchat.kit.sdk.creative.models.SnapVideoContent; - -import android.content.DialogInterface; -import android.content.Intent; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.media.MediaPlayer; -import android.net.Uri; -import android.provider.MediaStore; -import androidx.annotation.Nullable; -import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.app.AppCompatActivity; -import android.os.Bundle; -import android.text.TextUtils; -import android.view.View; -import android.widget.ArrayAdapter; -import android.widget.CompoundButton; -import android.widget.EditText; -import android.widget.ImageView; -import android.widget.Toast; -import android.widget.VideoView; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; - -public class MainActivity extends AppCompatActivity { - - public enum SnapState { - NO_SNAP("Clear Snap"), - IMAGE("Select Image"), - VIDEO("Select Video"); - - private String mOptionText; - - SnapState(String optionText) { - mOptionText = optionText; - } - - public String getOptionText() { - return mOptionText; - } - - public int getRequestCode() { - return ordinal(); - } - } - - - private static final String SNAP_NAME = "snap"; - private static final String STICKER_NAME = "sticker"; - - private SnapState mSnapState = SnapState.NO_SNAP; - private File mSnapFile; - private File mStickerFile; - - private ImageView mPreviewImage; - private VideoView mPreviewVideo; - private EditText mCaptionField; - private EditText mUrlField; - private CompoundButton mSendStickerOption; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - final SnapCreativeKitApi snapCreativeKitApi = SnapCreative.getApi(this); - final SnapMediaFactory snapMediaFactory = SnapCreative.getMediaFactory(this); - - mSnapFile = new File(getCacheDir(), SNAP_NAME); - mStickerFile = new File(getCacheDir(), STICKER_NAME); - - mPreviewImage = findViewById(R.id.image_preview); - mPreviewVideo = findViewById(R.id.video_preview); - mCaptionField = findViewById(R.id.caption_field); - mUrlField = findViewById(R.id.url_field); - mSendStickerOption = findViewById(R.id.send_sticker_option); - - mPreviewVideo.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { - @Override - public void onPrepared(MediaPlayer mp) { - mp.setLooping(true); - } - }); - - if (!mStickerFile.exists()) { - try (InputStream inputStream = getAssets().open("sticker.png")) { - copyFile(inputStream, mStickerFile); - } catch (IOException e) { - mSendStickerOption.setEnabled(false); - Toast.makeText(this, "Failed to copy sticker asset", Toast.LENGTH_SHORT).show(); - } - } - - findViewById(R.id.snap_container).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - openMediaSelectDialog(); - } - }); - - findViewById(R.id.share_button).setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - try { - final SnapContent content; - - switch (mSnapState) { - case IMAGE: - content = new SnapPhotoContent(snapMediaFactory.getSnapPhotoFromFile(mSnapFile)); - break; - case VIDEO: - content = new SnapVideoContent(snapMediaFactory.getSnapVideoFromFile(mSnapFile)); - break; - case NO_SNAP: - default: - content = new SnapLiveCameraContent(); - } - - if (!TextUtils.isEmpty(mCaptionField.getText())) { - content.setCaptionText(mCaptionField.getText().toString()); - } - if (!TextUtils.isEmpty(mUrlField.getText())) { - content.setAttachmentUrl(mUrlField.getText().toString()); - } - - if (mSendStickerOption.isChecked()) { - final SnapSticker snapSticker = snapMediaFactory.getSnapStickerFromFile(mStickerFile); - - snapSticker.setHeight(300); - snapSticker.setWidth(300); - snapSticker.setPosX(0.2f); - snapSticker.setPosY(0.8f); - snapSticker.setRotationDegreesClockwise(345.0f); - - content.setSnapSticker(snapSticker); - } - snapCreativeKitApi.send(content); - } catch (SnapMediaSizeException | SnapVideoLengthException | SnapStickerSizeException e) { - Toast.makeText(view.getContext(), "Media too large to share", Toast.LENGTH_SHORT).show(); - } - } - }); - } - - @Override - public void onResume() { - super.onResume(); - - if (mSnapState == SnapState.VIDEO) { - mPreviewVideo.start(); - } - } - - @Override - protected void onActivityResult( - int requestCode, int resultCode, @Nullable Intent intent) { - if (requestCode == SnapState.IMAGE.getRequestCode()) { - handleImageSelect(intent); - } else if (requestCode == SnapState.VIDEO.getRequestCode()) { - handleVideoSelect(intent); - } else { - super.onActivityResult(requestCode, resultCode, intent); - } - } - - private void openMediaSelectDialog() { - ArrayAdapter adapter = new ArrayAdapter<>(this, android.R.layout.select_dialog_item); - - for (SnapState state : SnapState.values()) { - adapter.add(state.getOptionText()); - } - - new AlertDialog.Builder(this) - .setAdapter(adapter, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - switch (SnapState.values()[which]) { - case IMAGE: - selectMediaFromGallery("image/*", SnapState.IMAGE.getRequestCode()); - break; - case VIDEO: - selectMediaFromGallery("video/*", SnapState.VIDEO.getRequestCode()); - break; - case NO_SNAP: - reset(); - } - } - }) - .show(); - } - - private void selectMediaFromGallery(String mimeType, int resultCode) { - Intent intent = new Intent(Intent.ACTION_PICK); - intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, mimeType); - - startActivityForResult(intent, resultCode); - } - - private void handleImageSelect(@Nullable Intent intent) { - if (saveContentLocally(intent)) { - reset(); - try { - Bitmap bitmap = BitmapFactory.decodeStream(new FileInputStream(mSnapFile)); - mPreviewImage.setImageBitmap(bitmap); - mSnapState = SnapState.IMAGE; - } catch (FileNotFoundException e) { - throw new IllegalStateException("Saved the image file, but it doesn't exist!"); - } - } - } - - private void handleVideoSelect(@Nullable Intent intent) { - if (saveContentLocally(intent)) { - reset(); - mPreviewVideo.setVideoURI(Uri.fromFile(mSnapFile)); - mPreviewVideo.start(); - mPreviewVideo.setVisibility(View.VISIBLE); - mSnapState = SnapState.VIDEO; - } - } - - private void reset() { - mPreviewImage.setImageDrawable(null); - mPreviewVideo.setVisibility(View.GONE); - mPreviewVideo.setVideoURI(null); - mSnapState = SnapState.NO_SNAP; - } - - /** - * Saves the file from the ACTION_PICK Intent locally to {@link #mSnapFile} to be accessed by our FileProvider - */ - private boolean saveContentLocally(@Nullable Intent intent) { - if (intent == null || intent.getData() == null) { - return false; - } - InputStream inputStream; - - try { - inputStream = getContentResolver().openInputStream(intent.getData()); - } catch (FileNotFoundException e) { - Toast.makeText(this, "Could not open file", Toast.LENGTH_SHORT).show(); - return false; - } - if (inputStream == null) { - Toast.makeText(this, "File does not exist", Toast.LENGTH_SHORT).show(); - return false; - } - try { - copyFile(inputStream, mSnapFile); - } catch (IOException e) { - Toast.makeText(this, "Failed save file locally", Toast.LENGTH_SHORT).show(); - return false; - } - return true; - } - - private static void copyFile(InputStream inputStream, File file) throws IOException { - byte[] buffer = new byte[1024]; - int length; - - try (FileOutputStream outputStream = new FileOutputStream(file)) { - while ((length = inputStream.read(buffer)) != -1) { - outputStream.write(buffer, 0, length); - } - } - } -} diff --git a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/SnapVideoView.java b/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/SnapVideoView.java deleted file mode 100644 index 4e7a82b..0000000 --- a/android/creative-sample-app/src/main/java/com/snapchat/kit/creativesample/SnapVideoView.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.snapchat.kit.creativesample; - -import android.content.Context; -import android.media.MediaMetadataRetriever; -import android.net.Uri; -import android.util.AttributeSet; -import android.widget.VideoView; - -/** - * VideoView that preserves the video's aspect ratio - */ -public class SnapVideoView extends VideoView { - - private int mVideoWidth; - private int mVideoHeight; - - public SnapVideoView(Context context, AttributeSet attrs) { - super(context, attrs); - } - - public SnapVideoView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - public SnapVideoView(Context context) { - super(context); - } - - - @Override - public void setVideoURI(Uri uri) { - if (uri != null) { - MediaMetadataRetriever retriever = new MediaMetadataRetriever(); - retriever.setDataSource(this.getContext(), uri); - mVideoWidth = Integer.parseInt( - retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH)); - mVideoHeight = Integer.parseInt( - retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT)); - } - super.setVideoURI(uri); - } - - @Override - protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { - int width = getDefaultSize(mVideoWidth, widthMeasureSpec); - int height = getDefaultSize(mVideoHeight, heightMeasureSpec); - if (mVideoWidth > 0 && mVideoHeight > 0) { - if (mVideoWidth * height > width * mVideoHeight) { - height = width * mVideoHeight / mVideoWidth; - } else if (mVideoWidth * height < width * mVideoHeight) { - width = height * mVideoWidth / mVideoHeight; - } - } - setMeasuredDimension(width, height); - } -} diff --git a/android/creative-sample-app/src/main/res/drawable-hdpi/select_snap.png b/android/creative-sample-app/src/main/res/drawable-hdpi/select_snap.png deleted file mode 100644 index 72ce2a2..0000000 Binary files a/android/creative-sample-app/src/main/res/drawable-hdpi/select_snap.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/drawable-mdpi/select_snap.png b/android/creative-sample-app/src/main/res/drawable-mdpi/select_snap.png deleted file mode 100644 index cbc5d83..0000000 Binary files a/android/creative-sample-app/src/main/res/drawable-mdpi/select_snap.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/creative-sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index 9486baf..0000000 --- a/android/creative-sample-app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - diff --git a/android/creative-sample-app/src/main/res/drawable-xhdpi/select_snap.png b/android/creative-sample-app/src/main/res/drawable-xhdpi/select_snap.png deleted file mode 100644 index 9a7220d..0000000 Binary files a/android/creative-sample-app/src/main/res/drawable-xhdpi/select_snap.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/drawable-xxhdpi/select_snap.png b/android/creative-sample-app/src/main/res/drawable-xxhdpi/select_snap.png deleted file mode 100644 index f785a2c..0000000 Binary files a/android/creative-sample-app/src/main/res/drawable-xxhdpi/select_snap.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/drawable/button_background.xml b/android/creative-sample-app/src/main/res/drawable/button_background.xml deleted file mode 100644 index 3142974..0000000 --- a/android/creative-sample-app/src/main/res/drawable/button_background.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/drawable/ic_launcher_background.xml b/android/creative-sample-app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 61290a6..0000000 --- a/android/creative-sample-app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/android/creative-sample-app/src/main/res/drawable/row_background.xml b/android/creative-sample-app/src/main/res/drawable/row_background.xml deleted file mode 100644 index ac4bde7..0000000 --- a/android/creative-sample-app/src/main/res/drawable/row_background.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/layout/activity_main.xml b/android/creative-sample-app/src/main/res/layout/activity_main.xml deleted file mode 100644 index 4a82b8b..0000000 --- a/android/creative-sample-app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index bbd3e02..0000000 --- a/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index bbd3e02..0000000 --- a/android/creative-sample-app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index 898f3ed..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png deleted file mode 100644 index dffca36..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-hdpi/ic_launcher_round.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 64ba76f..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png deleted file mode 100644 index dae5e08..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-mdpi/ic_launcher_round.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index e5ed465..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png deleted file mode 100644 index 14ed0af..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index b0907ca..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png deleted file mode 100644 index d8ae031..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 2c18de9..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png deleted file mode 100644 index beed3cd..0000000 Binary files a/android/creative-sample-app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and /dev/null differ diff --git a/android/creative-sample-app/src/main/res/values/colors.xml b/android/creative-sample-app/src/main/res/values/colors.xml deleted file mode 100644 index d11d546..0000000 --- a/android/creative-sample-app/src/main/res/values/colors.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - #e0e0e0 - #555 - #1A9BFC - diff --git a/android/creative-sample-app/src/main/res/values/dimens.xml b/android/creative-sample-app/src/main/res/values/dimens.xml deleted file mode 100644 index 889ddb7..0000000 --- a/android/creative-sample-app/src/main/res/values/dimens.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - 16dp - \ No newline at end of file diff --git a/android/creative-sample-app/src/main/res/values/strings.xml b/android/creative-sample-app/src/main/res/values/strings.xml deleted file mode 100644 index 6c49be4..0000000 --- a/android/creative-sample-app/src/main/res/values/strings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - Creative Kit Sample App - diff --git a/android/creative-sample-app/src/main/res/values/styles.xml b/android/creative-sample-app/src/main/res/values/styles.xml deleted file mode 100644 index 6089a81..0000000 --- a/android/creative-sample-app/src/main/res/values/styles.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - diff --git a/android/creative-sample-app/src/main/res/xml/file_paths.xml b/android/creative-sample-app/src/main/res/xml/file_paths.xml deleted file mode 100644 index bf9da37..0000000 --- a/android/creative-sample-app/src/main/res/xml/file_paths.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/android/gradle.properties b/android/gradle.properties deleted file mode 100644 index 2de2ee2..0000000 --- a/android/gradle.properties +++ /dev/null @@ -1,16 +0,0 @@ -# Project-wide Gradle settings. -# IDE (e.g. Android Studio) users: -# Gradle settings configured through the IDE *will override* -# any settings specified in this file. -# For more details on how to configure your build environment visit -# http://www.gradle.org/docs/current/userguide/build_environment.html -# Specifies the JVM arguments used for the daemon process. -# The setting is particularly useful for tweaking memory settings. -org.gradle.jvmargs=-Xmx1536m -# When configured, Gradle will run in incubating parallel mode. -# This option should only be used with decoupled projects. More details, visit -# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true - -android.useAndroidX=true -android.enableJetifier=true diff --git a/android/gradle/wrapper/gradle-wrapper.jar b/android/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index f6b961f..0000000 Binary files a/android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index d0059c5..0000000 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Sat Mar 09 17:29:57 EST 2019 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-all.zip diff --git a/android/gradlew b/android/gradlew deleted file mode 100755 index cccdd3d..0000000 --- a/android/gradlew +++ /dev/null @@ -1,172 +0,0 @@ -#!/usr/bin/env sh - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=$(save "$@") - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong -if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then - cd "$(dirname "$0")" -fi - -exec "$JAVACMD" "$@" diff --git a/android/gradlew.bat b/android/gradlew.bat deleted file mode 100644 index e95643d..0000000 --- a/android/gradlew.bat +++ /dev/null @@ -1,84 +0,0 @@ -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS= - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/android/settings.gradle b/android/settings.gradle deleted file mode 100644 index 0dce710..0000000 --- a/android/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':creative-sample-app'