chore: add android sample program#25
Open
mir-huzaif wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a new Android (Gradle-based) sample app demonstrating LexActivator usage, while removing the previous legacy desktop/CLI sample assets under examples/.
Changes:
- Added an Android Studio/Gradle sample project under
android/sample(app module, resources, manifest, and a simple activation UI). - Removed the prior Windows VS solution/project + C++ sample code and related helper headers from
examples/. - Added Android project ignore rules and build configuration files.
Reviewed changes
Copilot reviewed 25 out of 37 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/Sample.vcxproj | Removed legacy Visual Studio C++ project file. |
| examples/Sample.sln | Removed legacy Visual Studio solution file. |
| examples/Sample.cpp | Removed legacy C++ sample program. |
| examples/Makefile | Removed legacy Makefile-based sample build. |
| examples/LexTypes.h | Removed legacy sample header/types. |
| examples/LexStatusCodes.h | Removed legacy sample status code header. |
| examples/LexActivator.h | Removed legacy bundled LexActivator header in examples. |
| android/sample/settings.gradle | Added dependency resolution + module include configuration. |
| android/sample/gradle.properties | Added Gradle/AndroidX project properties. |
| android/sample/build.gradle | Added top-level Gradle buildscript config. |
| android/sample/.gitignore | Added Android project ignore rules. |
| android/sample/app/.gitignore | Added app module build output ignore rule. |
| android/sample/app/build.gradle | Added Android app module configuration + dependencies. |
| android/sample/app/proguard-rules.pro | Added ProGuard rules placeholder file. |
| android/sample/app/src/main/AndroidManifest.xml | Added app manifest and permissions. |
| android/sample/app/src/main/java/com/cryptlex/sample/MainActivity.java | Added sample activity wiring UI to LexActivator activation/genuine check calls. |
| android/sample/app/src/main/res/layout/activity_main.xml | Added basic activation UI layout. |
| android/sample/app/src/main/res/values/strings.xml | Added app name string resource. |
| android/sample/app/src/main/res/values/colors.xml | Added template color resources. |
| android/sample/app/src/main/res/values/themes.xml | Added light theme resources. |
| android/sample/app/src/main/res/values-night/themes.xml | Added night theme resources. |
| android/sample/app/src/main/res/drawable/ic_launcher_background.xml | Added launcher background vector. |
| android/sample/app/src/main/res/drawable-v24/ic_launcher_foreground.xml | Added launcher foreground vector. |
| android/sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml | Added adaptive launcher icon definitions. |
| android/sample/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml | Added adaptive round launcher icon definitions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+3
| plugins { | ||
| id 'com.android.application' | ||
| } |
Comment on lines
+3
to
+7
| repositories { | ||
| mavenLocal() | ||
| google() | ||
| mavenCentral() | ||
| } |
Comment on lines
+3
to
+7
| repositories { | ||
| mavenLocal() | ||
| google() | ||
| mavenCentral() | ||
| } |
Comment on lines
+20
to
+21
| <uses-permission android:name="android.permission.INTERNET" /> | ||
| <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> |
Comment on lines
+21
to
+23
| try { | ||
| LexActivator.SetLicenseKey(licenseKeyEditBox.getText().toString().trim()); | ||
| LexActivator.SetActivationMetadata("key1", "value1"); |
Comment on lines
+10
to
+12
| android:layout_width="409dp" | ||
| android:layout_height="229dp" | ||
| android:orientation="vertical" |
Comment on lines
+19
to
+23
| <com.google.android.material.textfield.TextInputLayout | ||
| android:layout_width="409dp" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <com.google.android.material.textfield.TextInputEditText |
Comment on lines
+1
to
+4
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
| buildscript { | ||
| repositories { | ||
| mavenLocal() |
Comment on lines
+1
to
+2
| // Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
| buildscript { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.