Skip to content

chore: add android sample program#25

Open
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-android
Open

chore: add android sample program#25
mir-huzaif wants to merge 1 commit into
masterfrom
huzaif/add-android

Conversation

@mir-huzaif

Copy link
Copy Markdown

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants