Skip to content
Open

Dev #39

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
02c419b
- 更新SDK版本 iOS更新至认证SDK2.7.5 Android更新至认证SDK2.7.4。
Sep 6, 2021
73e2230
Merge pull request #31 from PRLsir/dev
PRLsir Sep 7, 2021
052fdb7
ios 更新原生SDK到277
PRLsir Feb 23, 2022
c1d5b90
更新认证android到2.7.7
linuxhsj Mar 21, 2022
0bac3c0
更新认证android到2.7.7
linuxhsj Mar 21, 2022
ca1cfc0
更新认证android到2.7.7
linuxhsj Mar 21, 2022
273f7e8
Merge remote-tracking branch 'origin/dev' into dev
linuxhsj Mar 21, 2022
d251666
修复华为手机android 8上移动卡授权页加载不出来问题http://jira.jpushoa.com/browse/TS-7200
linuxhsj Apr 26, 2022
45af89d
修复华为手机android 8上电信联通卡授权页加载不出来问题http://jira.jpushoa.com/browse/TS-7200
linuxhsj Apr 27, 2022
ae44bcb
### v 2.5.5
Jun 2, 2022
37a4adf
demo环境升级
PRLsir Jul 18, 2023
57b18db
ios升级极光认证原生SDK到3.1.0
PRLsir Jul 18, 2023
df1436a
优化Android环境
PRLsir Jul 21, 2023
18834d9
Android升级极光认证原生SDK到3.1.7
PRLsir Nov 14, 2023
cee6ce1
版本改为2.5.9
PRLsir Nov 14, 2023
b6e871c
iOS 更新到3.1.9版本,版本改为2.6.0
huangshuni Jan 19, 2024
700f2db
升级android sdk
Apr 3, 2024
677080e
更新iOS SDK 为 3.2.1,兼容rn jsBundleURLForBundleRoot 方法。 修改版本号为2.6.1
huangshuni Apr 15, 2024
8bd614b
增加android appkey基础manifest配置
May 9, 2024
2e471bd
修改插件的依赖
huangshuni Jul 1, 2024
29f962d
升级android sdk3.2.5;版本号2.6.3
Aug 14, 2024
be12c36
版本号更新为2.6.4
Aug 14, 2024
78bbff1
iOS 添加图片说明
huangshuni Aug 22, 2024
99fb57c
Merge branch 'dev1' into dev
huangshuni Aug 22, 2024
94beb4a
增加预取号额外返回参数
Aug 23, 2024
98ab7b4
iOS 升级SDK版本为3.2.3版本
huangshuni Aug 23, 2024
79735b4
版本号升级为2.6.5
Aug 23, 2024
f1cccfe
iOS 一键登录页面支持视频和gif图片设置
huangshuni Sep 20, 2024
c7ee6a8
iOS修复loadingConstraints不生效的问题
huangshuni Sep 20, 2024
f01a4e6
升级android SDK; 增加视频,gif背景,状态栏透明等UI设置
Sep 20, 2024
c5f4073
Merge branch 'dev' of https://github.com/jpush/jverification-react-na…
Sep 20, 2024
7e4fe18
版本号升级为2.6.6
Sep 20, 2024
255d6f9
Api文档更新
Sep 23, 2024
20b5f9c
修复bug
Sep 23, 2024
69078cf
修改加载视频方式
Sep 24, 2024
6bf9a77
更新iOS SDK为3.2.6
huangshuni Jan 23, 2025
8d2bd1c
iOS bool传值问题修复
huangshuni Feb 14, 2025
7c6b216
修改版本号为2.6.9
huangshuni Feb 14, 2025
b434b68
修复rn0.76.6版本 iOS 一键登录页面加载不了自定义rn视图的问题
huangshuni Feb 19, 2025
2540ce0
修改版本号为2.7.0
huangshuni Feb 20, 2025
ed7b8e1
升级iOS、Android SDK;同步iOS、Android主要部分ui config;loginAuth接口增加timeout,cal…
May 14, 2025
19a949f
demo&文档更新
May 15, 2025
c07da1b
Update README.md
yukirin000 May 15, 2025
f8cef2f
Update README.md
yukirin000 May 15, 2025
6a02967
删除过期文档
May 15, 2025
9c33458
Merge branch 'dev' of https://github.com/jpush/jverification-react-na…
May 15, 2025
158c50f
回滚
May 15, 2025
bf32349
更新iOS/Android SDK 3.4.1版本;版本号2.8.1
Jun 5, 2025
531ad41
升级iOS26 SDK
Sep 29, 2025
a990b13
readme更新
Oct 13, 2025
50237af
自定义控件新使用方法
Nov 17, 2025
c211582
修复颜色和自定义控件点击线程bug
Nov 18, 2025
5571e81
修复writableMap 使用异常
Nov 18, 2025
e277ca6
版本号2.8.3
Nov 18, 2025
429a23f
文档更新
Nov 18, 2025
2c7cd5d
修复文档和demo 说明bug
Nov 19, 2025
6786eff
增加iOS shouldAutorotate参数的支持
Nov 25, 2025
89d08a7
更新android 3.4.5版本SDK;版本号2.8.5;
Nov 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
621 changes: 621 additions & 0 deletions API.md

Large diffs are not rendered by default.

548 changes: 0 additions & 548 deletions API详细说明.md

This file was deleted.

2 changes: 2 additions & 0 deletions AwesomeProject/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
4 changes: 4 additions & 0 deletions AwesomeProject/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native',
};
38 changes: 27 additions & 11 deletions example/.gitignore → AwesomeProject/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -29,31 +29,47 @@ build/
.gradle
local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore
.kotlin/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
# Ruby / CocoaPods
**/Pods/
/vendor/bundle/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
3 changes: 2 additions & 1 deletion example/.prettierrc.js → AwesomeProject/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
1 change: 1 addition & 0 deletions AwesomeProject/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
180 changes: 144 additions & 36 deletions example/App.js → AwesomeProject/App.tsx

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions AwesomeProject/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
gem 'concurrent-ruby', '< 1.3.4'

# Ruby 3.4.0 has removed some libraries from the standard library.
gem 'bigdecimal'
gem 'logger'
gem 'benchmark'
gem 'mutex_m'
97 changes: 97 additions & 0 deletions AwesomeProject/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).

# Getting Started

> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
## Step 1: Start Metro

First, you will need to run **Metro**, the JavaScript build tool for React Native.

To start the Metro dev server, run the following command from the root of your React Native project:

```sh
# Using npm
npm start

# OR using Yarn
yarn start
```

## Step 2: Build and run your app

With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:

### Android

```sh
# Using npm
npm run android

# OR using Yarn
yarn android
```

### iOS

For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).

The first time you create a new project, run the Ruby bundler to install CocoaPods itself:

```sh
bundle install
```

Then, and every time you update your native dependencies, run:

```sh
bundle exec pod install
```

For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).

```sh
# Using npm
npm run ios

# OR using Yarn
yarn ios
```

If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.

This is one way to run your app — you can also build it directly from Android Studio or Xcode.

## Step 3: Modify your app

Now that you have successfully run the app, let's make changes!

Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).

When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:

- **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
- **iOS**: Press <kbd>R</kbd> in iOS Simulator.

## Congratulations! :tada:

You've successfully run and modified your React Native App. :partying_face:

### Now what?

- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
- If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).

# Troubleshooting

If you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.

# Learn More

To learn more about React Native, take a look at the following resources:

- [React Native Website](https://reactnative.dev) - learn more about React Native.
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
13 changes: 13 additions & 0 deletions AwesomeProject/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* @format
*/

import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import App from '../App';

test('renders correctly', async () => {
await ReactTestRenderer.act(() => {
ReactTestRenderer.create(<App />);
});
});
128 changes: 128 additions & 0 deletions AwesomeProject/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"

/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
*/
react {
/* Folders */
// The root of your project, i.e. where "package.json" lives. Default is '../..'
// root = file("../../")
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
// reactNativeDir = file("../../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
// codegenDir = file("../../node_modules/@react-native/codegen")
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
// cliFile = file("../../node_modules/react-native/cli.js")

/* Variants */
// The list of variants to that are debuggable. For those we're going to
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
// debuggableVariants = ["liteDebug", "prodDebug"]

/* Bundling */
// A list containing the node command and its flags. Default is just 'node'.
// nodeExecutableAndArgs = ["node"]
//
// The command to run when bundling. By default is 'bundle'
// bundleCommand = "ram-bundle"
//
// The path to the CLI configuration file. Default is empty.
// bundleConfig = file(../rn-cli.config.js)
//
// The name of the generated asset file containing your JS bundle
// bundleAssetName = "MyApplication.android.bundle"
//
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
// entryFile = file("../js/MyApplication.android.js")
//
// A list of extra flags to pass to the 'bundle' commands.
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
// extraPackagerArgs = []

/* Hermes Commands */
// The hermes compiler command to run. By default it is 'hermesc'
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]

/* Autolinking */
autolinkLibrariesWithApp()
}

/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false

/**
* The preferred build flavor of JavaScriptCore (JSC)
*
* For example, to use the international variant, you can use:
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'

android {
ndkVersion rootProject.ext.ndkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

namespace "com.awesomeproject"
defaultConfig {
applicationId "cn.jiguang.auth"
minSdkVersion 24
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
manifestPlaceholders = [
// 设置manifest.xml中的变量
JPUSH_PKGNAME: applicationId,
// JPUSH_APPKEY : "bbd30f38e858211953e84a4a",//测试环境
JPUSH_APPKEY : "1b5965ba23557bcf384e0b08",//b57261a1f826d661b8bfe9ba:99458b7cc34d4b04db17ef15
JPUSH_CHANNEL: "default_developer",
]
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
debug {
storeFile file("./debug.keystore")
}
uidyn {
storeFile file("./debug.keystore")
}
}

buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}

dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")

if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
33 changes: 33 additions & 0 deletions AwesomeProject/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:
-dontoptimize
-dontpreverify

-dontwarn cn.jpush.**
-keep class cn.jpush.** {*;}
-dontwarn cn.jiguang.**
-keep class cn.jiguang.** {*;}

-dontwarn cn.com.chinatelecom.**
-keep class cn.com.chinatelecom.** {*;}
-dontwarn com.ct.**
-keep class com.ct.** {*;}
-dontwarn a.a.**
-keep class a.a.** {*;}
-dontwarn com.cmic.**
-keep class com.cmic.** {*;}
-dontwarn com.unicom.**
-keep class com.unicom.** {*;}
-dontwarn com.sdk.**
-keep class com.sdk.** {*;}

-dontwarn com.sdk.**
-keep class com.sdk.** {*;}
9 changes: 9 additions & 0 deletions AwesomeProject/android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
android:usesCleartextTraffic="true"
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning"/>
</manifest>
Loading